Local script:
local RepStorage = game:GetService("ReplicatedStorage")
local Remote = RepStorage:WaitForChild("TestKickEvent")
script.Parent.MouseButton1Click:Connect(function()
wait(0.1)
Remote:FireServer(script.Parent.Parent.EnterNameForKick.Text)
end)
Server Script:
local RepStorage = game:GetService("ReplicatedStorage")
local Remote = RepStorage:WaitForChild("TestKickEvent")
Remote.OnServerEvent:Connect(function(player, name)
name:Kick("test")
end)
Error: ServerScriptService.Script:5: attempt to call method 'Kick' (a nil value)

2 comments
It doesnt kick the player though still
Then you aren't giving the RemoteEvent the right name? It's case sensitive