haxurs199

[FE] Snake

Mar 6th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. print("Made by Ayano#0002")
  2. _G.on = true
  3. local parts = {}
  4. local lp = {}
  5. local chr = game.Players.LocalPlayer.Character
  6. local bp = game.Players.LocalPlayer.Backpack
  7. for i,d in pairs(game.Players.LocalPlayer.Character.Humanoid:GetAccessories()) do
  8. local part = nil
  9. pcall(function()
  10. part = d.Handle
  11. end)
  12. if part ~= nil then
  13. local c = Instance.new("Tool")
  14. c.Name = "s-"..d.Name
  15. c.Parent = game.Players.LocalPlayer.Backpack
  16. c.Parent = game.Players.LocalPlayer.Character
  17. part.Massless = true
  18. part:FindFirstChildOfClass("Weld"):Destroy()
  19. part.Parent = c
  20.  
  21. for l,k in pairs(part:GetChildren()) do
  22. k:Destroy()
  23. end
  24. table.insert(parts, c)
  25. end
  26.  
  27. end
  28. local rs = game:GetService('RunService').RenderStepped
  29. local l = 1
  30. local fparts = {}
  31. for i,d in pairs(parts) do
  32. for i=1,5 do
  33. table.insert(fparts,"no")
  34. end
  35. table.insert(fparts,d)
  36. end
  37. while _G.on and rs:wait() do
  38. local cp = {}
  39. for i,d in pairs(fparts) do
  40. local pos = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  41. if type(d) ~= "string" then
  42. local cfd = ((game.Players.LocalPlayer.Character:FindFirstChild("Right Arm") or game.Players.LocalPlayer.Character:FindFirstChild("RightLowerArm")).CFrame * CFrame.new(0, -1, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0))
  43. d.Parent = game.Players.LocalPlayer.Backpack
  44. if i == 1 then
  45. d.Grip = cfd:toObjectSpace(CFrame.new(pos.p)):inverse()
  46. cp[i] = pos
  47. elseif lp[i - 1] ~= nil then
  48. d.Grip = cfd:toObjectSpace(CFrame.new(lp[i-1].p)):inverse()
  49. cp[i] = lp[i-1]
  50. end
  51. d.Parent = game.Players.LocalPlayer.Character
  52. else
  53. if i == 1 then
  54. cp[i] = pos
  55. elseif lp[i - 1] ~= nil then
  56. cp[i] = lp[i-1]
  57. end
  58. end
  59. end
  60. lp = cp
  61. end
Add Comment
Please, Sign In to add comment