How do I make an Admin Panel for only specific players or group ranks in a group game that can make players fly, kick players, give players cash and speed players.
COMMUNITY QUESTION
I cant find out how to make my own Admin Panel, Can someone teach me?
1 answer
um... i will show you how to kick but i dont know how to fly (this is thru Chat)
local ReasonToKick = "Kicked because of reason"
game.Players.PlayerAdded:connect(function(p)
p.Chatted:connect(function(msg)
if string.sub(msg, 1, 5) == "kick " then
game.Players:WaitForChild(string.sub(msg, 6)):Kick(ReasonToKick)
end
end)
end)
so if you chat kick PlrName it will kick PlrName (note: you have to type in the full username)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
search on youtube.
I searched on youtube and i didnt see any script that works