Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

i need a kick script can you give it please? I cant find one that works

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

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.

2 comments

0

In the first script, do u mean FireServer(player) ? great script too!

0

game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent"):FireServer(player) ?

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.