Advertisement
ToysolDev

2

May 12th, 2021
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.50 KB | None | 0 0
  1. setsimulationradius(math.huge, math.huge)
  2.  
  3. local mouse = game.Players.LocalPlayer:GetMouse()
  4.  
  5. game.Players.LocalPlayer.Character.Archivable = true
  6. game.Players.LocalPlayer.Character.Animate.Disabled = true
  7. local clonec = game.Players.LocalPlayer.Character:Clone()
  8. clonec.Parent = workspace
  9. clonec.Name = "POOCLONE"
  10. clonec.Humanoid.HipHeight = -1.2 -- change this to look taller.
  11. game.Players.LocalPlayer.Character = clonec
  12. clonec.Animate.Disabled = false
  13.  
  14. workspace.Camera.CameraSubject = clonec.Humanoid
  15. game.Players.LocalPlayer.Character = workspace[game.Players.LocalPlayer.Name]
  16. game.Players.LocalPlayer.Character.Animate.Disabled = true
  17. ---game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  18. game.Players.LocalPlayer.Character.Humanoid.Animator:Destroy()
  19.  
  20. spawn(function()
  21.  
  22.  
  23. while true do
  24. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid") then
  25. clonec.Humanoid.Jump = game.Players.LocalPlayer.Character.Humanoid.Jump
  26.  
  27. local veco = workspace.Camera.CFrame:VectorToObjectSpace(game.Players.LocalPlayer.Character.Humanoid.MoveDirection)
  28. clonec.Humanoid:Move(veco, true)
  29.  
  30. end
  31. wait()
  32. end
  33.  
  34. end)
  35.  
  36. for i,v in pairs(clonec:GetDescendants())do
  37.  
  38. if v:IsA("Part") then
  39. v.Transparency = 1
  40. end
  41. end
  42.  
  43.  
  44.  
  45.  
  46.  
  47. local bodyvelocity = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character["HumanoidRootPart"])
  48. bodyvelocity.MaxForce = Vector3.new(9.9999999805064e+18, 9.999999869911e+14, 9.999999869911e+14)
  49. bodyvelocity.Velocity = Vector3.new(0, 0, 0)
  50. game:GetService("RunService").Stepped:connect(function()
  51.  
  52. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  53. game.Players.LocalPlayer.Character.Head.CanCollide = false
  54. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  55. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  56. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = (clonec.HumanoidRootPart.CFrame * CFrame.Angles(math.rad(-90),0,0)) * CFrame.new(0,-0,-1)
  57. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
  58. game.Players.LocalPlayer.Character.HumanoidRootPart.RotVelocity = Vector3.new(0,0,0)
  59.  
  60. end)
  61.  
  62.  
  63.  
  64.  
  65. local segments = Instance.new("Folder")
  66. local part = Instance.new("Part")
  67. local part_2 = Instance.new("Part")
  68.  
  69. segments.Name = "segments"
  70. segments.Parent = workspace
  71. part.Anchored = true
  72. part.CanCollide = false
  73. part.Transparency = 1
  74. part.Size = Vector3.new(1, 1, 2)
  75. part.BottomSurface = Enum.SurfaceType.Smooth
  76. part.BrickColor = BrickColor.new("Alder")
  77. part.TopSurface = Enum.SurfaceType.Smooth
  78. part.Color = Color3.new(0.666667, 0.333333, 1)
  79. part.Parent = segments
  80. part.Name = "seg1"
  81. part.CFrame = CFrame.new(-4.1, 2.1, -37.5)
  82. part_2.Anchored = true
  83. part_2.CanCollide = false
  84. part_2.Size = Vector3.new(1, 1, 2)
  85. part_2.BottomSurface = Enum.SurfaceType.Smooth
  86. part_2.BrickColor = BrickColor.new("Cool yellow")
  87. part_2.TopSurface = Enum.SurfaceType.Smooth
  88. part_2.Color = Color3.new(0.992157, 0.917647, 0.552941)
  89. part_2.Parent = segments
  90. part_2.CFrame = CFrame.new(-4.1, 2.1, -37.5)
  91. part_2.Name = "seg2"
  92. part_2.Transparency = 1
  93.  
  94. local segments2 = Instance.new("Folder")
  95. local part = Instance.new("Part")
  96. local part_2 = Instance.new("Part")
  97.  
  98. segments2.Name = "segments2"
  99. segments2.Parent = workspace
  100. part.Anchored = true
  101. part.CanCollide = false
  102. part.Size = Vector3.new(1, 1, 2)
  103. part.BottomSurface = Enum.SurfaceType.Smooth
  104. part.BrickColor = BrickColor.new("Alder")
  105. part.TopSurface = Enum.SurfaceType.Smooth
  106. part.Name = "seg1"
  107. part.Color = Color3.new(0.666667, 0.333333, 1)
  108. part.Parent = segments2
  109. part.CFrame = CFrame.new(-4.1, 2.1, -37.5)
  110. part_2.Anchored = true
  111. part_2.CanCollide = false
  112. part_2.Size = Vector3.new(1, 1, 2)
  113. part_2.BottomSurface = Enum.SurfaceType.Smooth
  114. part_2.BrickColor = BrickColor.new("Alder")
  115. part_2.TopSurface = Enum.SurfaceType.Smooth
  116. part_2.Color = Color3.new(0.666667, 0.333333, 1)
  117. part_2.Parent = segments2
  118. part_2.CFrame = CFrame.new(-4.1, 2.1, -37.5)
  119. part_2.Name = "seg2"
  120. part_2.Transparency = 1
  121. part.Transparency = 1
  122.  
  123.  
  124.  
  125. local leg1 = Instance.new("Part")
  126. leg1.Anchored = true
  127. leg1.Size = Vector3.new(0.5, 0.2, 0.5)
  128. leg1.BottomSurface = Enum.SurfaceType.Smooth
  129. leg1.Color = Color3.new(0, 1, 0)
  130. leg1.BrickColor = BrickColor.new("New Yeller")
  131. leg1.TopSurface = Enum.SurfaceType.Smooth
  132. leg1.Name = "leg1"
  133. leg1.Parent = workspace
  134. leg1.CFrame = CFrame.new(-31.15, 0.1, 8.65)
  135. leg1.CanCollide = false
  136. leg1.Transparency = 1
  137.  
  138.  
  139.  
  140.  
  141.  
  142. local leg1 =workspace.leg1:Clone()
  143. leg1.Parent = workspace
  144.  
  145. local leg2= workspace.leg1:Clone()
  146. leg2.Parent = workspace
  147.  
  148. local lp = game.Players.LocalPlayer
  149. local head = game.Players.LocalPlayer.Character.Head
  150.  
  151. function coffset(x,y,z)
  152. return (head.CFrame * CFrame.new(x,y,z)).Position
  153. end
  154.  
  155.  
  156.  
  157.  
  158. mouse.KeyDown:connect(function(k)
  159.  
  160. if k == "z" then
  161.  
  162. leg1.Position = mouse.Hit.Position
  163. elseif k == "x" then
  164.  
  165.  
  166. leg2.Position = mouse.Hit.Position
  167. end
  168.  
  169. end)
  170.  
  171.  
  172.  
  173.  
  174. spawn(function()
  175. --
  176. while true do
  177.  
  178.  
  179. if game.Players.LocalPlayer.Character.Humanoid.MoveDirection.Magnitude >0.1 then
  180. wait(1.6/lp.Character.Humanoid.WalkSpeed)
  181.  
  182. local ray1 =Ray.new(coffset(3,-0,0),Vector3.new(0,-10,0) )
  183. local hit,pos = workspace:FindPartOnRayWithIgnoreList(ray1,{leg1,leg2,lp.Character})
  184. if pos then
  185. leg1.Position = pos
  186. end
  187.  
  188.  
  189.  
  190. wait(1.6/lp.Character.Humanoid.WalkSpeed)
  191. local ray2 =Ray.new(coffset(-3,-0,0),Vector3.new(0,-10,0) )
  192. local hit,pos = workspace:FindPartOnRayWithIgnoreList(ray2,{leg1,leg2,lp.Character})
  193. if pos then
  194. leg2.Position = pos
  195. end
  196.  
  197. end
  198. game:GetService("RunService").RenderStepped:wait()
  199. end
  200.  
  201. end)
  202.  
  203.  
  204.  
  205.  
  206. spawn(function()
  207.  
  208. local mouse = game.Players.LocalPlayer:GetMouse()
  209.  
  210.  
  211.  
  212. local len = 2
  213.  
  214. local offset = Vector3.new(1,-3,0)
  215.  
  216. local offset = Vector3.new(1,-1,0)
  217.  
  218. local segs = {}
  219.  
  220. local posn = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,-2.5,0)
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227. for i,v in pairs(workspace.segments:GetChildren()) do
  228.  
  229.  
  230.  
  231. table.insert(segs,v)
  232.  
  233.  
  234. end
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241. function vectorabsy(vec)
  242. local v = Vector3.new(vec.X,math.abs(vec.Y),vec.Z)
  243. return v
  244. end
  245.  
  246.  
  247. local count = #segs
  248.  
  249.  
  250. while true do
  251.  
  252. for i = 1,5 do
  253.  
  254. for i = 1,count do
  255.  
  256. if i == 1 then
  257.  
  258. local seg = segs[i]
  259.  
  260. local pos1 = segs[i].Position - (segs[i].CFrame.LookVector* (len/2) ) -- Calculating position that is on back of the part
  261. local pos2 =leg1.Position
  262. local vec = (pos2 - pos1).Unit
  263.  
  264. local cframe = CFrame.new(pos2 - (vec*(len/2) ),pos2)
  265.  
  266. seg.CFrame = cframe
  267.  
  268. else
  269. local seg = segs[i]
  270. local pos1 = segs[i].Position - (segs[i].CFrame.LookVector* (len/2) )
  271. local pos2 = segs[i-1].Position - (segs[i-1].CFrame.LookVector* (len/2) )
  272. local vec = (pos2 - pos1).Unit
  273. local cframe = CFrame.new(pos2 - (vec*(len/2) ),pos2)
  274.  
  275. seg.CFrame = cframe
  276. end
  277.  
  278. end
  279.  
  280. --Back
  281.  
  282.  
  283. for i = 1,count do
  284.  
  285. local i = ( count - i ) + 1
  286. if i == count then
  287.  
  288. local seg = segs[i]
  289.  
  290. local pos1 = segs[i].Position + (segs[i].CFrame.LookVector* (len/2) ) -- Calculating position that is on back of the part
  291. local pos2 =(game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(offset)).Position
  292. local vec =(pos2 - pos1).Unit
  293. if vec.Y > 0 then
  294.  
  295. vec = Vector3.new(vec.X, vec.Y-0.01 ,vec.Z)
  296.  
  297. end
  298.  
  299. local cframe = CFrame.new(pos2 - (vec*(len/2) ),pos2) * CFrame.Angles(0,math.rad(-180),0)
  300.  
  301. seg.CFrame =cframe
  302.  
  303. else
  304. local seg = segs[i]
  305. local pos1 = segs[i].Position + (segs[i].CFrame.LookVector* (len/2) )
  306.  
  307. local pos2 = segs[i+1].Position + (segs[i+1].CFrame.LookVector* (len/2) )
  308. local vec = (pos2 - pos1).Unit
  309.  
  310. local cframe = CFrame.new(pos2 - (vec*(len/2) ),pos2) * CFrame.Angles(0,math.rad(-180),0)
  311.  
  312. seg.CFrame = cframe
  313. end
  314.  
  315. end
  316.  
  317. end
  318. game:GetService("RunService").Heartbeat:wait()
  319. end
  320.  
  321. end)
  322.  
  323.  
  324.  
  325.  
  326. spawn(function()
  327.  
  328. local mouse = game.Players.LocalPlayer:GetMouse()
  329.  
  330.  
  331.  
  332. local len = 2
  333.  
  334. local offset = Vector3.new(-1,-1,0)
  335.  
  336. local segs = {}
  337.  
  338. local posn = game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,-2.5,0)
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345. for i,v in pairs(workspace.segments2:GetChildren()) do
  346.  
  347.  
  348.  
  349. table.insert(segs,v)
  350.  
  351.  
  352. end
  353.  
  354.  
  355.  
  356.  
  357.  
  358. function vectorabsy(vec)
  359. local v = Vector3.new(vec.X,math.abs(vec.Y),vec.Z)
  360. return v
  361. end
  362.  
  363.  
  364. local count = #segs
  365.  
  366.  
  367. while true do
  368.  
  369. for i = 1,5 do
  370.  
  371. for i = 1,count do
  372.  
  373. if i == 1 then
  374.  
  375. local seg = segs[i]
  376.  
  377. local pos1 = segs[i].Position - (segs[i].CFrame.LookVector* (len/2) ) -- Calculating position that is on back of the part
  378. local pos2 =leg2.Position
  379. local vec = (pos2 - pos1).Unit
  380.  
  381. local cframe = CFrame.new(pos2 - (vec*(len/2) ),pos2)
  382.  
  383. seg.CFrame = cframe
  384.  
  385. else
  386. local seg = segs[i]
  387. local pos1 = segs[i].Position - (segs[i].CFrame.LookVector* (len/2) )
  388. local pos2 = segs[i-1].Position - (segs[i-1].CFrame.LookVector* (len/2) )
  389. local vec = (pos2 - pos1).Unit
  390. local cframe = CFrame.new(pos2 - (vec*(len/2) ),pos2)
  391.  
  392. seg.CFrame = cframe
  393. end
  394.  
  395. end
  396.  
  397. --Back
  398.  
  399.  
  400. for i = 1,count do
  401.  
  402. local i = ( count - i ) + 1
  403. if i == count then
  404.  
  405. local seg = segs[i]
  406.  
  407. local pos1 = segs[i].Position + (segs[i].CFrame.LookVector* (len/2) ) -- Calculating position that is on back of the part
  408. local pos2 =(game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(offset)).Position
  409. local vec =(pos2 - pos1).Unit
  410. if vec.Y > 0 then
  411.  
  412. vec = Vector3.new(vec.X, vec.Y-0.01 ,vec.Z)
  413.  
  414. end
  415.  
  416. local cframe = CFrame.new(pos2 - (vec*(len/2) ),pos2) * CFrame.Angles(0,math.rad(-180),0)
  417.  
  418. seg.CFrame =cframe
  419.  
  420. else
  421. local seg = segs[i]
  422. local pos1 = segs[i].Position + (segs[i].CFrame.LookVector* (len/2) )
  423.  
  424. local pos2 = segs[i+1].Position + (segs[i+1].CFrame.LookVector* (len/2) )
  425. local vec = (pos2 - pos1).Unit
  426.  
  427. local cframe = CFrame.new(pos2 - (vec*(len/2) ),pos2) * CFrame.Angles(0,math.rad(-180),0)
  428.  
  429. seg.CFrame = cframe
  430. end
  431.  
  432. end
  433.  
  434. end
  435. game:GetService("RunService").Heartbeat:wait()
  436. end
  437.  
  438. end)
  439.  
  440.  
  441. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Destroy()
  442. game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Destroy()
  443. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Destroy()
  444. game.Players.LocalPlayer.Character.Torso["Left Hip"]:Destroy()
  445.  
  446.  
  447.  
  448. local bodyvelocity = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character["Right Arm"])
  449. bodyvelocity.MaxForce = Vector3.new(9.9999999805064e+18, 9.999999869911e+14, 9.999999869911e+14)
  450. bodyvelocity.Velocity = Vector3.new(0, 200, 0)
  451.  
  452. local bodyvelocity = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character["Left Arm"])
  453. bodyvelocity.MaxForce = Vector3.new(9.9999999805064e+18, 9.999999869911e+14, 9.999999869911e+14)
  454. bodyvelocity.Velocity = Vector3.new(0, 200, 0)
  455.  
  456. local bodyvelocity = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character["Left Leg"])
  457. bodyvelocity.MaxForce = Vector3.new(9.9999999805064e+18, 9.999999869911e+14, 9.999999869911e+14)
  458. bodyvelocity.Velocity = Vector3.new(0, 200, 0)
  459.  
  460. local bodyvelocity = Instance.new("BodyVelocity",game.Players.LocalPlayer.Character["Right Leg"])
  461. bodyvelocity.MaxForce = Vector3.new(9.9999999805064e+18, 9.999999869911e+14, 9.999999869911e+14)
  462. bodyvelocity.Velocity = Vector3.new(0, 200, 0)
  463.  
  464. spawn(function()
  465.  
  466.  
  467. game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()
  468.  
  469. segments:Destroy()
  470. segments2:Destroy()
  471.  
  472. end)
  473.  
  474. game:GetService("RunService").Stepped:connect(function()
  475. game.Players.LocalPlayer.Character["Right Arm"].CanCollide = false
  476. game.Players.LocalPlayer.Character["Left Arm"].CanCollide = false
  477.  
  478. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  479. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  480.  
  481. end)
  482.  
  483. repeat game:GetService("RunService").Heartbeat:wait()
  484.  
  485. game.Players.LocalPlayer.Character["Right Arm"].CFrame = segments.seg1 .CFrame * CFrame.Angles(math.rad(90),0,0 )
  486. game.Players.LocalPlayer.Character["Left Arm"].CFrame = segments.seg2.CFrame * CFrame.Angles(math.rad(90),0,0 )
  487.  
  488. game.Players.LocalPlayer.Character["Right Leg"].CFrame = segments2.seg1.CFrame * CFrame.Angles(math.rad(90),0,0 )
  489. game.Players.LocalPlayer.Character["Left Leg"].CFrame = segments2.seg2.CFrame * CFrame.Angles(math.rad(90),0,0 )
  490.  
  491. until game.Players.LocalPlayer.Character.Humanoid.Health < 1
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498. end)
  499.  
  500. --thisisascript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement