Advertisement
sIendytubble

remake of vr (controls in pastebin) (FOR EXPLOTING)

May 23rd, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1. --controls
  2. --R = point right arm towards mouse
  3. --L = point left arm towards mouse
  4. --IT MAY BUG BECAUSE SOMETIMES THE LIMBS THE GLUE/BallSocketConstraint MAY DESTROY THE LIMB AFTER SOME TIME.
  5. -- I MIGHT OF FIXED IT THOUGH
  6. -- I CHANGED Glue TO BallSocketConstraint
  7. -- it could not be fixed though.
  8. ragdoll = game.Players.LocalPlayer.Character
  9. c = ragdoll
  10. player = ragdoll
  11. local RealTorso = player.Torso
  12. local RealHead = player.Head
  13. local RealLeftleg = player["Left Leg"]
  14. local RealRightleg = player["Right Leg"]
  15. local RealLeftArm = player["Left Arm"]
  16. local RealRightArm = player["Right Arm"]
  17. ragdoll.Humanoid.BreakJointsOnDeath = false
  18. -- head --
  19. ok = Instance.new("Attachment",ragdoll.Torso)
  20. ok.Position = Vector3.new(0,1,0)
  21. ok2 = Instance.new("Attachment",ragdoll.Head)
  22. ok2.Position = Vector3.new(0,-0.5,0)
  23. local headglue = Instance.new("BallSocketConstraint", RealTorso)
  24. headglue.Attachment0 = ok
  25. headglue.Attachment1 = ok2
  26. -- left arm --
  27. ok3 = Instance.new("Attachment",RealTorso)
  28. ok3.Position = Vector3.new(-1.5, 0.5, 0)
  29. ok4 = Instance.new("Attachment",RealLeftArm)
  30. ok4.Position = Vector3.new(0, 0.5, 0)
  31. coroutine.resume(coroutine.create(function()
  32. while wait() do
  33. if not RealTorso:FindFirstChild("rightlegglue") then
  34. local leftarmglue = Instance.new("BallSocketConstraint", RealTorso)
  35. leftarmglue.Attachment0 = ok3
  36. leftarmglue.Attachment1 = ok4
  37. leftarmglue.Name = "rightlegglue"
  38. end
  39. end
  40. end))
  41. -- right arm --
  42. ok5 = Instance.new("Attachment",RealTorso)
  43. ok5.Position = Vector3.new(1.5, 0.5, 0)
  44. ok6 = Instance.new("Attachment",RealRightArm)
  45. ok6.Position = Vector3.new(0, 0.5, 0)
  46. coroutine.resume(coroutine.create(function()
  47. while wait() do
  48. if not RealTorso:FindFirstChild("rightarmglue") then
  49. local leftarmglue = Instance.new("BallSocketConstraint", RealTorso)
  50. leftarmglue.Attachment0 = ok5
  51. leftarmglue.Attachment1 = ok6
  52. leftarmglue.Name = "rightarmglue"
  53. end
  54. end
  55. end))
  56. -- left leg --
  57. ok7 = Instance.new("Attachment",RealTorso)
  58. ok7.Position = Vector3.new(-0.5, -1, 0)
  59. ok8 = Instance.new("Attachment",RealLeftleg)
  60. ok8.Position = Vector3.new(0, 1, 0)
  61. coroutine.resume(coroutine.create(function()
  62. while wait() do
  63. if not RealTorso:FindFirstChild("leglegglue") then
  64. local leftarmglue = Instance.new("BallSocketConstraint", RealTorso)
  65. leftarmglue.Attachment0 = ok7
  66. leftarmglue.Attachment1 = ok8
  67. leftarmglue.Name = "leftlegglue"
  68. end
  69. end
  70. end))
  71. -- right leg --
  72. ok9 = Instance.new("Attachment",RealTorso)
  73. ok9.Position = Vector3.new(0.5, -1, 0)
  74. ok10 = Instance.new("Attachment",RealRightleg)
  75. ok10.Position = Vector3.new(0, 1, 0)
  76. coroutine.resume(coroutine.create(function()
  77. while wait() do
  78. if not RealTorso:FindFirstChild("rightlegglue") then
  79. local leftarmglue = Instance.new("BallSocketConstraint", RealTorso)
  80. leftarmglue.Attachment0 = ok9
  81. leftarmglue.Attachment1 = ok10
  82. end
  83. end
  84. end))
  85. RealTorso["Left Hip"]:Destroy()
  86. RealTorso["Right Hip"]:Destroy()
  87. RealTorso["Left Shoulder"]:Destroy()
  88. RealTorso["Right Shoulder"]:Destroy()
  89. RealTorso.Neck.Part0 = nil
  90. mouse = game.Players.LocalPlayer:GetMouse()
  91. camera = game.Workspace.CurrentCamera
  92. char = ragdoll
  93. local camPart2 = Instance.new("Part", camera)
  94. camPart2.Size = Vector3.new(0, 0, 0)
  95. camPart2.CFrame = camera.CFrame
  96. camPart2.CanCollide = false
  97. camPart2.Anchored = true
  98. camPart2.Transparency = 1
  99. local camPart = Instance.new("Part", camera)
  100. camPart.Size = Vector3.new(0, 0, 0)
  101. camPart.CFrame = CFrame.new(char.Head.Position, camPart2.Position) * CFrame.Angles(0,math.rad(180),0)
  102. camPart.CanCollide = false
  103. camPart.Anchored = true
  104. camPart.Transparency = 1
  105. local camPart3 = Instance.new("Part", camera)
  106. camPart3.Size = Vector3.new(0, 0, 0)
  107. camPart3.Position = mouse.hit.p
  108. camPart3.CanCollide = false
  109. camPart3.Anchored = true
  110. camPart3.Transparency = 1
  111. bodygyroxd = Instance.new("BodyGyro",char.Head)
  112. bodygyroxd.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  113. armvector = Instance.new("BodyGyro",RealRightArm)
  114. armvector.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  115. armvector2 = Instance.new("BodyGyro",RealLeftArm)
  116. armvector2.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  117. local pos = nil
  118. local pos2 = nil
  119. rpointer = false
  120. lpointer = false
  121. mouse.KeyDown:Connect(function(key)
  122. if key == "r" then
  123. rpointer = true
  124. end
  125. end)
  126. mouse.KeyUp:Connect(function(key)
  127. if key == "r" then
  128. rpointer = false
  129. end
  130. end)
  131. mouse.KeyUp:Connect(function(key)
  132. if key == "l" then
  133. lpointer = false
  134. end
  135. end)
  136. mouse.KeyDown:Connect(function(key)
  137. if key == "l" then
  138. lpointer = true
  139. end
  140. end)
  141. game:GetService("RunService").RenderStepped:Connect(function()
  142. camPart3.Position = mouse.hit.p
  143. camPart2.CFrame = camera.CFrame
  144. camPart.CFrame = CFrame.new(char.Head.Position, camPart2.Position) * CFrame.Angles(0,math.rad(180),0)
  145. pos = camPart.Position
  146. pos2 = camPart3.Position
  147. bodygyroxd.CFrame = camPart.CFrame
  148. if rpointer == true then
  149. armvector.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  150. else
  151. armvector.MaxTorque = Vector3.new(0,0,0)
  152. end
  153. if lpointer == true then
  154. armvector2.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  155. else
  156. armvector2.MaxTorque = Vector3.new(0,0,0)
  157. end
  158. armvector.CFrame = CFrame.new(armvector.Parent.Position,camPart3.Position) * CFrame.Angles(math.rad(90),0,0)
  159. armvector2.CFrame = CFrame.new(armvector.Parent.Position,camPart3.Position) * CFrame.Angles(math.rad(90),0,0)
  160. end)
  161. char["Right Arm"].LocalTransparencyModifier = 0
  162. char["Left Arm"].LocalTransparencyModifier = 0
  163. while game:GetService('RunService').RenderStepped:wait() do
  164. char['Left Arm'].LocalTransparencyModifier = 0
  165. char['Right Arm'].LocalTransparencyModifier = 0
  166. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement