Hello! I'm having a very difficult time, In my game I made a gui to buy different swords, now I would like to make it to where, When I kill a player I get a point (On a leaderboard) And when I get up to a certain amount of kills/points, say 10 i can buy the golden katana, I havent been able to find or make a script compatible as I am very new.... Here's the Script for the button in the gui ****~~~~~~~~~~~~~~~~~
repeat wait() Player = game.Players.LocalPlayer Button = script.Parent Item = game.ReplicatedStorage:FindFirstChild("Golden Katana") Cost = 50 Money = Player.leaderstats.Money until
Button.MouseButton1Down:connect(function(purchase) if Money.Value > (Cost - 1)then Money.Value = Money.Value - Cost local a = Item:Clone() a.Parent = Player.Backpack local b = Item:Clone() b.Parent = Player.StarterGear end end)
**
**
If you need the actual Gui Script, I will post it as well, please help!

1 comment
Thank you!