Crash on Death script similar to M U G E N games?

I want to make a script that crashes your game when you die. I know how to make a kick script but I’m not sure how I would crash the game when a player dies. How would I do this?

3 Likes

hehehe haw haw you could do some tomfoolery… and uh…

spawn 10000 parts in the players face every 0.01 second.

guaranteed crash :grin:

2 Likes

Since you mentioned kicking I’m gonna assume you mean crashing is the same as kicking.
Put this in a Local script under StarterPlayerScripts:

local function connectCharacter(character)
character:WaitForChild("Humanoid").Died:Connect(function()
game.Players.LocalPlayer:Kick(**kick message**)
end)
end
local character = game.Players.LocalPlayer.Character
if character then
connectCharacter(character)
end
game.Players.LocalPlayer.CharactetAdded:Connect(connectCharacter)

you can do something like this to cause the crash

first LocalScript (enable or parent it to PlayerGui when player dies)

local lscript=script.crash:Clone()
lscript.Disabled=false
lscript.Parent=script.Parent

crash LocalScript (make sure to disable it and parent it under first LocalScript)

script.Parent:ClearAllChildren()

this should crash immediately to my knowledge

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.