Advertisement
fireband12

Untitled

Mar 28th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. local Services = setmetatable({}, { __index = function(Self, Request) return game:getService(Request) or nil end })
  2. local Player = Services.Players.LocalPlayer
  3. local Backpack = Player:WaitForChild("Backpack")
  4. local Character = Player.Character
  5. local PlayerGui = Player:WaitForChild("PlayerGui")
  6. local Humanoid = Character:WaitForChild("Humanoid")
  7. local Head = Character:WaitForChild("Head")
  8. local RootPart = Character:WaitForChild("HumanoidRootPart")
  9. local Torso = Character:WaitForChild("Torso")
  10. local RightArm = Character:WaitForChild("Right Arm")
  11. local LeftArm = Character:WaitForChild("Left Arm")
  12. local RightLeg = Character:WaitForChild("Right Leg")
  13. local LeftLeg = Character:WaitForChild("Left Leg")
  14. local Neck = Torso:WaitForChild("Neck")
  15. local RightSH = Torso:WaitForChild("Right Shoulder")
  16. local LeftSH = Torso:WaitForChild("Left Shoulder")
  17. local RightHip = Torso:WaitForChild("Right Hip")
  18. local LeftHip = Torso:WaitForChild("Left Hip")
  19. local it = Instance.new
  20. local vt = Vector3.new
  21. local cf = CFrame.new
  22. local angles = CFrame.Angles
  23. local euler = CFrame.fromEulerAnglesXYZ
  24. local UD2 = UDim2.new
  25. local bc = BrickColor.new
  26. local c3 = Color3.new
  27.  
  28. function newPart(Parent, Name, Size, FormFactor, BottomSurface,TopSurface,RightSurface,LeftSurface,FrontSurface,BackSurface) --- Would this work, all of the below C:?
  29. local nPart = it("Part", Parent)
  30. nPart.FormFactor = FormFactor
  31. nPart.Name = Name
  32. nPart.Size = Size
  33. nPart.BottomSurface,TopSurface,RightSurface,LeftSurface,FrontSurface,BackSurface = BottomSurface,TopSurface,RightSurface,LeftSurface,FrontSurface,BackSurface
  34. return nPart
  35. end
  36. local staff = newPart(Character,"Yo",Vector3.new(0.5,5,0.5),"Custom", "Smooth","Smooth","Smooth","Smooth","Smooth","Smooth")
  37. local RightSnap = it("Snap", Character)
  38. RightSnap.Part0 = Torso
  39. RightSnap.Part1 = RightArm
  40. RightSnap.C0 = cf(1.5,0.3,0) * angles(0,0,0.5)
  41. local LeftSnap = it("Snap", Character)
  42. LeftSnap.Part0 = Torso
  43. LeftSnap.Part1 = LeftArm
  44. LeftSnap.C0 = cf(-1.5,0.3,0) * angles(0,0,-0.5)
  45. local StaffSnap = it("Snap", Character)
  46. StaffSnap.Part0 = RightArm
  47. StaffSnap.Part1 = staff
  48.  
  49. local Walking
  50.  
  51. Humanoid.Running:connect(function(Speed)
  52. if Speed > 0 then
  53. Walking = true
  54. else
  55. Walking = false
  56. end
  57. end)
  58.  
  59. local Point = LeftArm.CFrame
  60. local LastPoint = Point
  61. local currentcube
  62. while true and Walking == true do
  63. Point = LeftArm.CFrame
  64. cube = newPart(LeftArm, "Hi", Vector3.new(1.4,1.2,1.4), "Custom", "Smooth", "Smooth", "Smooth", "Smooth", "Smooth", "Smooth")
  65. cube.Anchored = true
  66. cube.CFrame = Point
  67. currentcube = cube
  68. wait(.1)
  69. LastPoint = Point
  70. end
  71. for i = 1, 10 do
  72. pcall(function()
  73. currentcube.Transparency = currentcube.Transparency + 0.1
  74. wait(.2)
  75. game:GetService("Debris"):AddItem(currentcube, 1)
  76. end)
  77. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement