Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Could someone find out what is wrong with this tycoon script?

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

0

Where is the script located at? Like, is it inside of the playergui?

0

It's inside a part, inside a model, in a model, in a model, in workspace

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.