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

How can I fix a GUI appearing to everyone?


game.Workspace.Stand.WandDealer.Value.Changed:Connect(function()
	
	if game.Workspace.Stand.WandDealer.Value.Value == true then
		
		script.Parent.Enabled = true
	end
	
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.

1 answer

✓ Accepted answer

I believe I know how you can fix this. There is probably more ways, but I recommend this one.

--Make sure to turn Visable off on the GUI.
local player = game.Players.LocalPlayer
local playerName = " " --Insert player name here.
local GuiName = game.StarterGui. --Insert GUI name here.
if player.Name == playerName then
GuiName.Visable = true
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.

3 comments

0

Two things: Never use the StarterGui for the LocalPlayer. Consider indenting your code as this can lead to a bad habit, and you also spelled Visible wrong not to be rude.

1

The property Visable is spelt like that...

1

Uh, sorry 'bout dat. Kinda messed up. Try this on the "if" area: if player.Character.Name == playerName then

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