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

How to I make a button group ranked? [closed]

Asked by 9 years ago

I try to do this but it don't work people still can click it and no script errors comes up

game.Players.PlayerAdded:connect(function(plr)
if plr:GetRankInGroup(2752658) >= 175 then
script.Parent.ClickDetector.MouseClick:connect(onClicked)   
end 
end)
0
What do you mean by 'a button group ranked' KingLoneCat 2642 — 9y
0
people have to be in a certen group rank for the button to work RobloxNorton 20 — 9y

Closed as Too Broad by Uroxus, ChemicalHex, TheHospitalDev, and M39a9am3R

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
uZelt 15
9 years ago

This is just a script inside of a button in a ScreenGui in StarterGui, if you move the button you'll have to change the amount of parents on "plr", there's probably another way to do it but that's how I do it.

local plr = script.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Click:connect(function()
if plr:GetRankInGroup(2752658) >= 175 then

--your code here

end
end)
Ad