✓ Accepted answer
The easiest way would be to use the :Kick() method. You can even include a fun message in the parentheses. For example:
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(plr)
if plr.Name == "Bowser_Films" then
plr:Kick("You are dumb")
end
end
I hope this helps and have a great day scripting! Your youtube videos have always been an inspiration to me.
An additional way to crash them would be to have a LocalScript in the player that checks the player's name and if it is a certain name then crash the game for them:
local players = game:GetService("Players")
local player = players.LocalPlayer
if player.Name = "Bowser_Films" then
while true do
local part = Instance.new("Part")
part.Parent = workspace
part.Size = Vector3.new(100, 100, 100)
end
end
5 comments
(CAPS LOCK DAY) YOU HAVE A REMOTEEVENT AND THEN EVERY PLAYER SHOULD LISTEN TO IT. THEN ON THE SERVER YOU FIRE THE REMOTE WITH THE USERID AND IF THE USERID MATCHES WITH A PLAYER, THE PLAYER WILL CREATE A LOT OF PARTS.
@CodeAddict can you explain breifly, and not be rude about it?
@CodeAddict what do you mean?
don't kick me plz
So basically you want to kick someone? Just use a :kick() next to their Player to kick em' out of the game.