I wanted to make it so that if a player has enough money, and steps on a button, other button(s) would appear. But this script didn't work.
plr = script.Parent.Parent.Parent.Parent.Parent.Parent
price = 0
brick = script.Parent.Parent.Parent["Seasoner - 1200"].Head
script.Parent.Touched:connect (function()
local v = plr.leaderstats.Cash
if v.Value - price >= 0 then
brick.Transparency = 0
else brick.Transparency = 1
end
end)
anyone know why?

2 comments
Where is the script located at? Like, is it inside of the playergui?
It's inside a part, inside a model, in a model, in a model, in workspace