Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent.Touched:Connect(function(object)
- if object:FindFirstChild("Money") and not object:FindFirstChild("Upgrade") then
- object.Money.Value *= 5
- local upgrade = Instance.new("BoolValue", object)
- upgrade.Name = "Upgraded"
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement