ControlC
· Pastebin
Login
Register
ControlC
/
Create paste
Paste content
Up to 100 KB of text. BBCode formatting is supported.
Title
- optional
Content
B
I
U
S
</>
Colors ↓
Sizes ↓
Size 1
Size 2
Size 3
Size 4
Size 5
Size 6
Size 7
-- services\r\nlocal players = game:GetService(\"Players\")\r\nlocal starterGui = game:GetService(\"StarterGui\")\r\n-- objects\r\nlocal player = players.LocalPlayer\r\nlocal character = player.Character\r\nlocal humanoid = character:FindFirstChildWhichIsA(\"Humanoid\")\r\nlocal head, torso = character:FindFirstChild(\"Head\"), character:FindFirstChild(\"UpperTorso\")\r\nlocal resetBindable = Instance.new(\"BindableEvent\")\r\n-- variables\r\nlocal destroyFunc, resetBindableConnection = character.Destroy, nil\r\n-- main\r\n-- initializes the permadeath\r\nplayer.Character = nil\r\nplayer.Character = character\r\ntask.wait(players.RespawnTime + .05)\r\n\r\nhumanoid.BreakJointsOnDeath = false\r\nhumanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)\r\nif humanoid.RigType == Enum.HumanoidRigType.R15 then\r\n task.defer(destroyFunc, (head.Neck))\r\nend\r\ntask.defer(destroyFunc, head) -- and we destroy the head\r\n\r\nresetBindableConnection = resetBindable.Event:Connect(function()\r\n starterGui:SetCore(\"ResetButtonCallback\", true)\r\n resetBindableConnection:Disconnect()\r\n\r\n if player.Character == character then\r\n character:Destroy()\r\n local daModel = Instance.new(\"Model\")\r\n local _daModelHumanoid = Instance.new(\"Humanoid\")\r\n _daModelHumanoid.Parent = daModel\r\n player.Character = daModel\r\n\r\n task.delay(players.RespawnTime, destroyFunc, daModel)\r\n else\r\n player.Character:BreakJoints()\r\n end\r\nend)\r\nstarterGui:SetCore(\"ResetButtonCallback\", resetBindable)\r\n\r\n--fixed for synapse
Password
Anyone with the link will still need this password to view.
Expires
1 hour
3 hours
6 hours
12 hours
24 hours
48 hours
72 hours
Sign in to enable "Never expires".
Create paste
Please verify you are human
Cancel