#Kinda need some scripting help with Leaderstats
20 messages · Page 1 of 1 (latest)
local MP5K = script.Parent
local click = MP5K.ClickDetector
local function addClick(player)
player.leaderstats.Mone.Value = player.leaderstats.Mone.Value -500
if player.leaderstats.Mone.Value = >500 then (this is what i need help with idk what to put here)
end
end
click.MouseClick:Connect(addClick)
wait(30)
//////////////////////////////////////////////////////////////////////////
/\ above script works, but i just want it to stop another script (which shld be below) from working if the player has less than the amount needed
/////////////////////////////////////////////////////////////////////////
local tool = game.ReplicatedStorage.MP5K
script.Parent.ClickDetector.mouseClick:connect(function(plr)
local klone = tool:Clone()
klone.Parent = plr.Backpack
end)
if money >= 500 then money-=500 dobuystuff() end
is this a joke srs
i dont think this fits
is this a joke srs? you asked how to prevent money going into negative, and that's how...
im kind of new to scripting, where do i put it
my bad for not being an expert
you good gng, take a break
?
you deserve a break
i'm out bruz