Advertisement
CODINGGIAN

Untitled

Apr 5th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. script.Parent.Touched:Connect(function(object)
  2.     if object:FindFirstChild("Money") and not object:FindFirstChild("Upgrade") then
  3.         object.Money.Value *= 5
  4.         local upgrade = Instance.new("BoolValue", object)
  5.         upgrade.Name = "Upgraded"
  6.     end
  7. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement