so what im trying to do is, is that i need to make it so if you dont have enough cash the button is not active. I tried this but it did not work
local currencyNeeded = 10
local plr = game.Players:GetPlayerFromCharacter()
if plr.leaderstats.Cash.Value >= currencyNeeded then
game.StarterGui.PlacementGui.Frame.Ranged.Active = true
else
game.StarterGui.PlacementGui.Frame.Ranged.Active = false
end

1 comment
What type of script are you using to do this? local or normal?