Advertisement
fireband12

Untitled

Mar 28th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 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 Head = Character:WaitForChild("Head")
  7. local RootPart = Character:WaitForChild("HumanoidRootPart")
  8. local Torso = Character:WaitForChild("Torso")
  9. local RightArm = Character:WaitForChild("Right Arm")
  10. local LeftArm = Character:WaitForChild("Left Arm")
  11. local RightLeg = Character:WaitForChild("Right Leg")
  12. local LeftLeg = Character:WaitForChild("Left Leg")
  13. local Neck = Torso:WaitForChild("Neck")
  14. local RightSH = Torso:WaitForChild("Right Shoulder")
  15. local LeftSH = Torso:WaitForChild("Left Shoulder")
  16. local RightHip = Torso:WaitForChild("Right Hip")
  17. local LeftHip = Torso:WaitForChild("Left Hip")
  18. local it = Instance.new
  19. local vt = Vector3.new
  20. local cf = CFrame.new
  21. local angles = CFrame.Angles
  22. local euler = CFrame.fromEulerAnglesXYZ
  23. local UD2 = UDim2.new
  24. local bc = BrickColor.new
  25. local c3 = Color3.new
  26.  
  27. function newPart(Parent, Name, Size, BottomSurface,TopSurface,RightSurface,LeftSurface,FrontSurface,BackSurface) --- Would this work, all of the below C:?
  28. local nPart = it("Part", Parent)
  29. nPart.Name = Name
  30. nPart.Size = Size
  31. nPart.BottomSurface,TopSurface,RightSurface,LeftSurface,FrontSurface,BackSurface = BottomSurface,TopSurface,RightSurface,LeftSurface,FrontSurface,BackSurface
  32. return nPart
  33. end
  34. local staff = newPart(Character,"Yo", vt(0.5,5,0.5), "Smooth","Smooth","Smooth","Smooth","Smooth","Smooth")
  35. staff.FormFactor = "Custom"
  36. local RightSnap = it("Snap", Character)
  37. RightSnap.Part0 = Torso
  38. RightSnap.Part1 = RightArm
  39. RightSnap.C0 = cf(1.5,0.3,0) * angles(0,0,0.5)
  40. local StaffSnap = it("Snap", Character)
  41. StaffSnap.Part0 = RightArm
  42. StaffSnap.Part1 = staff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement