Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:service("Players").LocalPlayer
- local Char = Player.Character
- local mouse = Player:GetMouse()
- local Backpack = Player.Backpack
- local PlayerGui = Player.PlayerGui
- local Camera = workspace.CurrentCamera
- local Humanoid = Char:findFirstChild("Humanoid")
- local Torso = Char:findFirstChild("Torso")
- local Head = Char:findFirstChild("Head")
- local ra = Char:findFirstChild("Right Arm")
- local la = Char:findFirstChild("Left Arm")
- local rl = Char:findFirstChild("Right Leg")
- local ll = Char:findFirstChild("Left Leg")
- local rs = Torso:findFirstChild("Right Shoulder")
- local ls = Torso:findFirstChild("Left Shoulder")
- local rh = Torso:findFirstChild("Right Hip")
- local lh = Torso:findFirstChild("Left Hip")
- local neck = Torso:findFirstChild("Neck")
- local rootpart = Char:findFirstChild("HumanoidRootPart")
- local rj = rootpart:findFirstChild("RootJoint")
- local anim = Char:findFirstChild("Animate")
- local RunService = game:GetService("RunService")
- local UIA = game:GetService("UserInputService")
- local CF = CFrame.new
- local CA = CFrame.Angles
- local FEA = CFrame.fromEulerAnglesXYZ
- local FAA = CFrame.fromAxisAngle
- local V3 = Vector3.new
- local CN = Color3.new
- local Ice = Instance.new
- local BC = BrickColor.new
- local UD2 = UDim2.new
- local C3 = Color3.new
- local MR = math.rad
- local MP = math.pi
- local MD = math.deg
- local MH = math.huge
- local MS = math.sin
- local MC = math.cos
- local MT = math.tan
- local MAS = math.asin
- local MAC = math.acos
- local MAT = math.atan
- local State = ""
- local components = CF().components
- pcall(function() anim:Destroy() end)
- for i,v in pairs(Humanoid:GetChildren()) do
- if v:IsA("Animator") then
- v:Destroy()
- end
- end
- for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v:IsA("JointInstance") then v:Destroy() end
- end
- for i, v in pairs(game.Players.LocalPlayer.Character.Torso:GetChildren()) do
- if v:IsA("JointInstance") and not v.Name == "Neck" then v:Destroy() end
- end
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- GrandChariot = New("Model",Char,"GrandChariot",{})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.699999988, 0.220499977),CFrame = CFrame.new(0.343924999, 2.78297997, 5.29999876, 0.999999762, -4.47034836e-008, 0, 4.47034836e-008, 0.999999762, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.200000003, 0.220499977),CFrame = CFrame.new(0.322295994, 3.20253515, 5.29999876, 0.965925634, -0.258819044, 0, 0.258819044, 0.965925634, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.0715639964, 5.98047733, 5.29999876, 0.258818537, 1.62909046e-007, 0.965925872, -0.965925872, 4.28994902e-008, 0.258818537, 7.26146199e-010, -1, 1.68461241e-007),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.699999988, 0.220499977),CFrame = CFrame.new(0.248444006, 2.78019714, 5.29999876, 0.999999762, -4.47034836e-008, 0, 4.47034836e-008, 0.999999762, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.200000003, 0.220499977),CFrame = CFrame.new(0.017151, 3.60346699, 5.29999876, 0.499999911, -0.866025329, 0, 0.866025329, 0.499999911, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.200000003, 0.220499977),CFrame = CFrame.new(0.155295998, 3.4981699, 5.29999876, 0.707106709, -0.707106769, 0, 0.707106769, 0.707106709, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.220499977),CFrame = CFrame.new(0.0897519961, 3.42868614, 5.29999876, 0.707106709, -0.707106769, 0, 0.707106769, 0.707106709, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.220499977),CFrame = CFrame.new(-0.0281750001, 3.51938701, 5.29999876, 0.499999911, -0.866025329, 0, 0.866025329, 0.499999911, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.220499977),CFrame = CFrame.new(0.176964, 3.3111949, 5.29999876, 0.866025269, -0.49999997, 0, 0.49999997, 0.866025269, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.200000003, 0.220499977),CFrame = CFrame.new(0.258262992, 3.36134601, 5.29999876, 0.866025269, -0.49999997, 0, 0.49999997, 0.866025269, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.770500183, 0.220499977),CFrame = CFrame.new(-0.0897670016, 3.86500001, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.220499977),CFrame = CFrame.new(0.230789006, 3.17513514, 5.29999876, 0.965925634, -0.258819044, 0, 0.258819044, 0.965925634, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.0490880013, 5.80976677, 5.29999876, -5.06640959e-007, 1.62909046e-007, 1, -1, 4.28994937e-008, -5.06640959e-007, -4.28995754e-008, -1, 1.62909018e-007),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.0715639964, 5.63905621, 5.29999876, -0.258818448, 3.93580812e-008, 0.965921998, -0.965923309, -1.02738635e-008, -0.258818001, -1.10444365e-008, -0.999999464, -8.28753315e-008),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.137458995, 6.13955402, 5.29999876, 0.499999136, 1.6290906e-007, 0.866024852, -0.866024852, 4.28994653e-008, 0.499999136, 4.43023218e-008, -1, 1.62532999e-007),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.137458995, 5.47997904, 5.29999876, -0.499999881, -1.29047812e-008, 0.866025031, -0.86602515, 7.45057971e-009, -0.499999821, 0, -0.99999994, -2.87868325e-008),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.280000001, 0.840500176, 0.200000003),CFrame = CFrame.new(-0.279762, 5.89000034, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.5),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.482550025, 0.770500183, 0.220499977),CFrame = CFrame.new(-0.309769005, 3.86500001, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.242278993, 6.2761569, 5.29999876, 0.707100749, 1.62909174e-007, 0.707101405, -0.707101405, 4.28992379e-008, 0.707100749, 8.48585415e-008, -1, 1.45527565e-007),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Storm blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.373108, 3.30999899, 5.29999304, 1, 0, 0, 0, -2.98023224e-008, 0.999999821, 0, -0.999999821, -2.98023224e-008),Anchored = true,Color = Color3.new(0.2, 0.345098, 0.509804),})
- Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.889999926, 0.519999981),CFrame = CFrame.new(-0.339774996, 6.68499994, 5.29999876, 0, 0, -1, 0, 1, 0, 1, 0, 0),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("SpecialMesh",gc,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.549999952, 1.24050021, 0.200000003),CFrame = CFrame.new(-0.32475999, 4.85999966, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.5),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000063, 1.07500005, 0.200000003),CFrame = CFrame.new(-0.501236022, 2.63750005, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Storm blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.25999999, 0.210000008, 0.200000003),CFrame = CFrame.new(-0.407974005, 3.42499995, 5.29999876, 0.99999994, 0, 0, 0, 0.99999994, 0, 0, 0, 1),Anchored = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.2, 0.345098, 0.509804),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.825000107, 0.200000003),CFrame = CFrame.new(-0.534904003, 2.76250005, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Storm blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000063, 0.975000024, 0.200000003),CFrame = CFrame.new(-0.437972993, 2.6875, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.2, 0.345098, 0.509804),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Storm blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.407974005, 3.20000005, 5.29999876, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813, 0, 0, 0, 1),Anchored = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.2, 0.345098, 0.509804),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.770500183, 0.220499977),CFrame = CFrame.new(-0.45976299, 4.625, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.770500183, 0.220499977),CFrame = CFrame.new(-0.559760988, 3.86500001, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.220499977),CFrame = CFrame.new(0.230789006, 2.39501405, 5.29999685, 0.965925634, -0.258819044, 0, -0.258819044, -0.965925515, -5.96046448e-008, 0, -7.4505806e-008, -0.999999702),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.200000003, 0.220499977),CFrame = CFrame.new(0.322295994, 2.36761189, 5.30000114, 0.965925634, -0.258819044, 0, -0.258819044, -0.965925515, -5.96046448e-008, 0, -7.4505806e-008, -0.999999702),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{})
- Handle = New("Part",GrandChariot,"Handle",{BrickColor = BrickColor.new("Storm blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000063, 1.01499999, 0.200000003),CFrame = CFrame.new(-0.577979982, 2.70749998, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.2, 0.345098, 0.509804),})
- Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.230000019, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.49939701, 3.24388194, 5.29999876, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.220000014, 0.329999983, 0.200000003),CFrame = CFrame.new(-0.479759008, 3.40000105, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Storm blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.513107002, 3.42999983, 5.29999304, 1, 0, 0, 0, -2.98023224e-008, 0.999999821, 0, -0.999999821, -2.98023224e-008),Anchored = true,Color = Color3.new(0.2, 0.345098, 0.509804),})
- Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Storm blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.270000011, 0.200000003),CFrame = CFrame.new(-0.548911989, 3.30380702, 5.29999876, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813, 0, 0, 0, 1),Anchored = true,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.2, 0.345098, 0.509804),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.970500171, 0.200000003),CFrame = CFrame.new(-0.499763012, 5.92500019, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.5),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Smoky grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.410000026, 0.790500224, 0.200000003),CFrame = CFrame.new(-0.394760013, 6.01999998, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.356863, 0.364706, 0.411765),})
- Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(0.800000012, 1, 0.5),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.770500183, 0.220499977),CFrame = CFrame.new(-0.559760988, 4.625, 5.29999876, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.242550001, 0.200000003, 0.220499977),CFrame = CFrame.new(0.258262992, 2.20880103, 5.29999876, 0.866025269, -0.49999997, 0, -0.499999791, -0.86602509, -5.96046448e-008, 3.7252903e-008, 0, -0.999999702),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.949999988, 1),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.220499977),CFrame = CFrame.new(0.176964, 2.25895309, 5.29999876, 0.866025269, -0.49999997, 0, -0.499999791, -0.86602509, -5.96046448e-008, 3.7252903e-008, 0, -0.999999702),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.25999999, 0.200000003),CFrame = CFrame.new(-0.555930972, 2.28814101, 5.29999876, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813, 0, 0, 0, 1),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Earth blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.593093991, 2.20000005, 5.29999304, 1, 0, 0, 0, -2.98023224e-008, 0.999999821, 0, -0.999999821, -2.98023224e-008),Anchored = true,Color = Color3.new(0.12549, 0.227451, 0.337255),})
- Mesh = New("CylinderMesh",gc,"Mesh",{})
- gc = New("Part",GrandChariot,"gc",{BrickColor = BrickColor.new("Storm blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-0.393097013, 2.20000005, 5.29999304, 1, 0, 0, 0, -2.98023224e-008, 0.999999821, 0, -0.999999821, -2.98023224e-008),Anchored = true,Color = Color3.new(0.2, 0.345098, 0.509804),})
- Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
- GrandChariot:MakeJoints()
- local parts,last = {}
- local function scan(parent)
- for _,v in pairs(parent:GetChildren()) do
- if (v:IsA("BasePart")) then
- if (last) then
- local w = Instance.new("Weld")
- w.Name = ("%s_Weld"):format(v.Name)
- w.Part0,w.Part1 = last,v
- w.C0 = last.CFrame:inverse()
- w.C1 = v.CFrame:inverse()
- w.Parent = last
- end
- last = v
- table.insert(parts,v)
- end
- scan(v)
- end
- end
- scan(GrandChariot)
- for _,v in pairs(parts) do
- v.Anchored = false
- v.Locked = true
- end
- for _,v in pairs(parts) do
- v.CanCollide = false
- end
- local handle = Instance.new("Part", GrandChariot)
- handle.FormFactor = "Custom"
- handle.BrickColor = BrickColor.new("Really black")
- handle.Transparency = 1
- handle.TopSurface = 0
- handle.BottomSurface = 0
- handle.Size = Vector3.new(0,0,0)
- handle.CanCollide = false
- handle.Anchored = false
- local weldtohandle = Instance.new("Weld", Char)
- weldtohandle.Part0 = handle
- weldtohandle.Part1 = Handle
- local wld = Instance.new("Weld", handle)
- wld.Part0 = handle
- wld.Part1 = ra
- wld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0,MR(-90),0)
- wld.C1 = CFrame.new(0,-.5,0) * CFrame.Angles(MR(-90),0,0)
- for i,v in pairs(Char["GrandChariot"]:GetChildren()) do
- if v:IsA("Part") then
- v.TopSurface = "SmoothNoOutlines"
- v.BottomSurface = "SmoothNoOutlines"
- v.LeftSurface = "SmoothNoOutlines"
- v.RightSurface = "SmoothNoOutlines"
- v.FrontSurface = "SmoothNoOutlines"
- v.BackSurface = "SmoothNoOutlines"
- end
- end
- function Tween(a,b,i)
- return a:lerp(b,i)
- end
- local c0 = {
- RightArm = CF(1.5,0.5,0),
- LeftArm = CF(-1.5,0.5,0),
- RightLeg = CF(0.5,-1,0),
- LeftLeg = CF(-0.5,-1,0),
- RootJoint = CF(0,0,0),
- Neck = CF(0,1,0)
- }
- local c1 = {
- RightArm = CF(0,0.5,0),
- LeftArm = CF(0,0.5,0),
- RightLeg = CF(0,1,0),
- LeftLeg = CF(0,1,0),
- RootJoint = CF(0,0,0),
- Neck = CF(0,-0.5,0)
- }
- Funcs = {
- CMath = {
- v3ToRadians = function(v3)
- return math.rad(v3.x),math.rad(v3.y),math.rad(v3.z)
- end;
- CFrameToV3Radians = function(v1,v2,v3,v4)
- return CFrame.new(Vector3.new(math.rad(v1),math.rad(v2),math.rad(v3)))*CFrame.Angles(Vector3.new(math.rad(v4)))
- end;
- },
- CharThings = {
- FaceC = function(id)
- Char.Head.face.Texture = id
- end;
- },
- Other = {
- Create = function(Instanc,prop)
- local p=Ice(Instanc)
- for i,v in pairs(prop) do
- p[i]=v
- end
- return p
- end;
- },
- Welds = {
- CreateAppropriateWeldsAndAngles = function()
- createdjoints = {}
- rm=Funcs.Other.Create("Snap",{Parent=Torso,C0=c0.RightArm,C1=c1.RightArm,Part0=Torso,Part1=ra})
- lm=Funcs.Other.Create("Snap",{Parent=Torso,C0=c0.LeftArm,C1=c1.LeftArm,Part0=Torso,Part1=la})
- rlegm=Funcs.Other.Create("Snap",{Parent=Torso,C0=c0.RightLeg,C1=c1.RightLeg,Part0=Torso,Part1=rl})
- llegm=Funcs.Other.Create("Snap",{Parent=Torso,C0=c0.LeftLeg,C1=c1.LeftLeg,Part0=Torso,Part1=ll})
- print(Player.Character.Humanoid.Health)
- neck.C0 = c0.Neck
- neck.C1 = c1.Neck
- table.insert(createdjoints,rm)
- table.insert(createdjoints,lm)
- table.insert(createdjoints,rlegm)
- table.insert(createdjoints,llegm)
- return createdjoints
- end;
- },
- Lerps = {
- v3lerp = function(x1,y1,alpha)
- local ax,ay,az,bx,by,bz = x1.x,x1.y,x1.z,y1.x,y1.y,y1.z
- return Vector3.new(ax*(1-alpha)+bx*alpha,ay*(1-alpha)+by*alpha,az*(1-alpha)+bz*alpha)
- end;
- }
- }
- Funcs.Welds.CreateAppropriateWeldsAndAngles()
- local rsc0,rsc1 = rm.C0,rm.C1
- local lsc0,lsc1 = lm.C0,lm.C1
- local llc0,llc1 = llegm.C0,llegm.C1
- local rlc0,rlc1 = rlegm.C0,rlegm.C1
- local neckc0,neckc1 = neck.C0,neck.C1
- local rootc0 = rj.C0
- shiftDown = false
- mouse.KeyDown:connect(function(Key)
- if Key:byte() == 48 then
- shiftDown = true
- elseif Key:byte() == 50 then
- State = ""
- elseif Key:byte() == 52 then
- State = ""
- end
- end)
- mouse.KeyUp:connect(function(Key)
- if Key:byte() == 48 then
- shiftDown = false
- elseif Key:byte() == 50 then
- State = ""
- elseif Key:byte() == 52 then
- State = ""
- end
- end)
- Funcs.CharThings.FaceC("http://www.roblox.com/asset/?id=29291814")
- angle = 0
- anglespeed = 1
- print(Player.Character.Humanoid.Health)
- game:service("RunService").Stepped:connect(function()
- angle = (angle % 100) + anglespeed/10
- rootpart.CanCollide = false
- Head.CanCollide = false
- if State == "TransformT3" then
- anglespeed = .22
- local alpha = .1
- rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(MR(90),0,MR(90)),alpha)
- lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,MR(-5)),alpha)
- rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(0,0,0),alpha)
- llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(0,MR(10),0),alpha)
- rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(240)),alpha)
- neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MS(angle)*.05,MR(-60),0),alpha)
- wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(90),0),alpha)
- wld.C1 = Tween(wld.C1,CFrame.new(0,-.5,0)*CFrame.Angles(MR(-270),0,0),alpha)
- Humanoid.WalkSpeed = 0
- if V3(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "TransformT3" then
- anglespeed = 1
- local alpha = .1
- rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(MS(angle)*.5,0,0),alpha)
- llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(-MS(angle)*.5,MR(10),0),alpha)
- Humanoid.WalkSpeed=0
- end
- end
- if State == "TransformT2" then
- anglespeed = .22
- local alpha = .1
- rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(MR(90),MR(40),MR(90)),alpha)
- lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,MR(-5)),alpha)
- rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(0,0,0),alpha)
- llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(0,MR(10),0),alpha)
- rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(240)),alpha)
- neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MS(angle)*.05,MR(-60),0),alpha)
- wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(90),0),alpha)
- wld.C1 = Tween(wld.C1,CFrame.new(0,-.5,0)*CFrame.Angles(MR(-270),0,0),alpha)
- Humanoid.WalkSpeed = 0
- if V3(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "TransformT2" then
- anglespeed = 1
- local alpha = .1
- rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(MS(angle)*.5,0,0),alpha)
- llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(-MS(angle)*.5,MR(10),0),alpha)
- Humanoid.WalkSpeed=0
- end
- end
- if State == "TransformT1" then
- anglespeed = .22
- local alpha = .1
- rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(0,MR(-20),MR(10)),alpha)
- lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,MR(-5)),alpha)
- rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(0,0,0),alpha)
- llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(0,MR(10),0),alpha)
- rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(240)),alpha)
- neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MS(angle)*.05,MR(-60),0),alpha)
- wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(-90),0),alpha)
- Humanoid.WalkSpeed = 0
- if V3(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "TransformT1" then
- anglespeed = 1
- local alpha = .1
- rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(MS(angle)*.5,0,0),alpha)
- llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(-MS(angle)*.5,MR(10),0),alpha)
- Humanoid.WalkSpeed=0
- end
- end
- if V3(Torso.Velocity.x, 0, Torso.Velocity.z).magnitude < 2 and State == "" then --Idle anim
- anglespeed = 0.22
- local alpha = .1
- rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(0,MR(-20),MR(10)),alpha)
- lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,MR(-5)),alpha)
- rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(0,0,0),alpha)
- llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(0,MR(10),0),alpha)
- rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(160)),alpha)
- neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MS(angle)*.05,MR(10),0),alpha)
- wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(-90),0),.1)
- wld.C1 = Tween(wld.C1,CFrame.new(0,-.5,0)*CFrame.Angles(MR(-90),0,0),alpha)
- Humanoid.WalkSpeed = 30
- elseif V3(Torso.Velocity.x, 0, Torso.Velocity.z).magnitude > 2 and State == "" then --Walk & run anim
- if not shiftDown and State == "" then -- le walk
- anglespeed = 1.5
- local alpha = .1
- rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,MR(10)),alpha)
- lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(MS(angle)*.5,0,MR(0)),alpha)
- rlegm.C0 = Tween(rlegm.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(MS(angle)*.5,0,0),alpha)
- llegm.C0 = Tween(llegm.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(-MS(angle)*.5,0,0),alpha)
- rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(180)),alpha)
- neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(0,0,0),alpha)
- wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(-90),0),.1)
- wld.C1 = Tween(wld.C1,CFrame.new(0,-.5,0)*CFrame.Angles(MR(-90),0,0),alpha)
- Humanoid.WalkSpeed = 16
- --[[if Humanoid.WalkSpeed > 5 then
- Humanoid.WalkSpeed = Humanoid.WalkSpeed - 0.25
- else
- State = ""
- Humanoid.WalkSpeed = 3
- end
- elseif shiftDown and State == "" then -- The run
- anglespeed = 3
- local alpha = .1
- rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(MR(-90),0,0),alpha)
- lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(MR(-90),0,0),alpha)
- rlegm.C0 = Tween(rlegm.C0,CFrame.new(0.5,-1,-.2)*CFrame.Angles(MR(10)+-MS(angle)*1,0,0),alpha)
- llegm.C0 = Tween(llegm.C0,CFrame.new(-0.5,-1,-.2)*CFrame.Angles(MR(10)+MS(angle)*1,0,0),alpha)
- rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-100),-rootpart.RotVelocity.Y/25,MR(180)),alpha)
- neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MR(10),Head.RotVelocity.Y/25,0),alpha)
- wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(-90),0),.1)
- Humanoid.WalkSpeed = 30]]
- end
- end
- end)
- function Crater()
- local Crater = {}
- local arh
- spawn(function()
- for i = 1,360,5 do
- arh=Funcs.Other.Create("Part",{Name = "asd",Transparency=0,TopSurface="Smooth",BottomSurface="Smooth",BrickColor=workspace.Base.BrickColor,Parent=Char,CanCollide=false,Anchored=true,Size=V3(4,16,4),CFrame=Torso.CFrame*CFrame.new(3,-4,.2)*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-math.rad(1000))*CFrame.Angles(math.random(1,4),0,math.random(1,4))})
- Crater[#Crater+1] = arh
- end
- for i,v in pairs(Crater) do
- if v:IsA("Part") then
- for i = 0,1,1 do
- v.Transparency = i
- wait()
- end
- end
- end
- wait(1)
- for i,v in pairs(Crater) do
- if v:IsA("Part") then
- v:Destroy()
- end
- end
- end)
- end
- function MAuras()
- local Auras = {}
- local Names = {"asd","urmim"}
- local Aura
- for i = 1,5 do
- Aura = Funcs.Other.Create("Part",{Name=Names[math.random(1,#Names)],Parent=Char,Transparency=.6,CanCollide=false,Anchored=true,BrickColor=BrickColor.new("Toothpaste"),CFrame=Handle.CFrame*CFrame.Angles(MR(180),0,0),Size=Vector3.new(4,4,4)})
- local neutron = Funcs.Other.Create("SpecialMesh",{Parent=Aura,MeshId="http://www.roblox.com/asset/?id=20329976",Scale=Vector3.new(4,4,4)})
- Auras[#Auras+1] = Aura -- Mmk
- end
- wait()
- for _,v in next, Auras do
- if v.className=="Part" then
- wait(1)
- while wait() do
- v.Size = Funcs.Lerps.v3lerp(v.Size,Vector3.new(15,15,15),.1)
- end
- end
- end
- wait()
- print("Working.")
- local angle = 0
- local anglespeed = 1
- game:GetService("RunService").Stepped:connect(function()
- angle = (angle % 100) + anglespeed/10
- anglespeed = .66
- for i,v in pairs(Auras) do
- if v:IsA("Part") and v.Name == "asd" then
- v.CFrame = Tween(v.CFrame,Handle.CFrame*CFrame.new(math.cos(angle)*2,-1,math.sin(angle)*2)*CFrame.Angles(MR(180),0,0),.1)
- v.CFrame = v.CFrame*CFrame.Angles(0,.4,0)
- elseif v:IsA("Part") and v.Name == "urmim" then
- v.CFrame = v.CFrame*CFrame.Angles(0,-.4,0)
- v.CFrame = Tween(v.CFrame,Handle.CFrame*CFrame.new(-math.cos(angle)*2,-1,-math.sin(angle)*2)*CFrame.Angles(MR(180),0,0),.1)
- wait(1)
- v:Destroy()
- end
- end
- end)
- print("Working at end.")
- end
- mouse.KeyDown:connect(function(key)
- if key == "f" then
- if State == "" then
- State = "TransformT1"
- wait(5)
- State = "TransformT2"
- wait(5)
- State = "TransformT3"
- wait(5)
- Crater()
- wait(1)
- MAuras()
- wait(10)
- State = ""
- end
- end
- end)
- print(Player.Character.Humanoid.Health) -- O.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement