I found a way to crash games for server, and made tutorial on it on my channel. But how do i make it where it only crash for one player?
1 | game.Players.PlayerAdded:connect( function (plr) |
2 | if plr.Name = = "Bowser_FIlms" |
3 | while true do |
4 | Instance.new( "Part" ,game.Workspace) |
The easiest way would be to use the :Kick()
method. You can even include a fun message in the parentheses. For example:
1 | local players = game:GetService( "Players" ) -- this is the recommended way to get the players service |
2 | players.PlayerAdded:Connect( function (plr) -- use uppercase C for Connect |
3 | if plr.Name = = "Bowser_Films" then -- remember to include then |
4 | plr:Kick( "You are dumb" ) -- funny message |
5 | end |
6 | 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:
01 | -- LocalScript |
02 | local players = game:GetService( "Players" ) |
03 | local player = players.LocalPlayer |
04 | if player.Name = "Bowser_Films" then |
05 | while true do |
06 | local part = Instance.new( "Part" ) |
07 | part.Parent = workspace |
08 | part.Size = Vector 3. new( 100 , 100 , 100 ) -- the laggiest element to change |
09 | end |
10 | end |
This is the script on the client.
1 | local Players = game:GetService( "Players" ) |
2 |
3 | if Players.LocalPlayer.Name = = "Name here" then |
4 | while true do |
5 | Instance.new( "Part" , workspace) |
6 | end |
7 | end |