#Help with script pls

1 messages · Page 1 of 1 (latest)

void scarab
#

i need to do buy system in shop but script doesn't work whati should do?
local trowel = game.ServerStorage.ClassicTrowel:Clone()
if game.Players.LocalPlayer.leaderboard.Money.Value >= 250 then
trowel.Parent = game.Players.LocalPlayer.Backpack
game.Players.LocalPlayer.leaderstats.Money -= 250
else
print("Not enough money")
end

humble cargo
#

What are you trying to do?

void scarab
#

Shop like buy for money

#

script for the button

#

local script

humble cargo
#

Well, you'll wish to only take the input from a local script, then just a remote event to tell the server to handle the transaction. Then have the server check if there is enough money, remove some of it and give the tool

void scarab
#

ye

supple falcon
#

grow a garden clone 🥀