Hello i want to become a good scripter but first i need some help. Can someone pls give me a script i can put in the work space that kicks the local player thanks
✓ ANSWER ACCEPTED
i need a kick script can you give it please? I cant find one that works
2 answers
✓ Accepted answer
Add a "RemoteEvent" under ReplicatedStorage then,
Make a local script and put it under StarterPack
local player = script.Parent.Parent
local event = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent")
event:FireServer(player)
Make a server script and put it under workspace
local event = game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent")
event.OnServerEvent:connect(function(player)
player:Kick("cya")
end)
Done.
Hey, you could actually put an admin commands gui, like kohls admin, there are a lot of commands, including kick, ban and pban that it would work really good for you!
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
In the first script, do u mean FireServer(player) ? great script too!
game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent"):FireServer(player) ?