Advertisement
Dark_Agent

replicatesignal_commands-01

Apr 3rd, 2025
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.59 KB | Gaming | 0 0
  1. if getgenv then
  2.     MS = getgenv()
  3. elseif shared then
  4.     MS = shared
  5. elseif _G then
  6.     MS = _G
  7. else
  8.     warn("Your exec does not support these features: getgenv, shared, _G!")
  9.     return
  10. end
  11.  
  12. MS.pd = function()
  13.     if replicatesignal then
  14.         replicatesignal(game.Players.LocalPlayer.ConnectDiedSignalBackend)
  15.     else
  16.         warn("replicatesignal not supported 💥")
  17.     end
  18.     wait(game.Players.RespawnTime + 0.1)
  19.     game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState(15)
  20. end
  21.  
  22. MS.nopd = function()
  23.     replicatesignal(game.Players.LocalPlayer.ConnectDiedSignalBackend)
  24. end
  25.  
  26. MS.instantre = function()
  27.     h = game.Players.LocalPlayer.Character.HumanoidRootPart
  28.     cam = workspace.CurrentCamera
  29.     if replicatesignal then
  30.         replicatesignal(game.Players.LocalPlayer.ConnectDiedSignalBackend)
  31.     else
  32.         warn("Can't do InstantRespawn because replicatesignal function not supported")
  33.     end
  34.     wait(game.Players.RespawnTime - 0.165)
  35.     game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):ChangeState(15)
  36.     wait(0.5)
  37.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = h.CFrame
  38.     workspace.CurrentCamera = cam
  39. end
  40.  
  41. MS.breakjoints = function()
  42.     replicatesignal(game.Players.LocalPlayer.Character.Humanoid.ServerBreakJoints)
  43. end
  44.  
  45. wait(0.5) --wait 0.5s
  46. print(" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ")
  47. print(" ")
  48. print("Commands: breakjoints(), instantre(), nopd(), pd()")
  49. print(" ")
  50. print(" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ")
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement