I’m new to scripting and need help making a kick script I’ve tried different parameters and stuff but I can’t figure it out.
-Here’s The Script
local finishLine = game.Workspace.FinishLine
finishLine.Touched:Connect(function(Touched, Player)
local char = Touched.Parent
local humanoid = char:FindFirstChildWhichIsA(“Humanoid”)
if humanoid then
humanoid:Kick()
end
end)
The error is: Kick is not a valid member of Humanoid “Workspace.WindyTundra.Humanoid” - Server - KickScript:8