Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Cost = 5
- script.Parent.ClickDetector.MouseClick:Connect(function(player)
- if player.Money.Value >= Cost then
- player.Money.Value = player.Money.Value - Cost
- game.ReplicatedStorage.Gamepasses.Medkit:Clone().Parent = player.Backpack
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement