player = game.Workspace.humanoid.Name = "PreyStar" player:Kick()
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()