is there a way to make a script so that only certain people can open a gui?
COMMUNITY QUESTION
How can i create a script so only certain people can open a gui?
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.

3 comments
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.
Yes, there is a way.
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.