Many errors there. I'll go through them.
1: 'Game' should be lowercase
2: 'leaderstats' isn't a child of Players, use game.Players.LocalPlayer:FindFirstChild('leaderstats') to access your own leaderstats
3: this should be a localscript, in StarterGui.. then access the part with workspace.Part
4: Use a Changed
event to change the part's transparency, rather than a loop. Much more efficient.
03 | local leader = game.Players.LocalPlayer:FindFirstChild( 'leaderstats' ) |
04 | local part = workspace.Part |
06 | if leader.Quest.Value = = 0 then part.Transparency = 0 else part.Transparency = 1 end |
08 | leader.Quest.Changed:connect( function (change) |
Locked by BlueTaslem
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?