Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (script.Parent.className ~= "HopperBin") then
- local h = Instance.new("HopperBin")
- h.Name = "Excellating"
- h.Parent = game.Players["Excellating"].Backpack
- script.Parent = h
- script.Name = "Function"
- end
- Player = script.Parent.Parent.Parent
- Person = Player
- Character = Player.Character
- Torso = Character.Torso
- Head = Character:findFirstChild("Head")
- LA = Character:findFirstChild("Left Arm")
- RA = Character:findFirstChild("Right Arm")
- LL = Character:findFirstChild("Left Leg")
- RL = Character:findFirstChild("Right Leg")
- Characters = Instance.new("Model")
- Characters.Name = "Suit"
- Characters.Parent = Character
- Bin = script.Parent
- Person = game.Players.LocalPlayer
- PersonT = Person.Character.Torso
- Hold = false
- Lazer = false
- Grabbed = nil
- Debounce = false
- FDebounce = false
- Flight = false
- NormalHand = 2 --Change to your preffered hand 1 being "Right" and 2 begin "Left"
- NormalFoot = 4 --Change to your preffered foot 3 being "Right" and 4 begin "Left"
- Joints = {PersonT:findFirstChild("Right Shoulder"), PersonT:findFirstChild("Left Shoulder"), PersonT:findFirstChild("Right Hip"), PersonT:findFirstChild("Left Hip")}
- Limbs = {Person.Character:findFirstChild("Right Arm"), Person.Character:findFirstChild("Left Arm"), Person.Character:findFirstChild("Right Leg"), Person.Character:findFirstChild("Left Leg")}
- UsingTools = 0
- AnimatingTools = false
- Suit = Character.Suit
- --Head!!!!!!!!
- Ha = Character.Head:Clone()
- Ha.BrickColor = BrickColor.new("New Yeller")
- Ha.face:Remove()
- Ha2 = Ha:Clone()
- Ha.Transparency = 0.5
- Ha.Name = "Head"
- Ha.Reflectance = 0.7
- Ha.Mesh.Scale = Ha.Mesh.Scale + Vector3.new(0.05,0.05,0.05)
- Ha2.Name = "HeadMotor"
- Ha2.Transparency = 1
- Ha2.Mesh:Remove()
- Ha2.Parent = Characters
- Haw = Instance.new("Weld")
- Haw.Part0 = Torso
- Haw.Part1 = Ha2
- Haw.Parent = Torso
- Haw.C0 = CFrame.new(0,1.5,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- Ha.Parent = Characters
- Hmotor1 = Instance.new("Motor")
- Hmotor1.Parent = Ha2
- Hmotor1.Part0 = Ha2
- Hmotor1.Part1 = Ha
- Hmotor1.MaxVelocity = 0.05
- Hmotor1.C1 = CFrame.new(0,0,0)
- -- Left Wing!!!
- w11 = Instance.new("Part")
- w11.Name = "LWingMotor"
- w11.formFactor = "Symmetric"
- w11.Size = Vector3.new(1,1,1)
- w11.TopSurface = "Smooth"
- w11.BottomSurface = "Smooth"
- w11.CanCollide = false
- w11.Transparency = 1
- w12 = Instance.new("Part")
- w12.Name = "Wing1"
- w12.BrickColor = BrickColor.new("New Yeller")
- w12.formFactor = "Symmetric"
- w12.Size = Vector3.new(1,5,2)
- w12.TopSurface = "Smooth"
- w12.BottomSurface = "Smooth"
- w12.CanCollide = false
- w12.Transparency = 0.35
- w12.Reflectance = 0.7
- w1m = Instance.new("SpecialMesh")
- w1m.Parent = w12
- w1m.MeshType = "Sphere"
- w1m.Scale = Vector3.new(0.2, 1.25, 1)
- w11.Parent = Characters
- ww1 = Instance.new("Weld")
- ww1.Part0 = Torso
- ww1.Part1 = w11
- ww1.Parent = Torso
- ww1.C0 = CFrame.new(-0.4,0,0.8)*CFrame.fromEulerAnglesXYZ(0.5, 0, 0.5)
- w12 .Parent = Characters
- motor1 = Instance.new("Motor")
- motor1.Parent = w11
- motor1.Part0 = w11
- motor1.Part1 = w12
- motor1.MaxVelocity = 0.35
- motor1.C1 = CFrame.new(0,-2,0.5)
- --Right Wing!!!
- w21 = Instance.new("Part")
- w21.Name = "RWingMotor"
- w21.formFactor = "Symmetric"
- w21.Size = Vector3.new(1,1,1)
- w21.TopSurface = "Smooth"
- w21.BottomSurface = "Smooth"
- w21.CanCollide = false
- w21.Transparency = 1
- w22 = Instance.new("Part")
- w22.Name = "Wing2"
- w22.BrickColor = BrickColor.new("New Yeller")
- w22.formFactor = "Symmetric"
- w22.Size = Vector3.new(1,5,2)
- w22.TopSurface = "Smooth"
- w22.BottomSurface = "Smooth"
- w22.CanCollide = false
- w22.Transparency = 0.35
- w22.Reflectance = 0.7
- w2m = Instance.new("SpecialMesh")
- w2m.Parent = w22
- w2m.MeshType = "Sphere"
- w2m.Scale = Vector3.new(0.2, 1.25, 1)
- w21.Parent = Characters
- ww2 = Instance.new("Weld")
- ww2.Part0 = Torso
- ww2.Part1 = w21
- ww2.Parent = Torso
- ww2.C0 = CFrame.new(0.4,0,0.8)*CFrame.fromEulerAnglesXYZ(0.5, 0, -0.5)
- w22 .Parent = Characters
- motor2 = Instance.new("Motor")
- motor2.Parent = w21
- motor2.Part0 = w21
- motor2.Part1 = w22
- motor2.MaxVelocity = 0.35
- motor2.C1 = CFrame.new(0,-2,0.5)
- -- Extra Right Wings!!!
- Lwing1 = w22:Clone()
- Lwing1.Parent = Characters
- Lw1w = Instance.new("Weld")
- Lw1w.Part0 = w22
- Lw1w.Part1 = Lwing1
- Lw1w.Parent = w22
- Lw1w.C0 = CFrame.new(0,-0.5,1)*CFrame.fromEulerAnglesXYZ(0.5,0,0)
- Lwing2 = Lwing1:Clone()
- Lwing2.Parent = Characters
- Lw2w = Instance.new("Weld")
- Lw2w.Part0 = Lwing1
- Lw2w.Part1 = Lwing2
- Lw2w.Parent = Lwing1
- Lw2w.C0 = CFrame.new(0,-0.3,1)*CFrame.fromEulerAnglesXYZ(0.5,0,0)
- --Extra Left Wings!!!
- Rwing1 = w12:Clone()
- Rwing1.Parent = Characters
- Rw1w = Instance.new("Weld")
- Rw1w.Part0 = w12
- Rw1w.Part1 = Rwing1
- Rw1w.Parent = w12
- Rw1w.C0 = CFrame.new(0,-0.5,1)*CFrame.fromEulerAnglesXYZ(0.5,0,0)
- Rwing2 = Lwing1:Clone()
- Rwing2.Parent = Characters
- Rw2w = Instance.new("Weld")
- Rw2w.Part0 = Rwing1
- Rw2w.Part1 = Rwing2
- Rw2w.Parent = Rwing1
- Rw2w.C0 = CFrame.new(0,-0.3,1)*CFrame.fromEulerAnglesXYZ(0.5,0,0)
- -- Torso!!!!!!!
- --BackShuriken!!!
- Bs = Instance.new("Part")
- Bs.Name = "BackShuriken"
- Bs.formFactor = "Plate"
- Bs.Size = Vector3.new(2,0.4,2)
- Bs.TopSurface = "Smooth"
- Bs.BottomSurface = "Smooth"
- Bs.CanCollide = false
- Instance.new("Sparkles").Parent = Bs
- Bs.Sparkles.Enabled = false
- Smb = Instance.new("SpecialMesh")
- Smb.Parent = Bs
- Smb.MeshType = "FileMesh"
- Smb.TextureId = "http://www.roblox.com/asset/?id=11112112" -- Shuriken Texture Id 1
- Smb.MeshId = "http://www.roblox.com/asset/?id=11112101" -- Shuriken Mesh Id 1
- Smb.Scale = Vector3.new(7,9,7)
- Bs.Parent = Characters
- Bsw = Instance.new("Weld")
- Bsw.Part0 = Torso
- Bsw.Part1 = Bs
- Bsw.Parent = Torso
- Bsw.C0 = CFrame.new(0,0,0.65)*CFrame.fromEulerAnglesXYZ(1.5,0,0)
- -- Torso Armor!!!
- Ta = Instance.new("Part")
- Ta.Name = "TorsoArmor"
- Ta.formFactor = "Symmetric"
- Ta.Size = Vector3.new(2,2,1)
- Ta.TopSurface = "Smooth"
- Ta.BottomSurface = "Smooth"
- Ta.BrickColor = BrickColor.new("Really black")
- Ta.Reflectance = 0.4
- Ta.Transparency = 0.5
- Tam = Instance.new("BlockMesh")
- Tam.Parent = Ta
- Tam.Scale = Vector3.new(0.9,1.005,1.2)
- Ta.Parent = Characters
- Taw = Instance.new("Weld")
- Taw.Part0 = Torso
- Taw.Part1 = Ta
- Taw.Parent = Torso
- Taw.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- -- Torso X Front!!!
- x1 = Instance.new("Part")
- x1.Name = "X1"
- x1.formFactor = "Symmetric"
- x1.Size = Vector3.new(1,3,1)
- x1.TopSurface = "Smooth"
- x1.BottomSurface = "Smooth"
- x1.BrickColor = BrickColor.new("Really red")
- x1.Reflectance = 0.1
- x1.CanCollide = false
- x1m = Instance.new("BlockMesh")
- x1m.Parent = x1
- x1m.Scale = Vector3.new(0.3,0.95,0.3)
- x2 = Instance.new("Part")
- x2.Name = "X2"
- x2.formFactor = "Symmetric"
- x2.Size = Vector3.new(1,3,1)
- x2.TopSurface = "Smooth"
- x2.BottomSurface = "Smooth"
- x2.BrickColor = BrickColor.new("Really red")
- x2.Reflectance = 0.1
- x2.CanCollide = false
- x2m = Instance.new("BlockMesh")
- x2m.Parent = x2
- x2m.Scale = Vector3.new(0.3,0.95,0.3)
- x1.Parent = Characters
- x1w = Instance.new("Weld")
- x1w.Part0 = Torso
- x1w.Part1 = x1
- x1w.Parent = Torso
- x1w.C0 = CFrame.new(0,0,-0.55)*CFrame.fromEulerAnglesXYZ(0,0,0.7)
- x2.Parent = Characters
- x2w = Instance.new("Weld")
- x2w.Part0 = Torso
- x2w.Part1 = x2
- x2w.Parent = Torso
- x2w.C0 = CFrame.new(0,0,-0.55)*CFrame.fromEulerAnglesXYZ(0,0,-0.7)
- x0 = Instance.new("Part")
- x0.Name = "X0"
- x0.formFactor = "Symmetric"
- x0.Size = Vector3.new(1,1,1)
- x0.TopSurface = "Smooth"
- x0.BottomSurface = "Smooth"
- x0.BrickColor = BrickColor.new("Really red")
- x0.Reflectance = 0.1
- x0.CanCollide = false
- x0m = Instance.new("SpecialMesh")
- x0m.Parent = x0
- x0m.MeshType = "Sphere"
- x0m.Scale = Vector3.new(1,1,0.5)
- x0.Parent = Characters
- x0w = Instance.new("Weld")
- x0w.Part0 = Torso
- x0w.Part1 = x0
- x0w.Parent = Torso
- x0w.C0 = CFrame.new(0,0,-0.55)*CFrame.fromEulerAnglesXYZ(0,0,0)
- --Dark Suit Ball!!!
- db = Instance.new("Part")
- db.Name = "DarkBall"
- db.formFactor = "Symmetric"
- db.Shape = "Ball"
- db.Size = Vector3.new(1,1,1)
- db.TopSurface = "Smooth"
- db.BottomSurface = "Smooth"
- db.BrickColor = BrickColor.new("Really black")
- db.Transparency = 0.955
- db.CanCollide = false
- db.CFrame = Torso.CFrame
- dbm = Instance.new("SpecialMesh")
- dbm.Parent = db
- dbm.MeshType = "Sphere"
- dbm.Scale = Vector3.new(20,20,20)
- dsbp = Instance.new("BodyPosition")
- dsbp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- dsbp.Parent = db
- db.Parent = Characters
- -- Left Arm!!!!!!!!!!!!!!!!
- -- Left Arm Armor!!!!
- LAa = Instance.new("Part")
- LAa.Name = "LeftArmArmor"
- LAa.formFactor = "Symmetric"
- LAa.Size = Vector3.new(1,2,1)
- LAa.TopSurface = "Smooth"
- LAa.BottomSurface = "Smooth"
- LAa.BrickColor = BrickColor.new("Really black")
- LAa.Reflectance = 0.1
- LAa.Transparency = 0.1
- LAm = Instance.new("BlockMesh")
- LAm.Parent = LAa
- LAm.Scale = Vector3.new(1.1,1.1,1.1)
- LAa.Parent = Characters
- LAaw = Instance.new("Weld")
- LAaw.Part0 = LA
- LAaw.Part1 = LAa
- LAaw.Parent = LA
- LAaw.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- --Left Arm Wedge1!!!
- LAw = Instance.new("WedgePart")
- LAw.Name = "LeftArmWedge"
- LAw.formFactor = "Plate"
- LAw.Size = Vector3.new(1, 0.4, 1)
- LAw.TopSurface = "Smooth"
- LAw.BottomSurface = "Smooth"
- LAw.BrickColor = BrickColor.new("Really black")
- LAw.Reflectance = 0.1
- LAw.Transparency = 0.1
- LAw.Parent = Characters
- LAww = Instance.new("Weld")
- LAww.Part0 = LAw
- LAww.Part1 = LA
- LAww.Parent = LAw
- LAww.C0 = CFrame.new(0,-0.7,0.5)*CFrame.fromEulerAnglesXYZ(0,-1.5,-1.6)
- --Left Arm Shuriken!!!
- LAs = Instance.new("Part")
- LAs.Name = "LeftArmShuriken"
- LAs.formFactor = "Plate"
- LAs.Size = Vector3.new(1, 0.4, 1)
- LAs.TopSurface = "Smooth"
- LAs.BottomSurface = "Smooth"
- LAs.BrickColor = BrickColor.new("Really black")
- LAs.Reflectance = 0.1
- Lasm = Instance.new("SpecialMesh")
- Lasm.Parent = LAs
- Lasm.MeshType = "FileMesh"
- Lasm.TextureId = "http://www.roblox.com/asset/?id=11376931" -- Shuriken Texture Id 2
- Lasm.MeshId = "http://www.roblox.com/asset/?id=11376946" -- Shuriken Mesh Id 2
- Lasm.Scale = Vector3.new(3,5,3)
- LAs.Parent = Characters
- LAsw = Instance.new("Weld")
- LAsw.Part0 = LAs
- LAsw.Part1 = LA
- LAsw.Parent = LAs
- LAsw.C0 = CFrame.new(0,-0.6,-0.5)*CFrame.fromEulerAnglesXYZ(0,-1.5,-1.6)
- -- Left Arm Claw!!!
- LAc = Instance.new("Part")
- LAc.Name = "LClaw"
- LAc.formFactor = "Symmetric"
- LAc.Size = Vector3.new(1, 1, 1)
- LAc.TopSurface = "Smooth"
- LAc.BottomSurface = "Smooth"
- LAc.BrickColor = BrickColor.new("Really black")
- Lacm = Instance.new("SpecialMesh")
- Lacm.Parent = LAc
- Lacm.MeshType = "FileMesh"
- Lacm.TextureId = "http://www.roblox.com/asset/?id=10681501" -- Claw Texture Id
- Lacm.MeshId = "http://www.roblox.com/asset/?id=10681506" -- Claw Mesh Id
- Lacm.Scale = Vector3.new(1, 2, 0.8)
- LAc.Parent = Characters
- LAcw = Instance.new("Weld")
- LAcw.Part0 = LAc
- LAcw.Part1 = LA
- LAcw.Parent = LAc
- LAcw.C0 = CFrame.new(-0.5,0,-1.45)*CFrame.fromEulerAnglesXYZ(-1.6,-1.5,0)
- -- Right Arm!!!!!!!!!!!!!!!!!!!!!!
- -- Right Arm Armor!!!!
- RAa = Instance.new("Part")
- RAa.Name = "RightArmArmor"
- RAa.formFactor = "Symmetric"
- RAa.Size = Vector3.new(1,2,1)
- RAa.TopSurface = "Smooth"
- RAa.BottomSurface = "Smooth"
- RAa.BrickColor = BrickColor.new("Really black")
- RAa.Reflectance = 0.1
- RAa.Transparency = 0.1
- RAm = Instance.new("BlockMesh")
- RAm.Parent = RAa
- RAm.Scale = Vector3.new(1.1,1.1,1.1)
- RAa.Parent = Characters
- RAaw = Instance.new("Weld")
- RAaw.Part0 = RA
- RAaw.Part1 = RAa
- RAaw.Parent = RA
- RAaw.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- --Right Arm Wedge!!!
- RAw = Instance.new("WedgePart")
- RAw.Name = "RightArmWedge"
- RAw.formFactor = "Plate"
- RAw.Size = Vector3.new(1, 0.4, 1)
- RAw.TopSurface = "Smooth"
- RAw.BottomSurface = "Smooth"
- RAw.BrickColor = BrickColor.new("Really black")
- RAw.Reflectance = 0.1
- RAw.Transparency = 0.1
- RAw.Parent = Characters
- RAww = Instance.new("Weld")
- RAww.Part0 = RAw
- RAww.Part1 = RA
- RAww.Parent = RAw
- RAww.C0 = CFrame.new(0,-0.7,0.5)*CFrame.fromEulerAnglesXYZ(0,1.5,1.5)
- --Right Arm Shuriken!!!
- RAs = Instance.new("Part")
- RAs.Name = "RightArmShuriken"
- RAs.formFactor = "Plate"
- RAs.Size = Vector3.new(1, 0.4, 1)
- RAs.TopSurface = "Smooth"
- RAs.BottomSurface = "Smooth"
- RAs.BrickColor = BrickColor.new("Really black")
- RAs.Reflectance = 0.1
- Rasm = Instance.new("SpecialMesh")
- Rasm.Parent = RAs
- Rasm.MeshType = "FileMesh"
- Rasm.TextureId = "http://www.roblox.com/asset/?id=11376931" -- Shuriken Texture Id 2
- Rasm.MeshId = "http://www.roblox.com/asset/?id=11376946" -- Shuriken Mesh Id 2
- Rasm.Scale = Vector3.new(3,5,3)
- RAs.Parent = Characters
- RAsw = Instance.new("Weld")
- RAsw.Part0 = RAs
- RAsw.Part1 = RA
- RAsw.Parent = RAs
- RAsw.C0 = CFrame.new(0,-0.6,-0.5)*CFrame.fromEulerAnglesXYZ(0,1.5,1.6)
- -- Right Arm Claw!!!
- RAc = Instance.new("Part")
- RAc.Name = "RClaw"
- RAc.formFactor = "Symmetric"
- RAc.Size = Vector3.new(1, 1, 1)
- RAc.TopSurface = "Smooth"
- RAc.BottomSurface = "Smooth"
- RAc.BrickColor = BrickColor.new("Really black")
- Racm = Instance.new("SpecialMesh")
- Racm.Parent = RAc
- Racm.MeshType = "FileMesh"
- Racm.TextureId = "http://www.roblox.com/asset/?id=10681501" -- Claw Texture Id
- Racm.MeshId = "http://www.roblox.com/asset/?id=10681506" -- Claw Mesh Id
- Racm.Scale = Vector3.new(1, 2, 0.8)
- RAc.Parent = Characters
- RAcw = Instance.new("Weld")
- RAcw.Part0 = RAc
- RAcw.Part1 = RA
- RAcw.Parent = RAc
- RAcw.C0 = CFrame.new(-0.5,0,-1.45)*CFrame.fromEulerAnglesXYZ(-1.6,-1.5,0)
- -- Left Leg!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- --Left Leg Armor!!!
- LLa = Instance.new("Part")
- LLa.Name = "RightLegArmor"
- LLa.formFactor = "Symmetric"
- LLa.Size = Vector3.new(1,2,1)
- LLa.TopSurface = "Smooth"
- LLa.BottomSurface = "Smooth"
- LLa.BrickColor = BrickColor.new("Really black")
- LLa.Reflectance = 0.1
- LLa.Transparency = 0.1
- LLm = Instance.new("BlockMesh")
- LLm.Parent = LLa
- LLm.Scale = Vector3.new(1.1,1.1,1.1)
- LLa.Parent = Characters
- LLaw = Instance.new("Weld")
- LLaw.Part0 = LL
- LLaw.Part1 = LLa
- LLaw.Parent = LL
- LLaw.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- --Right Leg!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- --Right Leg Armor!!!
- RLa = Instance.new("Part")
- RLa.Name = "RightLegArmor"
- RLa.formFactor = "Symmetric"
- RLa.Size = Vector3.new(1,2,1)
- RLa.TopSurface = "Smooth"
- RLa.BottomSurface = "Smooth"
- RLa.BrickColor = BrickColor.new("Really black")
- RLa.Reflectance = 0.1
- RLa.Transparency = 0.1
- RLm = Instance.new("BlockMesh")
- RLm.Parent = RLa
- RLm.Scale = Vector3.new(1.1,1.1,1.1)
- RLa.Parent = Characters
- RLaw = Instance.new("Weld")
- RLaw.Part0 = RL
- RLaw.Part1 = RLa
- RLaw.Parent = RL
- RLaw.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- --Watch 8D!!!
- Watch2 = Instance.new("Part")
- Watch2.Name = "Watch2"
- Watch2.formFactor = "Plate"
- Watch2.Size = Vector3.new(1,0.4,1)
- Watch2.TopSurface = "Smooth"
- Watch2.BottomSurface = "Smooth"
- Watch2.BrickColor = BrickColor.new("Really black")
- Watch2.Reflectance = 0.1
- Watch2.Transparency = 0.1
- Watch2.Parent = Characters
- Watch2w = Instance.new("Weld")
- Watch2w.Part0 = RA
- Watch2w.Part1 = Watch2
- Watch2w.Parent = RA
- Watch2w.C0 = CFrame.new(0,-0.25,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- --Sounds in the Suit!!!!
- Cs = Instance.new("Sound")
- Cs.Parent = Ta
- Cs.Name = "Cast"
- Cs.Volume = 1
- Cs.Pitch = 1
- Cs.SoundId = "http://www.roblox.com/asset/?id=2101137"
- Fp = Instance.new("Sound")
- Fp.Parent = Ta
- Fp.Name = "FalconPunch"
- Fp.Volume = 1
- Fp.Pitch = 1
- Fp.SoundId = "http://www.roblox.com/asset/?id=1387390"
- Tz = Instance.new("Sound")
- Tz.Parent = Ta
- Tz.Name = "Tz"
- Tz.Volume = 1
- Tz.Pitch = 1
- Tz.SoundId = "http://www.roblox.com/asset/?id=2974000"
- Hs = Instance.new("Sound")
- Hs.Parent = Ta
- Hs.Name = "Heal"
- Hs.Volume = 1
- Hs.Pitch = 1
- Hs.SoundId = "http://www.roblox.com/asset/?id=2101144"
- Ex = Instance.new("Sound")
- Ex.Parent = Ta
- Ex.Name = "Ex"
- Ex.Volume = 1
- Ex.Pitch = 1
- Ex.SoundId = "http://www.roblox.com/asset?id=2101157"
- ---ENd of Suit!!!!!!!
- ---Function!!!!!!!!!! :D YEAH!
- print("0")
- function SetAngle(Joint, Angle)
- if (Joint == 1) or (Joint == 3) then
- Joints[Joint].DesiredAngle = Angle
- end
- if (Joint == 2) or (Joint == 4) then
- Joints[Joint].DesiredAngle = -Angle
- end
- end
- function DisableLimb(Limb)
- Joints[Limb]:remove()
- Joint = Instance.new("Motor")
- Joint.Parent = Person.Character.Torso
- Joint.Part0 = Person.Character.Torso
- Joint.Part1 = Limbs[Limb]
- Joint.MaxVelocity = 0.1
- if (Limb == 1) then
- C0 = CFrame.new(PersonT.Size.x/2 + Limbs[Limb].Size.x/2, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0)
- Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0)
- Joint.Name = "Right Joint Top"
- elseif (Limb == 2) then
- C0 = CFrame.new(-PersonT.Size.x/2 - Limbs[Limb].Size.x/2, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0)
- Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0)
- Joint.Name = "Left Joint Top"
- elseif (Limb == 3) then
- C0 = CFrame.new(Limbs[Limb].Size.x/2, -(Limbs[Limb].Size.y/4) * 3, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0)
- Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, 3.14/2, 0)
- Joint.Name = "Right Joint Bottom"
- elseif(Limb == 4) then
- C0 = CFrame.new(-Limbs[Limb].Size.x/2, -(Limbs[Limb].Size.y/4) * 3, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0)
- Joint.C1 = CFrame.new(0, Limbs[Limb].Size.y/4, 0) * CFrame.fromEulerAnglesXYZ(0, -3.14/2, 0)
- Joint.Name = "Left Joint Bottom"
- end
- Joint.C0 = C0
- Joints[Limb] = Joint
- end
- print("1")
- function EnableLimb(Limb)
- if (Limb == 1) then
- Joints[Limb].Name = "Right Shoulder"
- elseif (Limb == 2) then
- Joints[Limb].Name = "Left Shoulder"
- elseif (Limb == 3) then
- Joints[Limb].Name = "Right Hip"
- elseif(Limb == 4) then
- Joints[Limb].Name = "Left Hip"
- end
- Anim = Person.Character.Animate:clone()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement