This script only works in normal scripts. It doesn't work in local scripts for some reason. Somebody please help.
here is the script:
game.Players.PlayerAdded:connect(function(Player) local rank = Player:GetRankInGroup(4070429) if rank == 255 or rank == 224 then print("sdfghjuhgfdfgh") end end)
Thanks
local plr = game.Players.LocalPlayer local rank = Player:GetRankInGroup(4070429) if rank == 255 or rank == 224 then print("sdfghjuhgfdfgh") end
Would be the way to use it in a localscript. Personally I don't recommend it because hackers can change it and get access to your rank stuffs even if your game is FE.
Localscripts are the client scripts of a player, so PlayerAdded will not work here. Although you could get past this with using ChildAdded instead. :P