Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

Closed as Not Constructive by hiimgoodpack

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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.

0
In the first script, do u mean FireServer(player) ? great script too! Shadic1270 136 — 4y
0
game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent"):FireServer(player) ? LordLightingXII 12 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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!