Advertisement
jordan83221

string.input Lua

Sep 17th, 2015
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 34.13 KB | None | 0 0
  1. local Player = game:service("Players").LocalPlayer
  2.  
  3. local Char = Player.Character
  4. local mouse = Player:GetMouse()
  5. local Backpack = Player.Backpack
  6. local PlayerGui = Player.PlayerGui
  7. local Camera = workspace.CurrentCamera
  8. local Humanoid = Char:findFirstChild("Humanoid")
  9. local Torso = Char:findFirstChild("Torso")
  10. local Head = Char:findFirstChild("Head")
  11. local ra = Char:findFirstChild("Right Arm")
  12. local la = Char:findFirstChild("Left Arm")
  13. local rl = Char:findFirstChild("Right Leg")
  14. local ll = Char:findFirstChild("Left Leg")
  15. local rs = Torso:findFirstChild("Right Shoulder")
  16. local ls = Torso:findFirstChild("Left Shoulder")
  17. local rh = Torso:findFirstChild("Right Hip")
  18. local lh = Torso:findFirstChild("Left Hip")
  19. local neck = Torso:findFirstChild("Neck")
  20. local rootpart = Char:findFirstChild("HumanoidRootPart")
  21. local rj = rootpart:findFirstChild("RootJoint")
  22. local anim = Char:findFirstChild("Animate")
  23. local RunService = game:GetService("RunService")
  24. local UIA = game:GetService("UserInputService")
  25. local CF = CFrame.new
  26. local CA = CFrame.Angles
  27. local FEA = CFrame.fromEulerAnglesXYZ
  28. local FAA = CFrame.fromAxisAngle
  29. local V3 = Vector3.new
  30. local CN = Color3.new
  31. local Ice = Instance.new
  32. local BC = BrickColor.new
  33. local UD2 = UDim2.new
  34. local C3 = Color3.new
  35. local MR = math.rad
  36. local MP = math.pi
  37. local MD = math.deg
  38. local MH = math.huge
  39. local MS = math.sin
  40. local MC = math.cos
  41. local MT = math.tan
  42. local MAS = math.asin
  43. local MAC = math.acos
  44. local MAT = math.atan
  45. local State = ""
  46. local components = CF().components
  47.  
  48. pcall(function() anim:Destroy() end)
  49. for i,v in pairs(Humanoid:GetChildren()) do
  50. if v:IsA("Animator") then
  51. v:Destroy()
  52. end
  53. end
  54.  
  55. for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  56.     if v:IsA("JointInstance") then v:Destroy() end
  57. end
  58. for i, v in pairs(game.Players.LocalPlayer.Character.Torso:GetChildren()) do
  59.     if v:IsA("JointInstance") and not v.Name == "Neck" then v:Destroy() end
  60. end
  61.  
  62. New = function(Object, Parent, Name, Data)
  63.     local Object = Instance.new(Object)
  64.     for Index, Value in pairs(Data or {}) do
  65.         Object[Index] = Value
  66.     end
  67.     Object.Parent = Parent
  68.     Object.Name = Name
  69.     return Object
  70. end
  71.    
  72. GrandChariot = New("Model",Char,"GrandChariot",{})
  73. 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),})
  74. Mesh = New("CylinderMesh",gc,"Mesh",{})
  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.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),})
  76. Mesh = New("CylinderMesh",gc,"Mesh",{})
  77. 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),})
  78. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
  79. 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),})
  80. 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),})
  81. Mesh = New("CylinderMesh",gc,"Mesh",{})
  82. 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),})
  83. Mesh = New("CylinderMesh",gc,"Mesh",{})
  84. 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),})
  85. 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),})
  86. 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),})
  87. 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),})
  88. Mesh = New("CylinderMesh",gc,"Mesh",{})
  89. 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),})
  90. Mesh = New("CylinderMesh",gc,"Mesh",{})
  91. 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),})
  92. 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),})
  93. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
  94. 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),})
  95. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
  96. 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),})
  97. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
  98. 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),})
  99. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
  100. 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),})
  101. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.5),})
  102. 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),})
  103. 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),})
  104. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.5, 1),})
  105. 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),})
  106. Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
  107. 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),})
  108. Mesh = New("SpecialMesh",gc,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
  109. 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),})
  110. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.5),})
  111. 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),})
  112. 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),})
  113. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
  114. 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),})
  115. 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),})
  116. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
  117. 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),})
  118. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
  119. 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),})
  120. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
  121. 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),})
  122. Mesh = New("CylinderMesh",gc,"Mesh",{})
  123. 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),})
  124. 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),})
  125. Mesh = New("CylinderMesh",gc,"Mesh",{})
  126. 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),})
  127. Mesh = New("BlockMesh",Handle,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
  128. 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),})
  129. 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),})
  130. 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),})
  131. Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
  132. 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),})
  133. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
  134. 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),})
  135. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.5),})
  136. 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),})
  137. Mesh = New("BlockMesh",gc,"Mesh",{Scale = Vector3.new(0.800000012, 1, 0.5),})
  138. 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),})
  139. Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 1, 0.75),})
  140. 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),})
  141. Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.949999988, 1),})
  142. 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),})
  143. 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),})
  144. 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),})
  145. Mesh = New("CylinderMesh",gc,"Mesh",{})
  146. 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),})
  147. Mesh = New("CylinderMesh",gc,"Mesh",{Scale = Vector3.new(1, 0.75, 1),})
  148.  
  149. GrandChariot:MakeJoints()
  150.  
  151.     local parts,last = {}
  152.     local function scan(parent)
  153.         for _,v in pairs(parent:GetChildren()) do
  154.             if (v:IsA("BasePart")) then
  155.                 if (last) then
  156.                     local w = Instance.new("Weld")
  157.                     w.Name = ("%s_Weld"):format(v.Name)
  158.                     w.Part0,w.Part1 = last,v
  159.                     w.C0 = last.CFrame:inverse()
  160.                     w.C1 = v.CFrame:inverse()
  161.                     w.Parent = last
  162.                 end
  163.                 last = v
  164.                 table.insert(parts,v)
  165.             end
  166.             scan(v)
  167.         end
  168.     end
  169.     scan(GrandChariot)
  170.     for _,v in pairs(parts) do
  171.         v.Anchored = false
  172.         v.Locked = true
  173.     end
  174.     for _,v in pairs(parts) do
  175.         v.CanCollide = false
  176.     end
  177.  
  178. local handle = Instance.new("Part", GrandChariot)
  179. handle.FormFactor = "Custom"
  180. handle.BrickColor = BrickColor.new("Really black")
  181. handle.Transparency = 1
  182. handle.TopSurface = 0
  183. handle.BottomSurface = 0
  184. handle.Size = Vector3.new(0,0,0)
  185. handle.CanCollide = false
  186. handle.Anchored = false
  187.  
  188. local weldtohandle = Instance.new("Weld", Char)
  189. weldtohandle.Part0 = handle
  190. weldtohandle.Part1 = Handle
  191.  
  192. local wld = Instance.new("Weld", handle)
  193. wld.Part0 = handle
  194. wld.Part1 = ra
  195. wld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0,MR(-90),0)
  196. wld.C1 = CFrame.new(0,-.5,0) * CFrame.Angles(MR(-90),0,0)
  197.  
  198. for i,v in pairs(Char["GrandChariot"]:GetChildren()) do
  199.     if v:IsA("Part") then
  200.         v.TopSurface = "SmoothNoOutlines"
  201.             v.BottomSurface = "SmoothNoOutlines"
  202.                 v.LeftSurface = "SmoothNoOutlines"
  203.                 v.RightSurface = "SmoothNoOutlines"
  204.             v.FrontSurface = "SmoothNoOutlines"
  205.         v.BackSurface = "SmoothNoOutlines"
  206.     end
  207. end
  208.  
  209. function Tween(a,b,i)
  210.     return a:lerp(b,i)
  211. end
  212.  
  213. local c0 = {
  214. RightArm = CF(1.5,0.5,0),
  215. LeftArm = CF(-1.5,0.5,0),
  216. RightLeg = CF(0.5,-1,0),
  217. LeftLeg = CF(-0.5,-1,0),
  218. RootJoint = CF(0,0,0),
  219. Neck = CF(0,1,0)    
  220. }
  221. local c1 = {
  222. RightArm = CF(0,0.5,0),
  223. LeftArm = CF(0,0.5,0),
  224. RightLeg = CF(0,1,0),
  225. LeftLeg = CF(0,1,0),
  226. RootJoint = CF(0,0,0),
  227. Neck = CF(0,-0.5,0)
  228. }
  229.  
  230. Funcs = {
  231.     CMath = {
  232.         v3ToRadians = function(v3)
  233.             return math.rad(v3.x),math.rad(v3.y),math.rad(v3.z)
  234.         end;
  235.  
  236.         CFrameToV3Radians = function(v1,v2,v3,v4)
  237.             return CFrame.new(Vector3.new(math.rad(v1),math.rad(v2),math.rad(v3)))*CFrame.Angles(Vector3.new(math.rad(v4)))
  238.         end;
  239. },
  240.  
  241.     CharThings = {
  242.    
  243.         FaceC = function(id)
  244.             Char.Head.face.Texture = id
  245.         end;
  246.     },
  247.    
  248.     Other = {
  249.         Create = function(Instanc,prop)
  250.             local p=Ice(Instanc)
  251.                 for i,v in pairs(prop) do
  252.                     p[i]=v
  253.                 end
  254.             return p
  255.         end;
  256.        
  257.         },
  258.    
  259.     Welds = {
  260.         CreateAppropriateWeldsAndAngles = function()
  261.             createdjoints = {}
  262.                 rm=Funcs.Other.Create("Snap",{Parent=Torso,C0=c0.RightArm,C1=c1.RightArm,Part0=Torso,Part1=ra})
  263.                     lm=Funcs.Other.Create("Snap",{Parent=Torso,C0=c0.LeftArm,C1=c1.LeftArm,Part0=Torso,Part1=la})
  264.                         rlegm=Funcs.Other.Create("Snap",{Parent=Torso,C0=c0.RightLeg,C1=c1.RightLeg,Part0=Torso,Part1=rl})
  265.                             llegm=Funcs.Other.Create("Snap",{Parent=Torso,C0=c0.LeftLeg,C1=c1.LeftLeg,Part0=Torso,Part1=ll})
  266.                                 print(Player.Character.Humanoid.Health)
  267.                                     neck.C0 = c0.Neck
  268.                                 neck.C1 = c1.Neck
  269.                             table.insert(createdjoints,rm)
  270.                         table.insert(createdjoints,lm)
  271.                     table.insert(createdjoints,rlegm)
  272.                 table.insert(createdjoints,llegm)
  273.             return createdjoints
  274.         end;
  275.     },
  276.     Lerps = {
  277.         v3lerp = function(x1,y1,alpha)
  278.             local ax,ay,az,bx,by,bz = x1.x,x1.y,x1.z,y1.x,y1.y,y1.z
  279.             return Vector3.new(ax*(1-alpha)+bx*alpha,ay*(1-alpha)+by*alpha,az*(1-alpha)+bz*alpha)
  280.         end;
  281.     }
  282. }
  283.  
  284. Funcs.Welds.CreateAppropriateWeldsAndAngles()
  285.  
  286. local rsc0,rsc1 = rm.C0,rm.C1
  287. local lsc0,lsc1 = lm.C0,lm.C1
  288. local llc0,llc1 = llegm.C0,llegm.C1
  289. local rlc0,rlc1 = rlegm.C0,rlegm.C1
  290. local neckc0,neckc1 = neck.C0,neck.C1
  291. local rootc0 = rj.C0
  292.  
  293. shiftDown = false
  294. mouse.KeyDown:connect(function(Key)
  295. if Key:byte() == 48 then
  296. shiftDown = true
  297. elseif Key:byte() == 50 then
  298. State = ""
  299. elseif Key:byte() == 52 then
  300. State = ""
  301. end
  302. end)
  303. mouse.KeyUp:connect(function(Key)
  304. if Key:byte() == 48 then
  305. shiftDown = false
  306. elseif Key:byte() == 50 then
  307. State = ""
  308. elseif Key:byte() == 52 then
  309. State = ""
  310. end
  311. end)
  312.  
  313. Funcs.CharThings.FaceC("http://www.roblox.com/asset/?id=29291814")
  314.  
  315. angle = 0
  316. anglespeed = 1
  317.  
  318. print(Player.Character.Humanoid.Health)
  319.  
  320. game:service("RunService").Stepped:connect(function()
  321. angle = (angle % 100) + anglespeed/10
  322. rootpart.CanCollide = false
  323. Head.CanCollide = false
  324. if State == "TransformT3" then
  325.     anglespeed = .22
  326.     local alpha = .1
  327.         rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(MR(90),0,MR(90)),alpha)
  328.         lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,MR(-5)),alpha)
  329.         rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(0,0,0),alpha)
  330.         llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(0,MR(10),0),alpha)
  331.         rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(240)),alpha)
  332.         neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MS(angle)*.05,MR(-60),0),alpha)
  333.         wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(90),0),alpha)
  334.         wld.C1 = Tween(wld.C1,CFrame.new(0,-.5,0)*CFrame.Angles(MR(-270),0,0),alpha)
  335.         Humanoid.WalkSpeed = 0
  336.     if V3(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "TransformT3" then
  337.         anglespeed = 1
  338.         local alpha = .1
  339.             rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(MS(angle)*.5,0,0),alpha)
  340.             llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(-MS(angle)*.5,MR(10),0),alpha)      
  341.         Humanoid.WalkSpeed=0
  342.     end
  343. end
  344. if State == "TransformT2" then
  345.     anglespeed = .22
  346.     local alpha = .1
  347.         rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(MR(90),MR(40),MR(90)),alpha)
  348.         lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,MR(-5)),alpha)
  349.         rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(0,0,0),alpha)
  350.         llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(0,MR(10),0),alpha)
  351.         rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(240)),alpha)
  352.         neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MS(angle)*.05,MR(-60),0),alpha)
  353.         wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(90),0),alpha)
  354.         wld.C1 = Tween(wld.C1,CFrame.new(0,-.5,0)*CFrame.Angles(MR(-270),0,0),alpha)
  355.         Humanoid.WalkSpeed = 0
  356.     if V3(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "TransformT2" then
  357.         anglespeed = 1
  358.         local alpha = .1
  359.             rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(MS(angle)*.5,0,0),alpha)
  360.             llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(-MS(angle)*.5,MR(10),0),alpha)      
  361.         Humanoid.WalkSpeed=0
  362.     end
  363. end
  364. if State == "TransformT1" then
  365.     anglespeed = .22
  366.     local alpha = .1
  367.         rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(0,MR(-20),MR(10)),alpha)
  368.         lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,MR(-5)),alpha)
  369.         rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(0,0,0),alpha)
  370.         llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(0,MR(10),0),alpha)
  371.         rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(240)),alpha)
  372.         neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MS(angle)*.05,MR(-60),0),alpha)
  373.         wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(-90),0),alpha)
  374.         Humanoid.WalkSpeed = 0
  375.     if V3(Torso.Velocity.x,0,Torso.Velocity.z).magnitude > 2 and State == "TransformT1" then
  376.         anglespeed = 1
  377.         local alpha = .1
  378.             rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(MS(angle)*.5,0,0),alpha)
  379.             llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(-MS(angle)*.5,MR(10),0),alpha)      
  380.         Humanoid.WalkSpeed=0
  381.     end
  382. end
  383. if V3(Torso.Velocity.x, 0, Torso.Velocity.z).magnitude < 2 and State == "" then --Idle anim
  384. anglespeed = 0.22
  385. local alpha = .1
  386.  
  387. rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(0,MR(-20),MR(10)),alpha)
  388. lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(0,0,MR(-5)),alpha)
  389. rlegm.C0 = Tween(rlegm.C0,CFrame.new(.5,-1,0)*CFrame.Angles(0,0,0),alpha)
  390. llegm.C0 = Tween(llegm.C0,CFrame.new(-.5,-1,-.1)*CFrame.Angles(0,MR(10),0),alpha)
  391. rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(160)),alpha)
  392. neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MS(angle)*.05,MR(10),0),alpha)
  393. wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(-90),0),.1)
  394. wld.C1 = Tween(wld.C1,CFrame.new(0,-.5,0)*CFrame.Angles(MR(-90),0,0),alpha)
  395.  
  396. Humanoid.WalkSpeed = 30
  397. elseif V3(Torso.Velocity.x, 0, Torso.Velocity.z).magnitude > 2 and State == "" then --Walk & run anim
  398. if not shiftDown and State == "" then -- le walk
  399. anglespeed = 1.5
  400. local alpha = .1
  401.  
  402. rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(0,0,MR(10)),alpha)
  403. lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(MS(angle)*.5,0,MR(0)),alpha)
  404. rlegm.C0 = Tween(rlegm.C0,CFrame.new(0.5,-1,0)*CFrame.Angles(MS(angle)*.5,0,0),alpha)
  405. llegm.C0 = Tween(llegm.C0,CFrame.new(-0.5,-1,0)*CFrame.Angles(-MS(angle)*.5,0,0),alpha)
  406. rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-90),0,MR(180)),alpha)
  407. neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(0,0,0),alpha)
  408. wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(-90),0),.1)
  409. wld.C1 = Tween(wld.C1,CFrame.new(0,-.5,0)*CFrame.Angles(MR(-90),0,0),alpha)
  410.  
  411. Humanoid.WalkSpeed = 16
  412. --[[if Humanoid.WalkSpeed > 5 then
  413. Humanoid.WalkSpeed = Humanoid.WalkSpeed - 0.25
  414. else
  415. State = ""
  416. Humanoid.WalkSpeed = 3
  417. end
  418. elseif shiftDown and State == "" then -- The run
  419. anglespeed = 3
  420. local alpha = .1
  421.  
  422. rm.C0 = Tween(rm.C0,CFrame.new(1.5,0.5,0)*CFrame.Angles(MR(-90),0,0),alpha)
  423. lm.C0 = Tween(lm.C0,CFrame.new(-1.5,0.5,0)*CFrame.Angles(MR(-90),0,0),alpha)
  424. rlegm.C0 = Tween(rlegm.C0,CFrame.new(0.5,-1,-.2)*CFrame.Angles(MR(10)+-MS(angle)*1,0,0),alpha)
  425. llegm.C0 = Tween(llegm.C0,CFrame.new(-0.5,-1,-.2)*CFrame.Angles(MR(10)+MS(angle)*1,0,0),alpha)
  426. rj.C0 = Tween(rj.C0,CFrame.new(0,0,0)*CFrame.Angles(MR(-100),-rootpart.RotVelocity.Y/25,MR(180)),alpha)
  427. neck.C0 = Tween(neck.C0,CFrame.new(0,1,0)*CFrame.Angles(MR(10),Head.RotVelocity.Y/25,0),alpha)
  428. wld.C0 = Tween(wld.C0,CFrame.new(0,0,0)*CFrame.Angles(0,MR(-90),0),.1)
  429.  
  430. Humanoid.WalkSpeed = 30]]
  431. end
  432. end
  433. end)
  434.  
  435. function Crater()
  436. local Crater = {}
  437.     local arh
  438.     spawn(function()
  439.         for i = 1,360,5 do
  440.             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))})
  441.             Crater[#Crater+1] = arh
  442.         end
  443.         for i,v in pairs(Crater) do
  444.             if v:IsA("Part") then
  445.                 for i = 0,1,1 do
  446.                     v.Transparency = i
  447.                     wait()
  448.                 end
  449.             end
  450.         end
  451.         wait(1)
  452.         for i,v in pairs(Crater) do
  453.             if v:IsA("Part") then
  454.                 v:Destroy()
  455.             end
  456.         end
  457.     end)
  458. end
  459.  
  460.  
  461. function MAuras()
  462.     local Auras = {}
  463.     local Names = {"asd","urmim"}
  464.     local Aura
  465.     for i = 1,5 do
  466.         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)})
  467.         local neutron = Funcs.Other.Create("SpecialMesh",{Parent=Aura,MeshId="http://www.roblox.com/asset/?id=20329976",Scale=Vector3.new(4,4,4)})
  468.         Auras[#Auras+1] = Aura -- Mmk
  469.     end
  470.     wait()
  471.     for _,v in next, Auras do
  472.         if v.className=="Part" then
  473.             wait(1)
  474.             while wait() do
  475.                 v.Size = Funcs.Lerps.v3lerp(v.Size,Vector3.new(15,15,15),.1)
  476.             end
  477.         end
  478.     end
  479.     wait()
  480.     print("Working.")
  481.     local angle = 0
  482.     local anglespeed = 1
  483.     game:GetService("RunService").Stepped:connect(function()
  484.         angle = (angle % 100) + anglespeed/10
  485.         anglespeed = .66
  486.         for i,v in pairs(Auras) do
  487.             if v:IsA("Part") and v.Name == "asd" then
  488.                 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)
  489.                 v.CFrame = v.CFrame*CFrame.Angles(0,.4,0)
  490.             elseif v:IsA("Part") and v.Name == "urmim" then
  491.                 v.CFrame = v.CFrame*CFrame.Angles(0,-.4,0)
  492.                 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)
  493.             wait(1)
  494.             v:Destroy()
  495.             end
  496.         end
  497.     end)
  498.     print("Working at end.")
  499. end
  500.  
  501. mouse.KeyDown:connect(function(key)
  502. if key == "f" then
  503.     if State == "" then
  504.         State = "TransformT1"
  505.         wait(5)
  506.         State = "TransformT2"
  507.         wait(5)
  508.         State = "TransformT3"
  509.         wait(5)
  510.         Crater()
  511.         wait(1)
  512.         MAuras()
  513.         wait(10)
  514.         State = ""
  515.     end
  516. end
  517. end)
  518.  
  519. print(Player.Character.Humanoid.Health) -- O.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement