Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Surface GUI

Asked by 10 years ago

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

Log in to vote
2
Answered by
ImageLabel 1541 Moderation Voter
10 years ago
    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)

0
Yes, But how do I find out which player touched it ._. devSparkle 84 — 10y
3
Touched...Clicked... ImageLabel 1541 — 10y
3
Click the accept button right after the little "Edited by Estomac" if you're satisfied with the answer ;] ImageLabel 1541 — 10y
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.. Vividex 162 — 9y
Ad

Answer this question