Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Services = setmetatable({}, { __index = function(Self, Request) return game:getService(Request) or nil end })
- local Player = Services.Players.LocalPlayer
- local Backpack = Player:WaitForChild("Backpack")
- local Character = Player.Character
- local PlayerGui = Player:WaitForChild("PlayerGui")
- local Head = Character:WaitForChild("Head")
- local RootPart = Character:WaitForChild("HumanoidRootPart")
- local Torso = Character:WaitForChild("Torso")
- local RightArm = Character:WaitForChild("Right Arm")
- local LeftArm = Character:WaitForChild("Left Arm")
- local RightLeg = Character:WaitForChild("Right Leg")
- local LeftLeg = Character:WaitForChild("Left Leg")
- local Neck = Torso:WaitForChild("Neck")
- local RightSH = Torso:WaitForChild("Right Shoulder")
- local LeftSH = Torso:WaitForChild("Left Shoulder")
- local RightHip = Torso:WaitForChild("Right Hip")
- local LeftHip = Torso:WaitForChild("Left Hip")
- local it = Instance.new
- local vt = Vector3.new
- local cf = CFrame.new
- local angles = CFrame.Angles
- local euler = CFrame.fromEulerAnglesXYZ
- local UD2 = UDim2.new
- local bc = BrickColor.new
- local c3 = Color3.new
- function newPart(Parent, Name, Size, BottomSurface,TopSurface,RightSurface,LeftSurface,FrontSurface,BackSurface) --- Would this work, all of the below C:?
- local nPart = it("Part", Parent)
- nPart.Name = Name
- nPart.Size = Size
- nPart.BottomSurface,TopSurface,RightSurface,LeftSurface,FrontSurface,BackSurface = BottomSurface,TopSurface,RightSurface,LeftSurface,FrontSurface,BackSurface
- return nPart
- end
- local staff = newPart(Character,"Yo", vt(0.5,5,0.5), "Smooth","Smooth","Smooth","Smooth","Smooth","Smooth")
- staff.FormFactor = "Custom"
- local RightSnap = it("Snap", Character)
- RightSnap.Part0 = Torso
- RightSnap.Part1 = RightArm
- RightSnap.C0 = cf(1.5,0.3,0) * angles(0,0,0.5)
- local StaffSnap = it("Snap", Character)
- StaffSnap.Part0 = RightArm
- StaffSnap.Part1 = staff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement