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

Surface GUI

Hello,

I have made an Alarm based on a surface GUI, how do I make it so only people in a Certain group with a certain rank can click the button?

Thank you, -dev

1 answer

✓ Accepted answer
    if Player:GetRankInGroup(GROUPID) == Rank then

.Touched

Workspace.Part.Touched:connect(function(otherPart)
  print(otherPart)
end)

http://wiki.roblox.com/index.php?title=Touched_(Event)

MouseButton1Click

gui.MouseButton1Click:connect(function()
  print("Button1 click.")
end)

http://wiki.roblox.com/index.php?title=MouseButton1Click_(Event)

4 comments

0

Yes, But how do I find out which player touched it ._.

3

Touched...Clicked...

3

Click the accept button right after the little "Edited by Estomac" if you're satisfied with the answer ;]

0

You should really change it too >= Rank# Since it will only do that rank, and I suppose he is using this for a coffee group..

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