Hello again! I’ve created a GUI shop with gears that player can buy with money (not R$). But if a player who bought the gear dies, he will lose it. I don’t want to make player work for money again and again. The script after buy button is pressed is
game.ReplicatedStorage.ToolEvents.DroneEvent.OnServerEvent:Connect(function(player)
if player.leaderstats.Money.Value >= 500 then
player.leaderstats.Money.Value = player.leaderstats.Money.Value - 500
game.ServerStorage.Tools.SpyDrone:Clone().Parent = player.Backpack
end
end)
I was creating tool events to make their function stay. As you see after the tool is bought its cloned to player's backpack. I'm a big rookie in scripting, so I hope you will help. Also, thanks!

1 comment
Tysm! This answer is the one I was dreaming about!