I'm making a command script for a training place, how would I verify if the player is in the group server sided? Like a check if the player is in a certain group at a certain rank. People with exploits fire this remote a lot.
Client
game.Players.LocalPlayer.Chatted:connect(function(msg)
local player = game.Players.LocalPlayer
local rank = player:GetRankInGroup(474547)
if rank >= 10 then
if msg:sub(1,6)==":load " then
local map = msg:sub(7,msg:len())
print(map)
game.ReplicatedStorage.Events.LoadMap:FireServer(map)
end
Server
game.ReplicatedStorage.Events.LoadMap.OnServerEvent:connect(function(player,map)
local bricks = game.ServerStorage.Maps:FindFirstChild(map)

1 comment
tysm