Advertisement
ILovePotato

Untitled

Dec 7th, 2024
1,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.17 KB | None | 0 0
  1. --[[
  2. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  3. ]]
  4. local plr = game.Players.LocalPlayer;
  5. local chr = plr.Character;
  6. local hum = chr.Humanoid;
  7.  
  8. --Making Controllable Gui
  9. local ScreenGui = Instance.new("ScreenGui", game.CoreGui)
  10.  
  11. local LeftHandRedParent = Instance.new("Frame",ScreenGui)
  12. local RightHandBlueParent = Instance.new("Frame",ScreenGui)
  13.  
  14. local LeftHandRed = Instance.new("Frame",LeftHandRedParent)
  15. local RightHandBlue = Instance.new("Frame",RightHandBlueParent)
  16.  
  17. LeftHandRedParent.BackgroundColor3 = Color3.new(0.5, 0.0, 0.0)
  18. LeftHandRedParent.Position = UDim2.new(0.25, 0, 0.3, 0)
  19. LeftHandRedParent.Size = UDim2.new(0, 50, 0, 50)
  20.  
  21. RightHandBlueParent.BackgroundColor3 = Color3.new(0.0, 0.0, 0.5)
  22. RightHandBlueParent.Position = UDim2.new(0.60, 0.0, 0.3, 0.0)
  23. RightHandBlueParent.Size = UDim2.new(0, 50, 0, 50)
  24.  
  25. LeftHandRed.BackgroundColor3 = Color3.new(1.0, 0.0, 0.0)
  26. LeftHandRed.Position = UDim2.new(0.0, 0, 0.0, 0)
  27. LeftHandRed.Size = UDim2.new(0.8,0,0.8,0.0)
  28. LeftHandRed.Active = true
  29. LeftHandRed.Draggable = true
  30.  
  31. RightHandBlue.BackgroundColor3 = Color3.new(0.0, 0.0, 1.0)
  32. RightHandBlue.Size = UDim2.new(0.8,0,0.8,0.0)
  33. RightHandBlue.Active = true
  34. RightHandBlue.Draggable = true
  35.  
  36. --armfirstperson
  37.  
  38. local LEFTARMFIRSTPERSON = Instance.new("Part", game.Workspace)
  39. LEFTARMFIRSTPERSON.Size = Vector3.new(chr["Left Arm"].Size.X * 0.7,chr["Left Arm"].Size.Y * 0.7,chr["Left Arm"].Size.Z * 0.7)
  40. LEFTARMFIRSTPERSON.CanCollide = false
  41. LEFTARMFIRSTPERSON.Transparency = 0.3
  42. LEFTARMFIRSTPERSON.Anchored = true
  43.  
  44. local RIGHTARMFIRSTPERSON = Instance.new("Part", game.Workspace)
  45. RIGHTARMFIRSTPERSON.Size = Vector3.new(chr["Left Arm"].Size.X * 0.7,chr["Left Arm"].Size.Y * 0.7,chr["Left Arm"].Size.Z * 0.7)
  46. RIGHTARMFIRSTPERSON.CanCollide = false
  47. RIGHTARMFIRSTPERSON.Transparency = 0.3
  48. RIGHTARMFIRSTPERSON.Anchored = true
  49.  
  50. wait()
  51.  
  52. chr:SetPrimaryPartCFrame(chr.Torso.CFrame * CFrame.Angles(0,math.rad(0),0))
  53.  
  54. wait()
  55.  
  56. game.Players.LocalPlayer.character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.character.HumanoidRootPart.Position.x,game.Players.LocalPlayer.character.HumanoidRootPart.Position.y,game.Players.LocalPlayer.character.HumanoidRootPart.Position.z)
  57.  
  58. wait()
  59.  
  60. chr["Right Arm"]:BreakJoints()
  61. chr["Left Arm"]:BreakJoints()
  62. chr["Right Leg"]:BreakJoints()
  63. chr["Left Leg"]:BreakJoints()
  64.  
  65. chr.Torso.CanCollide = false
  66. chr["Right Arm"].CanCollide = true
  67. chr["Left Arm"].CanCollide = true
  68. chr["Right Leg"].CanCollide = true
  69. chr["Left Leg"].CanCollide = true
  70.  
  71. local RightArm0 = Instance.new("Attachment", chr["Right Arm"])
  72. RightArm0.Position = Vector3.new(0.15, 1, 0)
  73. local RightArm1 = Instance.new("Attachment", chr["Torso"])
  74. RightArm1.Position = Vector3.new(1.65, 0.85, 0)
  75. local socket1 = Instance.new("BallSocketConstraint", chr["Right Arm"])
  76. socket1.Attachment0 = RightArm0
  77. socket1.Attachment1 = RightArm1
  78.  
  79. local LeftArm0 = Instance.new("Attachment", chr["Left Arm"])
  80. LeftArm0.Position = Vector3.new(-0.15, 1, 0)
  81. local LeftArm1 = Instance.new("Attachment", chr["Torso"])
  82. LeftArm1.Position = Vector3.new(-1.65, 0.85, 0)
  83. local socket2 = Instance.new("BallSocketConstraint", chr["Left Arm"])
  84. socket2.Attachment0 = LeftArm0
  85. socket2.Attachment1 = LeftArm1
  86.  
  87. local RightRopeLeg0 = Instance.new("Attachment", chr["Right Leg"])
  88. RightRopeLeg0.Position = Vector3.new(0, 1, 0)
  89. local RightRopeLeg1 = Instance.new("Attachment", chr["Torso"])
  90. RightRopeLeg1.Position = Vector3.new(0.35, 1, 0)
  91. local socket3 = Instance.new("RopeConstraint", chr["Right Leg"])
  92. socket3.Attachment0 = RightRopeLeg0
  93. socket3.Attachment1 = RightRopeLeg1
  94.  
  95. local LeftRopeLeg0 = Instance.new("Attachment", chr["Left Leg"])
  96. LeftRopeLeg0.Position = Vector3.new(0, 1, 0)
  97. local LeftRopeLeg1 = Instance.new("Attachment", chr["Torso"])
  98. LeftRopeLeg1.Position = Vector3.new(-0.35, 1, 0)
  99. local socket4 = Instance.new("RopeConstraint", chr["Left Leg"])
  100. socket4.Attachment0 = LeftRopeLeg0
  101. socket4.Attachment1 = LeftRopeLeg1
  102.  
  103. --Lerp part 0
  104. local RightLeg0 = Instance.new("Attachment", chr["Torso"])
  105. RightLeg0.WorldPosition = chr["Right Leg"].Position
  106.  
  107. local LeftLeg0 = Instance.new("Attachment", chr["Torso"])
  108. LeftLeg0.WorldPosition = chr["Left Leg"].Position
  109.  
  110. --Lerp part 1
  111. local RightLeg1 = Instance.new("Attachment", chr["Torso"])
  112. RightLeg1.WorldPosition = Vector3.new(chr["Right Leg"].Position.X,chr["Right Leg"].Position.Y + 1.0,chr["Right Leg"].Position.Z - 1.0)
  113.  
  114. local LeftLeg1 = Instance.new("Attachment", chr["Torso"])
  115. LeftLeg1.WorldPosition = Vector3.new(chr["Left Leg"].Position.X,chr["Left Leg"].Position.Y + 1.0,chr["Left Leg"].Position.Z - 1.0)
  116.  
  117. --Lerp part 2
  118. local RightLeg2 = Instance.new("Attachment", chr["Torso"])
  119. RightLeg2.WorldPosition = Vector3.new(chr["Right Leg"].Position.X,chr["Right Leg"].Position.Y,chr["Right Leg"].Position.Z - 0.5)
  120.  
  121. local LeftLeg2 = Instance.new("Attachment", chr["Torso"])
  122. LeftLeg2.WorldPosition = Vector3.new(chr["Left Leg"].Position.X,chr["Left Leg"].Position.Y,chr["Left Leg"].Position.Z - 0.5)
  123.  
  124. --Lerp part 3
  125. local RightLeg3 = Instance.new("Attachment", chr["Torso"])
  126. RightLeg3.WorldPosition = Vector3.new(chr["Right Leg"].Position.X,chr["Right Leg"].Position.Y,chr["Right Leg"].Position.Z + 0.2)
  127.  
  128. local LeftLeg3 = Instance.new("Attachment", chr["Torso"])
  129. LeftLeg3.WorldPosition = Vector3.new(chr["Left Leg"].Position.X,chr["Left Leg"].Position.Y,chr["Left Leg"].Position.Z + 0.2)
  130.  
  131. LegsPart = 0
  132.  
  133. game:GetService("RunService").Heartbeat:connect(function()
  134.  
  135. --arms
  136. chr["Right Arm"].Orientation = Vector3.new(chr.Torso.Orientation.X - RightHandBlue.Position.Y.Offset,chr.Torso.Orientation.Y - RightHandBlue.Position.X.Offset,chr.Torso.Orientation.Z)
  137. chr["Left Arm"].Orientation = Vector3.new(chr.Torso.Orientation.X - LeftHandRed.Position.Y.Offset,chr.Torso.Orientation.Y + LeftHandRed.Position.X.Offset,chr.Torso.Orientation.Z )
  138.  
  139. --In First Person Arm
  140. RIGHTARMFIRSTPERSON.CFrame = RIGHTARMFIRSTPERSON.CFrame:Lerp(chr["Right Arm"].CFrame, 0.7)
  141. LEFTARMFIRSTPERSON.CFrame = LEFTARMFIRSTPERSON.CFrame:Lerp(chr["Left Arm"].CFrame, 0.7)
  142.  
  143. chr.Head.Velocity = Vector3.new(0,3,0)
  144. chr.Torso.Velocity = Vector3.new(0,3,0)
  145. chr["Right Arm"].Velocity = Vector3.new(0,3,0)
  146. chr["Left Arm"].Velocity = Vector3.new(0,3,0)
  147. chr["Right Leg"].Velocity = Vector3.new(0,3,0)
  148. chr["Left Leg"].Velocity = Vector3.new(0,3,0)
  149.  
  150. if chr.Humanoid.Health < 1 then
  151. LeftHandRedParent.Position = UDim2.new(99, 0, 0.3, 0)
  152. RightHandBlueParent.Position = UDim2.new(99, 0, 0.3, 0)
  153. end
  154.  
  155. --sit
  156.  
  157. if chr.Humanoid.Sit == true then
  158. chr["Right Leg"].CFrame = chr["Right Leg"].CFrame:Lerp(RightLeg1.WorldCFrame, 0.7)
  159. chr["Left Leg"].CFrame = chr["Left Leg"].CFrame:Lerp(LeftLeg1.WorldCFrame, 0.65)
  160. end
  161.  
  162. if chr.Humanoid.Sit == false then
  163.  
  164. --idle
  165.  
  166. if chr.Torso.Velocity.Magnitude < 4 then
  167. if chr.Torso.Velocity.Y < 4 then
  168. if chr.Torso.Velocity.Y > -4 then
  169. chr["Right Leg"].CFrame = chr["Right Leg"].CFrame:Lerp(RightLeg0.WorldCFrame, 0.7)
  170. chr["Left Leg"].CFrame = chr["Left Leg"].CFrame:Lerp(LeftLeg0.WorldCFrame, 0.65)
  171. end
  172. end
  173. end
  174.  
  175. --air
  176.  
  177. if chr.Torso.Velocity.Y > 4 then
  178. chr["Right Leg"].CFrame = chr["Right Leg"].CFrame:Lerp(RightLeg1.WorldCFrame, 0.7)
  179. chr["Left Leg"].CFrame = chr["Left Leg"].CFrame:Lerp(LeftLeg1.WorldCFrame, 0.65)
  180. end
  181. if chr.Torso.Velocity.Y < -4 then
  182. chr["Right Leg"].CFrame = chr["Right Leg"].CFrame:Lerp(RightLeg1.WorldCFrame, 0.7)
  183. chr["Left Leg"].CFrame = chr["Left Leg"].CFrame:Lerp(LeftLeg1.WorldCFrame, 0.65)
  184. end
  185.  
  186. --walking
  187.  
  188. if chr.Torso.Velocity.Magnitude > 4 then
  189. if chr.Torso.Velocity.Y < 4 then
  190. if chr.Torso.Velocity.Y > -4 then
  191.  
  192. if LegsPart == 0 then
  193. chr["Right Leg"].CFrame = chr["Right Leg"].CFrame:Lerp(RightLeg1.WorldCFrame, 0.35)
  194. chr["Left Leg"].CFrame = chr["Left Leg"].CFrame:Lerp(LeftLeg2.WorldCFrame, 0.35)
  195. wait(0.15)
  196. LegsPart = 1
  197. end
  198.  
  199. if LegsPart == 1 then
  200. chr["Right Leg"].CFrame = chr["Right Leg"].CFrame:Lerp(RightLeg2.WorldCFrame, 0.35)
  201. chr["Left Leg"].CFrame = chr["Left Leg"].CFrame:Lerp(LeftLeg3.WorldCFrame, 0.35)
  202. wait(0.15)
  203. LegsPart = 2
  204. end
  205.  
  206. if LegsPart == 2 then
  207. chr["Right Leg"].CFrame = chr["Right Leg"].CFrame:Lerp(RightLeg3.WorldCFrame, 0.36)
  208. chr["Left Leg"].CFrame = chr["Left Leg"].CFrame:Lerp(LeftLeg1.WorldCFrame, 0.35)
  209. wait(0.15)
  210. LegsPart = 0
  211. end
  212. end
  213. end
  214. end
  215. end
  216.  
  217. wait(0.5)
  218.  
  219. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement