Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Not kicking player?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago
player = game.Workspace.humanoid.Name = "PreyStar"

player:Kick()
0
Kicking yourself sounds like fun. bosswalrus 84 — 8y

1 answer

Log in to vote
4
Answered by 8 years ago

Alright first, the kick() method doesn't work that way. You're supposed to KICK the player.. and variables..

the humanoid is inside the character, and its name IS humanoid. Not the player's name.

script should look like

player = game.Players:GetPlayerFromCharacter(game.Workspace.PreyStar)

player:Kick()
1
Oooo. +1 pluginfactory 463 — 8y
Ad

Answer this question