-
What do you want to achieve?
I want everyone buy limited only using 1 tool when buy on shop
Example: "You already have that “Tool”
Tool in here only one, it’s mean when buying specific tool on shop, you had have it, but you are want to buy more than tool and spam until out of money. So I need you guys to help add more inside script that on under -
What is the issue?
I want people can’t buy more similar tool they already have -
What solutions have you tried so far?
Added more another script and finding on Youtube but don’t have it anything working
Script 1(Buying tool)[Script normal]
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr)
plr.leaderstats.Money.Value -= 900
local gun = game.ServerStorage["Colt LMG"]:Clone()
gun.Parent = plr.Backpack
end)
Script 2(Annouce you enough money or not)[Local Script]
script.Parent.MouseButton1Click:Connect(function()
if player.leaderstats.Money.Value >= 200 then
script.Parent.RemoteEvent:FireServer()
else
script.Parent.Text = "Not Enough Money"
script.Parent.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
wait(2)
script.Parent.Text = "Purchase"
script.Parent.BackgroundColor3 = Color3.new(0.14902, 0.705882, 0.0627451)
end
end)