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

How can i create a script so only certain people can open a gui?

is there a way to make a script so that only certain people can open a gui?

3 comments

1

there is a way. And before you ask for some script you asked a yes or no question and all you'll get is a yes or no answer.

0

Yes, there is a way.

0

Please include a script in your question, scripting helpers is not a request site so therefore you will most likely not receive a direct answer.

1 answer

Simple script when a player touches a part a gui appears. You could create a table of names and have it check the table to allow it to open.

local function onTouch(part)
	if part.Name == "Head" and part.Parent.Name == localPlayer.Name then		
		gui.Visible = true
	end
end

local function onTouchEnded(part)

	if  part.Name == "Head" and part.Parent.Name == localPlayer.Name then	
	gui.Visible = false
	end
end



store.Touched:connect(onTouch)
store.TouchEnded:connect(onTouchEnded)

1 comment

0

Bowser. Please indent.

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