1 | game.Workspace.Stand.WandDealer.Value.Changed:Connect( function () |
2 |
3 | if game.Workspace.Stand.WandDealer.Value.Value = = true then |
4 |
5 | script.Parent.Enabled = true |
6 | end |
7 |
8 | end ) |
How exactly can I fix this? Also it activates once a value is changed. I want it to appear only to one person but it doesn't work after I've tried to change it.
I believe I know how you can fix this. There is probably more ways, but I recommend this one.
1 | --Make sure to turn Visable off on the GUI. |
2 | local player = game.Players.LocalPlayer |
3 | local playerName = " " --Insert player name here. |
4 | local GuiName = game.StarterGui. --Insert GUI name here. |
5 | if player.Name = = playerName then |
6 | GuiName.Visable = true |
7 | end |
I hope this works out for you, and best of luck! If this script doesn't work, it's probably because I have some more to learn. But it should work.