Advertisement
Dully

auto respawn prison life

Jan 25th, 2021
3,207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. -- Made by iTsSaalty
  2.  
  3. -- Instances:
  4. setclipboard("https://www.youtube.com/c/iTsSaalty?sub_confirmation=1")
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Main = Instance.new("Frame")
  8. local re2 = Instance.new("TextButton")
  9. local re1 = Instance.new("TextButton")
  10.  
  11. --Properties:
  12.  
  13. ScreenGui.Parent = game.CoreGui
  14. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15. ScreenGui.ResetOnSpawn = false
  16.  
  17. Main.Name = "Main"
  18. Main.Parent = ScreenGui
  19. Main.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  20. Main.BorderColor3 = Color3.fromRGB(255, 0, 0)
  21. Main.BorderSizePixel = 2
  22. Main.Position = UDim2.new(0.00485906005, 0, 0.609179854, 0)
  23. Main.Size = UDim2.new(0.17087847, 0, 0.381620556, 0)
  24.  
  25. re2.Name = "re2"
  26. re2.Parent = Main
  27. re2.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  28. re2.Position = UDim2.new(0.0705073774, 0, 0.271171719, 0)
  29. re2.Size = UDim2.new(0.858350694, 0, 0.453797489, 0)
  30. re2.Visible = false
  31. re2.Font = Enum.Font.Arcade
  32. re2.Text = "Auto Respawn : On"
  33. re2.TextColor3 = Color3.fromRGB(255, 255, 255)
  34. re2.TextScaled = true
  35. re2.TextSize = 14.000
  36. re2.TextStrokeTransparency = 0.000
  37. re2.TextWrapped = true
  38.  
  39. re1.Name = "re1"
  40. re1.Parent = Main
  41. re1.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  42. re1.Position = UDim2.new(0.0705073774, 0, 0.271171719, 0)
  43. re1.Size = UDim2.new(0.858350694, 0, 0.453797489, 0)
  44. re1.Font = Enum.Font.Arcade
  45. re1.Text = "Auto Respawn"
  46. re1.TextColor3 = Color3.fromRGB(255, 255, 255)
  47. re1.TextScaled = true
  48. re1.TextSize = 14.000
  49. re1.TextStrokeTransparency = 0.000
  50. re1.TextWrapped = true
  51.  
  52. -- Scripts:
  53.  
  54. local function MKANE_fake_script() -- re2.LocalScript
  55. local script = Instance.new('LocalScript', re2)
  56.  
  57. script.Parent.MouseButton1Click:Connect(function()
  58. script.Parent.Visible = false
  59. script.Parent.Parent.re1.Visible = true
  60. _G.Loop = false
  61.  
  62. while _G.Loop == true do
  63. wait()
  64. if game.Players.LocalPlayer.Character.Humanoid.Health <= 15 then
  65. local location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  66. local A_1 = "\66\114\111\121\111\117\98\97\100\100"
  67. local Event = game:GetService("Workspace").Remote.loadchar
  68. Event:InvokeServer(A_1)
  69. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = location
  70. end
  71. end
  72. end)
  73. end
  74. coroutine.wrap(MKANE_fake_script)()
  75. local function ARECQSO_fake_script() -- re1.LocalScript
  76. local script = Instance.new('LocalScript', re1)
  77.  
  78. script.Parent.MouseButton1Click:Connect(function()
  79. script.Parent.Text = "Auto Respawn : Off"
  80. script.Parent.Visible = false
  81. script.Parent.Parent.re2.Visible = true
  82. _G.Loop = true
  83.  
  84. while _G.Loop == true do
  85. wait()
  86. if game.Players.LocalPlayer.Character.Humanoid.Health <= 15 then
  87. local location = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  88. local A_1 = "\66\114\111\121\111\117\98\97\100\100"
  89. local Event = game:GetService("Workspace").Remote.loadchar
  90. Event:InvokeServer(A_1)
  91. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = location
  92. end
  93. end
  94. end)
  95. end
  96. coroutine.wrap(ARECQSO_fake_script)()
  97. local function VYXMZ_fake_script() -- Main.drag
  98. local script = Instance.new('LocalScript', Main)
  99.  
  100. local UserInputService = game:GetService("UserInputService")
  101.  
  102. local gui = script.Parent
  103.  
  104. local dragging
  105. local dragInput
  106. local dragStart
  107. local startPos
  108.  
  109. local function update(input)
  110. local delta = input.Position - dragStart
  111. gui.Position = gui:TweenPosition(UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y), 'Out', 'Linear', 0.09, true); -- drag speed
  112. end
  113.  
  114. gui.InputBegan:Connect(function(input)
  115. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  116. dragging = true
  117. dragStart = input.Position
  118. startPos = gui.Position
  119.  
  120. input.Changed:Connect(function()
  121. if input.UserInputState == Enum.UserInputState.End then
  122. dragging = false
  123. end
  124. end)
  125. end
  126. end)
  127.  
  128. gui.InputChanged:Connect(function(input)
  129. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  130. dragInput = input
  131. end
  132. end)
  133.  
  134. UserInputService.InputChanged:Connect(function(input)
  135. if input == dragInput and dragging then
  136. update(input)
  137. end
  138. end)
  139. end
  140. coroutine.wrap(VYXMZ_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement