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?

2 comments
hey, can you tell me if the script is a local script or a server script?
Tis' a LocalScript