I'm trying to kick the player when they touch a block
local kickRE = game:GetService("ReplicatedStorage"):FindFirstChild("KickPlayer") -- Remote Event to kick players local Players = game:GetService("Players") -- Defining Players kickRE.OnClientEvent:Connect(function() Players:Kick() -- Kicking the Player end)
Can anyone tell me why it isn't kicking the Player please?
Since this is a local script, you just have to put the script in StarterPack or somewhere local.
Then do (on line 6):
Players.LocalPlayer:Kick() -- Kicking the Player