Hello!
There is a problem with GetRoleInGroup And GetRankInGroup
GetRoleInGroup Attempt Code 1:
script.Parent.ClickDetector.MouseClick:Connect(function() local sus,err = pcall(game.Players.LocalPlayer:GetRoleInGroup(4978658) >= 17) if sus then script.Parent.TweenScript.Disabled = false end if err then print(err..", Not worked.") end end)
Error:
GetRoleInGroup Error Attempt 2:
script.Parent.ClickDetector.MouseClick:Connect(function() if game.Players.LocalPlayer:GetRoleInGroup(4978658) >= 17 then script.Parent.TweenScript.Disabled = false end end)
Error:
GetRankInGroup Attempt Code 1:
script.Parent.ClickDetector.MouseClick:Connect(function() if game.Players.LocalPlayer:GetRankInGroup(4978658) >= 17 then script.Parent.TweenScript.Disabled = false end end)
Error:
script.Parent.ClickDetector.MouseClick:Connect(function() local sus,err = pcall(game.Players.LocalPlayer:GetRankInGroup(4978658) >= 17) if sus then script.Parent.TweenScript.Disabled = false end if err then print(err..", Not worked.") end end)
Error:
There are errors I can’t fix it, is there a way to fix it?
I used pcall
for both so that does not work.
Is there anyway to fix this?