Trouble with simple script

Hello. I’m trying to make a block that kicks a player when they touch it (Just for an experiment.)
The script won’t work, I will show the output down below:

Here’s the script:

local debounce = false
local pad = script.Parent
if not debounce then
	pad.Touched:Connect(function(PlayerThatTouched)
		wait(1)
		debounce = true
		PlayerThatTouched:Kick()
	end)
end

Try creating a variable like: local player = game.Players:GetPlayerFromCharacter(PlayerThatTouched.Parent) below the function you’ve created, then change PlayerThatTouched:Kick() to player:Kick()

1 Like

And this is happening because your right leg is touching the part, and not the player itself.