kaualima12

tttvhjbhfdddddddddddvbnbxxzsz

Aug 4th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 98.54 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142. --[[ Created By Draconix ]]--
  143.  
  144. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  145. secondcolor = "Really black"
  146.  
  147. wait(1 / 60)
  148. Effects = { }
  149. local Player = owner
  150. local Character = Player.Character
  151. local Humanoid = Character.Humanoid
  152. local mouse = Player:GetMouse()
  153. local LeftArm = Character["Left Arm"]
  154. local RightArm = Character["Right Arm"]
  155. local LeftLeg = Character["Left Leg"]
  156. local RightLeg = Character["Right Leg"]
  157. local Head = Character.Head
  158. local Torso = Character.Torso
  159. local cam = game.Workspace.CurrentCamera
  160. local RootPart = Character.HumanoidRootPart
  161. local RootJoint = RootPart.RootJoint
  162. local equipped = true
  163. local attack = false
  164. local Anim = 'Idle'
  165. local idle = 0
  166. local attacktype = 1
  167. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  168. local velocity = RootPart.Velocity.y
  169. local sine = 0
  170. local change = 1
  171. local grabbed = false
  172. local cn = CFrame.new
  173. local mr = math.rad
  174. local angles = CFrame.Angles
  175. local ud = UDim2.new
  176. local c3 = Color3.new
  177. local dir = {w = 0, s = 0, a = 0, d = 0}
  178. Climbanim = false
  179. Runkey=false
  180. firemode = false
  181. inair = false
  182. blocking=false
  183. humHsave=0
  184. humDsave=0
  185. extralock=true
  186. lasthit = nil
  187. IKM = false
  188. HMDX = Humanoid.MoveDirection.X/3
  189. HMDZ = Humanoid.MoveDirection.Z/3
  190. local s = Instance.new("Sound",Character)
  191. s.Name = "BumperCarSound"
  192. s.SoundId = "http://www.roblox.com/asset/?id=532147820"
  193. s.Pitch = .7
  194. s.Volume = .5
  195. s.Looped = true
  196. s.archivable = false
  197. s.Parent = Character
  198. s:play()
  199.  
  200. sflon = true
  201. bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart)
  202. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  203. if attack == true then
  204. bg2.D = 0
  205. bg2.P = 0
  206. bg2.maxTorque = Vector3.new(0,0,0)
  207. end
  208. if attack == false then
  209. bg2.D = 100
  210. bg2.P = 9999
  211. bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge
  212. bg2.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position ,Vector3.new(game.Workspace.CurrentCamera.CoordinateFrame.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,game.Workspace.CurrentCamera.CoordinateFrame.p.z)) * CFrame.Angles(0,math.rad(180),0)
  213.  
  214. end
  215. end)--]]
  216.  
  217.  
  218. New = function(Object, Parent, Name, Data)
  219. local Object = Instance.new(Object)
  220. for Index, Value in pairs(Data or {}) do
  221. Object[Index] = Value
  222. end
  223. Object.Parent = Parent
  224. Object.Name = Name
  225. return Object
  226. end
  227.  
  228. BumperCar = New("Model",Workspace,"BumperCar",{})
  229. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.299999952),CFrame = CFrame.new(-5.95999956, 9.90000057, -36.2131157, 1, 7.64274186e-15, 0, 7.64274186e-15, -1, -8.74227766e-08, 0, 8.74227766e-08, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  230. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.5, 0.100000001, 0.100000001),CFrame = CFrame.new(-4.02177143, 11.8595181, -40.6349945, -0.466506243, -0.129409313, 0.87500006, -0.741025686, -0.482962549, -0.466506183, 0.482962519, -0.866025567, 0.129409432),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  231. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999994, 3.9000001, 3.9000001),CFrame = CFrame.new(-5.16500664, 8.05000019, -38.9131165, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  232. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.79999995, 0.800000072, 0.800000072),CFrame = CFrame.new(-5.81500626, 8.5, -34.7631149, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  233. SwHandle = New("Part",BumperCar,"Handle",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(4, 0.899999976, 4),CFrame = CFrame.new(-5.16500664, 7.55000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  234. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Olive"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999845, 0.699999988, 0.699999988),CFrame = CFrame.new(-5.81500578, 8.5, -33.4031143, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.756863, 0.745098, 0.258824),})
  235. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999976, 4, 4),CFrame = CFrame.new(-5.16500664, 7.55000019, -34.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  236. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.599999964, 1.49999952),CFrame = CFrame.new(-6.46000004, 8.85000038, -39.5131149, 4.37113883e-08, -1, -1.19248771e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, 1, 4.37113883e-08, 8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  237. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 1, 0.299999952),CFrame = CFrame.new(-4.35999966, 9.60000038, -36.2131157, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  238. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999958, 1, 0.999999523),CFrame = CFrame.new(-3.50999951, 8.60000038, -36.8631134, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  239. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.89999986, 1.99999988, 1.99999988),CFrame = CFrame.new(-5.15999985, 8.5, -34.9000015, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  240. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.49999976, 0.0999999866, 0.109999947),CFrame = CFrame.new(-5.15999985, 9.95000076, -36.4081154, -1, -1.52854837e-14, 8.74227766e-08, 7.64274186e-15, -1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  241. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999958, 1, 0.999999523),CFrame = CFrame.new(-6.80999947, 8.60000038, -36.8631134, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  242. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000048, 1.60000002, 0.999999523),CFrame = CFrame.new(-6.80999947, 8.90000057, -38.5631142, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  243. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.49999988, 0.200000003, 0.200000003),CFrame = CFrame.new(-4.52999973, 10.6799994, -40.1199951, -0.258819044, 3.08638382e-09, 0.965925813, -0.933012724, -0.258818835, -0.25, 0.249999776, -0.965925872, 0.0669872463),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  244. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999976, 4, 4),CFrame = CFrame.new(-5.16500664, 7.55000019, -38.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  245. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.69999993, 0.100000024, 0.0999999493),CFrame = CFrame.new(-5.15999985, 10.0500002, -36.4131165, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  246. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000048, 1.60000002, 0.999999523),CFrame = CFrame.new(-3.50999975, 8.90000057, -38.5631142, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  247. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000048, 1, 3.89999962),CFrame = CFrame.new(-3.50999975, 8.60000038, -37.1131134, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  248. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.399999857, 0.300000012, 0.300000012),CFrame = CFrame.new(-4.67235041, 10.1668425, -39.9824944, -0.258819044, 3.08638382e-09, 0.965925813, -0.933012724, -0.258818835, -0.25, 0.249999776, -0.965925872, 0.0669872463),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  249. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.5, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-3.11038089, 12.7026892, -41.3446198, -0.774519205, -0.353553116, 0.524519026, -0.408493787, -0.353553116, -0.841506362, 0.482962519, -0.866025567, 0.129409432),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  250. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.999999881, 2.0999999, 2.0999999),CFrame = CFrame.new(-5.15999985, 8.69999981, -40.1499977, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  251. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.299999565),CFrame = CFrame.new(-5.85999918, 9.45000076, -39.5131149, 4.37113883e-08, 1, 1.19248771e-08, 7.10542736e-15, -1.19248762e-08, 0.99999994, 1, -4.37113883e-08, 6.06292123e-15),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  252. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999857, 2.20000005, 2.20000005),CFrame = CFrame.new(-5.15999985, 8.69999981, -40.0999985, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  253. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.199999571),CFrame = CFrame.new(-4.46000051, 9.70000076, -39.5131149, -1.31134158e-07, 1, 1.19248691e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, -1, -1.31134158e-07, -8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  254. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.300000012, 2.9000001),CFrame = CFrame.new(-5.15999985, 9.55000019, -34.9131165, 1, 0, 1.74845553e-07, 0, 1, 0, -1.74845553e-07, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  255. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999999046, 1, 0.299999952),CFrame = CFrame.new(-5.96000004, 9.60000038, -36.2131157, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  256. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 1.49999952),CFrame = CFrame.new(-3.8599999, 8.85000038, -39.5131149, -1.31134158e-07, 1, 1.19248691e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, -1, -1.31134158e-07, -8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  257. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.199999571),CFrame = CFrame.new(-5.85999918, 9.70000076, -39.5131149, 4.37113883e-08, -1, -1.19248771e-08, 8.74227695e-08, 1.19248798e-08, -0.99999994, 1, 4.37113883e-08, 8.74227766e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  258. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.5999999, 1.20000005, 1.20000005),CFrame = CFrame.new(-4.51500654, 8.19999981, -34.8631134, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  259. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.34999967, 0.0999999866, 2.69999981),CFrame = CFrame.new(-5.1150074, 8.15000057, -37.7131157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  260. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.5999999, 1.20000005, 1.20000005),CFrame = CFrame.new(-5.81500626, 8.19999981, -34.8631134, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  261. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 0.300000012, 0.200000092),CFrame = CFrame.new(-5.15999985, 9.55000019, -33.3631172, -1, 0, -2.62268316e-07, 0, 1, 0, 2.62268316e-07, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  262. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.299999952),CFrame = CFrame.new(-4.35999966, 9.90000057, -36.2131157, 1, 7.64274186e-15, 0, 7.64274186e-15, -1, -8.74227766e-08, 0, 8.74227766e-08, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  263. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Medium blue"),Material = Enum.Material.SmoothPlastic,Transparency = 0.5,Transparency = 0.5,Size = Vector3.new(1.49999988, 0.980000019, 0.279999942),CFrame = CFrame.new(-5.16000032, 9.59000015, -36.2031174, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.431373, 0.6, 0.792157),})
  264. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.8499999, 0.099999994, 4),CFrame = CFrame.new(-5.16500711, 8.05000019, -36.9631157, 1, 0, 0, 0, 1, 0, 0, 0, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  265. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.799999952, 0.600000024, 0.299999565),CFrame = CFrame.new(-4.45999908, 9.45000076, -39.5131149, -1.31134158e-07, -1, -1.19248771e-08, 7.10542736e-15, -1.19248762e-08, 0.99999994, -1, 1.31134158e-07, -5.0204151e-15),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  266. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.69999993, 0.100000024, 0.299999952),CFrame = CFrame.new(-5.15999985, 10.0500002, -36.2131157, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  267. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.400000006, 1.4000001, 0.200000092),CFrame = CFrame.new(-5.15999985, 8.69999981, -33.3631172, 1, 8.74227766e-08, 2.62268316e-07, 8.74227766e-08, -1, 2.29282247e-14, 2.62268316e-07, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  268. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 2),CFrame = CFrame.new(-4.15999985, 8.60000038, -35.3631172, -1.19248806e-08, 1, -1.04250613e-15, 1, 1.19248806e-08, 8.74227766e-08, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  269. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999994, 3.9000001, 3.9000001),CFrame = CFrame.new(-5.16500664, 8.05000019, -35.0131149, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  270. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999958, 1, 3.89999962),CFrame = CFrame.new(-6.80999994, 8.60000038, -37.1131134, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  271. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.0999999493),CFrame = CFrame.new(-4.35999966, 9.90000057, -36.4131165, -1, -1.52854837e-14, 8.74227766e-08, 7.64274186e-15, -1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  272. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.5, 1, 1.19999993),CFrame = CFrame.new(-5.15999985, 8.60000038, -35.7631149, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  273. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1, 1, 2),CFrame = CFrame.new(-6.15999985, 8.60000038, -35.3631172, 9.9347659e-08, -1, 8.68524799e-15, -1, -9.9347659e-08, -8.74227766e-08, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  274. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3, 1, 1.99000001),CFrame = CFrame.new(-5.15999985, 8.60000038, -35.3581161, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  275. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.5, 0.600000024, 1.59999955),CFrame = CFrame.new(-5.15999985, 8.90000057, -39.3631134, -1, 0, -8.74227766e-08, 8.74227766e-08, 1.19248806e-08, -1, 1.04250613e-15, -1, -1.19248806e-08),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  276. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.799999833, 2.29999995, 2.29999995),CFrame = CFrame.new(-5.15999985, 8.69999981, -40.0499992, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  277. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Olive"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.099999845, 0.699999988, 0.699999988),CFrame = CFrame.new(-4.51500607, 8.5, -33.4031143, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.756863, 0.745098, 0.258824),})
  278. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.899999857, 2.39999986, 2.39999986),CFrame = CFrame.new(-5.15999985, 8.69999981, -39.5, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  279. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.99999988, 1.60000002, 1.60000002),CFrame = CFrame.new(-5.15999985, 9.05000019, -39.9999962, -2.08616257e-07, 0, 1, -1, 1.19248806e-08, -2.08616257e-07, -1.19248806e-08, -1, -2.48772391e-15),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  280. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.699999809, 2.0999999, 2.0999999),CFrame = CFrame.new(-5.15999985, 8.55000019, -35.5999985, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  281. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.71999979, 2.19999981, 2.19999981),CFrame = CFrame.new(-5.15999985, 8.60000038, -36.0099983, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  282. Part = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2.79999995, 0.800000072, 0.800000072),CFrame = CFrame.new(-4.51500654, 8.5, -34.7631149, -2.08616257e-07, 0, 1, 0, 1, 0, -1, 0, -2.08616257e-07),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.105882, 0.164706, 0.207843),})
  283. Wedge = New("WedgePart",BumperCar,"Wedge",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.099999845, 0.199999988, 0.0999999493),CFrame = CFrame.new(-5.95999956, 9.90000057, -36.4131165, -1, -1.52854837e-14, 8.74227766e-08, 7.64274186e-15, -1, -8.74227766e-08, 8.74227766e-08, -8.74227766e-08, 1),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.458824, 0, 0),})
  284.  
  285.  
  286.  
  287.  
  288. FrontPart = New("Part",BumperCar,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(6, 6, 6),CFrame = CFrame.new(-5.16500664, 7.55000019, -34.9631157, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 0.999999821),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),Transparency = 1,})
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305. local all,last = {}
  306. function scan(p)
  307. for _,v in pairs(p:GetChildren()) do
  308. if (v:IsA("BasePart")) then
  309. if (last) then
  310. local w = Instance.new("Weld")
  311. w.Part0,w.Part1 = last,v
  312. w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse()
  313. w.Parent = last
  314. end
  315. table.insert(all,v)
  316. last = v
  317. end
  318. scan(v)
  319. end
  320. end
  321. scan(BumperCar)
  322.  
  323.  
  324. for _,v in pairs(all) do v.Anchored = false v.CanCollide = false end
  325. BumperCar.Parent = Character
  326.  
  327.  
  328. local Services = {
  329.  
  330.  
  331. SoundService = game:GetService("SoundService");
  332. Players = game:GetService("Players");
  333. Debris = game:GetService("Debris");
  334. Workspace = game:GetService("Workspace");
  335. Lighting = game:GetService("Lighting");
  336. HttpService = game:GetService("HttpService");
  337. InsertService = game:GetService("InsertService");
  338.  
  339. }
  340.  
  341. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  342. Humanoid.Animator:Destroy()
  343. Character.Animate:Destroy()
  344.  
  345. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  346. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  347. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  348.  
  349.  
  350.  
  351. SWW = Instance.new("Weld")
  352. SWW.Name = "SWW"
  353. SWW.Part0 = Torso
  354. SWW.C0 = cn(0, -2.6, -1)*angles(math.rad(-0),math.rad(-180),math.rad(0))
  355. SWW.C1 = cn(0, 0, 0)
  356. SWW.Part1 = SwHandle
  357. SWW.Parent = Torso
  358.  
  359. RSH, LSH = nil, nil
  360.  
  361. RW = Instance.new("Weld")
  362. LW = Instance.new("Weld")
  363.  
  364. RH = Torso["Right Hip"]
  365. LH = Torso["Left Hip"]
  366.  
  367. RSH = Torso["Right Shoulder"]
  368. LSH = Torso["Left Shoulder"]
  369.  
  370. RSH.Parent = nil
  371. LSH.Parent = nil
  372.  
  373. RW.Name = "RW"
  374. RW.Part0 = Torso
  375. RW.C0 = cn(1.5, 0.5, 0)
  376. RW.C1 = cn(0, 0.5, 0)
  377. RW.Part1 = RightArm
  378. RW.Parent = Torso
  379.  
  380. LW.Name = "LW"
  381. LW.Part0 = Torso
  382. LW.C0 = cn(-1.5, 0.5, 0)
  383. LW.C1 = cn(0, 0.5, 0)
  384. LW.Part1 = LeftArm
  385. LW.Parent = Torso
  386.  
  387. function clerp(a, b, t)
  388. local qa = {
  389. QuaternionFromCFrame(a)
  390. }
  391. local qb = {
  392. QuaternionFromCFrame(b)
  393. }
  394. local ax, ay, az = a.x, a.y, a.z
  395. local bx, by, bz = b.x, b.y, b.z
  396. local _t = 1 - t
  397. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  398. end
  399.  
  400. function QuaternionFromCFrame(cf)
  401. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  402. local trace = m00 + m11 + m22
  403. if trace > 0 then
  404. local s = math.sqrt(1 + trace)
  405. local recip = 0.5 / s
  406. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  407. else
  408. local i = 0
  409. if m11 > m00 then
  410. i = 1
  411. end
  412. if m22 > (i == 0 and m00 or m11) then
  413. i = 2
  414. end
  415. if i == 0 then
  416. local s = math.sqrt(m00 - m11 - m22 + 1)
  417. local recip = 0.5 / s
  418. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  419. elseif i == 1 then
  420. local s = math.sqrt(m11 - m22 - m00 + 1)
  421. local recip = 0.5 / s
  422. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  423. elseif i == 2 then
  424. local s = math.sqrt(m22 - m00 - m11 + 1)
  425. local recip = 0.5 / s
  426. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  427. end
  428. end
  429. end
  430.  
  431. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  432. local xs, ys, zs = x + x, y + y, z + z
  433. local wx, wy, wz = w * xs, w * ys, w * zs
  434. local xx = x * xs
  435. local xy = x * ys
  436. local xz = x * zs
  437. local yy = y * ys
  438. local yz = y * zs
  439. local zz = z * zs
  440. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  441. end
  442.  
  443. function QuaternionSlerp(a, b, t)
  444. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  445. local startInterp, finishInterp;
  446. if cosTheta >= 0.0001 then
  447. if (1 - cosTheta) > 0.0001 then
  448. local theta = math.acos(cosTheta)
  449. local invSinTheta = 1 / math.sin(theta)
  450. startInterp = math.sin((1 - t) * theta) * invSinTheta
  451. finishInterp = math.sin(t * theta) * invSinTheta
  452. else
  453. startInterp = 1 - t
  454. finishInterp = t
  455. end
  456. else
  457. if (1 + cosTheta) > 0.0001 then
  458. local theta = math.acos(-cosTheta)
  459. local invSinTheta = 1 / math.sin(theta)
  460. startInterp = math.sin((t - 1) * theta) * invSinTheta
  461. finishInterp = math.sin(t * theta) * invSinTheta
  462. else
  463. startInterp = t - 1
  464. finishInterp = t
  465. end
  466. end
  467. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  468. end
  469.  
  470. function swait(num)
  471. if num == 0 or num == nil then
  472. game:service'RunService'.RenderStepped:wait(0)
  473. else
  474. for i = 0, num do
  475. game:service'RunService'.RenderStepped:wait(0)
  476. end
  477. end
  478. end
  479.  
  480. local RbxUtility = LoadLibrary("RbxUtility")
  481. local Create = RbxUtility.Create
  482.  
  483. function RemoveOutlines(part)
  484. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  485. end
  486.  
  487. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  488. local Part = Create("Part"){
  489. formFactor = FormFactor,
  490. Parent = Parent,
  491. Reflectance = Reflectance,
  492. Transparency = Transparency,
  493. CanCollide = false,
  494. Locked = true,
  495. BrickColor = BrickColor.new(tostring(BColor)),
  496. Name = Name,
  497. Size = Size,
  498. Material = Material,
  499. }
  500. RemoveOutlines(Part)
  501. return Part
  502. end
  503.  
  504. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  505. local Msh = Create(Mesh){
  506. Parent = Part,
  507. Offset = OffSet,
  508. Scale = Scale,
  509. }
  510. if Mesh == "SpecialMesh" then
  511. Msh.MeshType = MeshType
  512. Msh.MeshId = MeshId
  513. end
  514. return Msh
  515. end
  516.  
  517. function CreateWeld(Parent, Part0, Part1, C0, C1)
  518. local Weld = Create("Weld"){
  519. Parent = Parent,
  520. Part0 = Part0,
  521. Part1 = Part1,
  522. C0 = C0,
  523. C1 = C1,
  524. }
  525. return Weld
  526. end
  527.  
  528. function rayCast(Position, Direction, Range, Ignore)
  529. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  530. end
  531.  
  532. function CreateSound(id, par, vol, pit)
  533. coroutine.resume(coroutine.create(function()
  534. local sou = Instance.new("Sound", par or workspace)
  535. sou.Volume = vol
  536. sou.Pitch = pit or 1
  537. sou.SoundId = id
  538. wait()
  539. sou:play()
  540. game:GetService("Debris"):AddItem(sou, 6)
  541. end))
  542. end
  543. function CreateSong(id, par, vol, pit)
  544. coroutine.resume(coroutine.create(function()
  545. sou2 = Instance.new("Sound", par or workspace)
  546. sou2.Volume = vol
  547. sou2.Pitch = 1
  548. sou2.SoundId = id
  549. wait()
  550. sou2:play()
  551. sou2.Looped = true
  552. end))
  553. end
  554.  
  555. local function getclosest(obj, distance)
  556. local last, lastx = distance + 1
  557. for i, v in pairs(workspace:GetChildren()) do
  558. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  559. local t = v.Torso
  560. local dist = (t.Position - obj.Position).magnitude
  561. if dist <= distance then
  562. if dist < last then
  563. last = dist
  564. lastx = v
  565. end
  566. end
  567. end
  568. end
  569. return lastx
  570. end
  571.  
  572. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  573. for i, v in pairs(hit:GetChildren()) do
  574. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  575. local find = v:FindFirstChild("Hitz")
  576. if not find then
  577. if v.Parent:findFirstChild("Head") then
  578. local BillG = Create("BillboardGui"){
  579. Parent = v.Parent.Head,
  580. Size = UDim2.new(1, 0, 1, 0),
  581. Adornee = v.Parent.Head,
  582. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  583. }
  584. local TL = Create("TextLabel"){
  585. Parent = BillG,
  586. Size = UDim2.new(3, 3, 3, 3),
  587. BackgroundTransparency = 1,
  588. Text = tostring(damage).."-",
  589. TextColor3 = Color1.Color,
  590. TextStrokeColor3 = Color2.Color,
  591. TextStrokeTransparency = 0,
  592. TextXAlignment = Enum.TextXAlignment.Center,
  593. TextYAlignment = Enum.TextYAlignment.Center,
  594. FontSize = Enum.FontSize.Size18,
  595. Font = "ArialBold",
  596. }
  597. coroutine.resume(coroutine.create(function()
  598. wait(1)
  599. for i = 0, 1, .1 do
  600. wait(.1)
  601. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  602. end
  603. BillG:Destroy()
  604. end))
  605. end
  606. v.Health = v.Health - damage
  607. local bool = Create("BoolValue"){
  608. Parent = v,
  609. Name = 'Hitz',
  610. }
  611. if HSound ~= nil and HPitch ~= nil then
  612. CreateSound(HSound, hit, 1, HPitch)
  613. end
  614. game:GetService("Debris"):AddItem(bool, cooldown)
  615. end
  616. end
  617. end
  618. end
  619.  
  620.  
  621. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  622. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  623. prt.Anchored = true
  624. prt.CFrame = cframe
  625. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  626. game:GetService("Debris"):AddItem(prt, 10)
  627. if Type == 1 or Type == nil then
  628. table.insert(Effects, {
  629. prt,
  630. "Block1",
  631. delay,
  632. x3,
  633. y3,
  634. z3,
  635. msh
  636. })
  637. elseif Type == 2 then
  638. table.insert(Effects, {
  639. prt,
  640. "Block2",
  641. delay,
  642. x3,
  643. y3,
  644. z3,
  645. msh
  646. })
  647. elseif Type == 3 then
  648. table.insert(Effects, {
  649. prt,
  650. "Block3",
  651. delay,
  652. x3,
  653. y3,
  654. z3,
  655. msh
  656. })
  657. end
  658. end
  659.  
  660. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  661. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  662. prt.Anchored = true
  663. prt.CFrame = cframe
  664. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  665. game:GetService("Debris"):AddItem(prt, 10)
  666. table.insert(Effects, {
  667. prt,
  668. "Cylinder",
  669. delay,
  670. x3,
  671. y3,
  672. z3,
  673. msh
  674. })
  675. end
  676.  
  677. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  678. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  679. prt.Anchored = true
  680. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  681. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  682. game:GetService("Debris"):AddItem(prt, 10)
  683. table.insert(Effects, {
  684. prt,
  685. "Cylinder",
  686. delay,
  687. x3,
  688. y3,
  689. z3,
  690. msh
  691. })
  692. end
  693.  
  694. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  695. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  696. prt.Anchored = true
  697. prt.CFrame = cframe
  698. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  699. game:GetService("Debris"):AddItem(prt, 10)
  700. table.insert(Effects, {
  701. prt,
  702. "Cylinder",
  703. delay,
  704. x3,
  705. y3,
  706. z3,
  707. msh
  708. })
  709. end
  710.  
  711. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  712. local prt = CreatePart(3, workspace,"Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  713. prt.Anchored = true
  714. prt.CFrame = cframe
  715. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  716. game:GetService("Debris"):AddItem(prt, 10)
  717. table.insert(Effects, {
  718. prt,
  719. "Cylinder",
  720. delay,
  721. x3,
  722. y3,
  723. z3,
  724. msh
  725. })
  726. end
  727.  
  728. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  729. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  730. prt.Anchored = true
  731. prt.CFrame = cframe
  732. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  733. game:GetService("Debris"):AddItem(prt, 10)
  734. table.insert(Effects, {
  735. prt,
  736. "Cylinder",
  737. delay,
  738. x3,
  739. y3,
  740. z3,
  741. msh
  742. })
  743. end
  744.  
  745. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  746. local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  747. prt.Anchored = true
  748. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  749. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  750. local num = math.random(10, 50) / 1000
  751. game:GetService("Debris"):AddItem(prt, 10)
  752. table.insert(Effects, {
  753. prt,
  754. "Shatter",
  755. num,
  756. prt.CFrame,
  757. math.random() - math.random(),
  758. 0,
  759. math.random(50, 100) / 100
  760. })
  761. end
  762.  
  763.  
  764.  
  765.  
  766. for i = 0, 1, 0.05 do
  767. swait()
  768. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  769. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  770. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  771. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  772. if Torsovelocity > 2 then
  773. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  774. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  775. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  776. elseif Torsovelocity < 1 then
  777. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  778. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  779. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  780. end
  781. end
  782. attack = false
  783.  
  784.  
  785.  
  786. game:GetService'RunService'.Stepped:connect(function()
  787. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  788. velocity = RootPart.Velocity.y
  789. sine = sine + change
  790. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  791. if equipped == true or equipped == false then
  792. if RootPart.Velocity.y > -1 and hit == nil then
  793. Anim = "Jump"
  794. inair = true
  795. if attack == false then
  796. s.Pitch = 1
  797. s.Volume = 1
  798. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
  799. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  800. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-15)), 0.1)
  801. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(15)), 0.1)
  802. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  803. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  804. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  805. end
  806.  
  807. elseif RootPart.Velocity.y < -1 and hit == nil then
  808. Anim = "Fall"
  809. inair = true
  810. if attack == false then
  811. s.Pitch = .7
  812. s.Volume = .5
  813. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  814. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  815. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(45)), 0.05)
  816. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(180 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-45)), 0.05)
  817. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  818. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  819. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  820. end
  821. elseif Torsovelocity < 1 and hit ~= nil then
  822. Anim = "Idle"
  823.  
  824. inair = false
  825. if attack == false then
  826. s.Pitch = .7
  827. s.Volume = .5
  828. change = 0.8
  829. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  830. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  831. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  832. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  833. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  834. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  835. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  836. end --]]
  837.  
  838. elseif Torsovelocity > 1 and hit ~= nil then
  839. Anim = "Walk"
  840. inair = false
  841.  
  842. if attack == false and Runkey == true then
  843. s.Pitch = 1
  844. s.Volume = .9
  845.  
  846. change = 1
  847. Humanoid.WalkSpeed = 30
  848. Humanoid.JumpPower = 55
  849. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(-45), math.rad(0) + RootPart.RotVelocity.Y/40, math.rad(2 * math.cos(sine / 1))), .4)
  850. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(35 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .2)
  851. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(25 - 1 * math.cos(sine / 4)), math.rad(0), math.rad(-45)), 0.2)
  852. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(25 + 1 * math.cos(sine / 4)), math.rad(0), math.rad(45)), 0.2)
  853. RH.C0 = clerp(RH.C0, cn(.6, -1, 0) * RHCF * angles(math.rad(6), math.rad(0), math.rad(45 + .05 * math.cos(sine / 25))), .4)
  854. LH.C0 = clerp(LH.C0, cn(-.6, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-45 + .05 * math.cos(sine / 25))), .4)
  855. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1,1) * angles(math.rad(-45),math.rad(-180),math.rad(0)), 0.4)
  856. end
  857. if attack == false and Runkey == false then
  858. s.Pitch = .8
  859. s.Volume = .6
  860. change = 0.65
  861. Humanoid.WalkSpeed = 13 --* math.cos(sine / 2)
  862. Humanoid.JumpPower = 50
  863. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(.5 * math.cos(sine / 1))), .3)
  864. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0) + RootPart.RotVelocity.Y/20), .1)
  865. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  866. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  867. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  868. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  869. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  870. end
  871.  
  872.  
  873.  
  874.  
  875. function onClimbing(speed)
  876. if attack == false then
  877. attack = true
  878. Climbanim= true
  879. Humanoid.WalkSpeed = 14
  880. while Climbanim == true do
  881. for i = 0, 0, 0.1 do
  882. swait()
  883.  
  884. change = 0.5
  885.  
  886.  
  887.  
  888. if RootPart.Velocity.y > .01 then
  889. s.Pitch = .9
  890. s.Volume = .5
  891. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .3)
  892. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  893. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  894. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  895. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  896. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  897. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  898. end
  899.  
  900.  
  901.  
  902.  
  903. if RootPart.Velocity.y < .5 and RootPart.Velocity.y > -0.5 then
  904. s.Pitch = .7
  905. s.Volume = .5
  906. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(0)), .1)
  907. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  908. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  909. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  910. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  911. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  912. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  913. end
  914.  
  915.  
  916. if RootPart.Velocity.y < -1 then
  917. s.Pitch = .9
  918. s.Volume = .5
  919. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -1.1) * angles(math.rad(-90), math.rad(0), math.rad(180)), .3)
  920. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-1 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  921. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  922. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  923. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  924. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  925. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1) end
  926.  
  927. end
  928. if Torsovelocity > 1 then
  929. Climbanim = false
  930. end
  931. end
  932. attack = false
  933. end
  934. end
  935. Humanoid.Climbing:connect(onClimbing)
  936.  
  937.  
  938.  
  939. end
  940. end
  941.  
  942.  
  943. if #Effects > 0 then
  944. for e = 1, #Effects do
  945. if Effects[e] ~= nil then
  946. local Thing = Effects[e]
  947. if Thing ~= nil then
  948. local Part = Thing[1]
  949. local Mode = Thing[2]
  950. local Delay = Thing[3]
  951. local IncX = Thing[4]
  952. local IncY = Thing[5]
  953. local IncZ = Thing[6]
  954. if Thing[1].Transparency <= 1 then
  955. if Thing[2] == "Block1" then
  956. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  957. local Mesh = Thing[1].Mesh
  958. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  959. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  960. elseif Thing[2] == "Block2" then
  961. Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.0,0)
  962. local Mesh = Thing[7]
  963. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  964. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  965. elseif Thing[2] == "Block3" then
  966. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))+Vector3.new(0,.15,0)
  967. local Mesh = Thing[7]
  968. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  969. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  970. elseif Thing[2] == "Cylinder" then
  971. local Mesh = Thing[1].Mesh
  972. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  973. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  974. elseif Thing[2] == "Blood" then
  975. local Mesh = Thing[7]
  976. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  977. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  978. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  979. elseif Thing[2] == "Elec" then
  980. local Mesh = Thing[1].Mesh
  981. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  982. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  983. elseif Thing[2] == "Disappear" then
  984. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  985. elseif Thing[2] == "Shatter" then
  986. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  987. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  988. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  989. Thing[6] = Thing[6] + Thing[5]
  990. end
  991. else
  992. Part.Parent = nil
  993. table.remove(Effects, e)
  994. end
  995. end
  996. end
  997. end
  998. end
  999. end)
  1000.  
  1001.  
  1002. Effects = {
  1003. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1004.  
  1005. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1006. prt.Anchored = true
  1007. prt.CFrame = cframe
  1008. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1009. game:GetService("Debris"):AddItem(prt, 10)
  1010. if Type == 1 or Type == nil then
  1011. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1012. else
  1013. if Type == 2 then
  1014. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1015. else
  1016. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  1017. end
  1018. end
  1019. end
  1020. }
  1021. ,
  1022. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1023.  
  1024. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1025. prt.Anchored = true
  1026. prt.CFrame = cframe
  1027. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1028. game:GetService("Debris"):AddItem(prt, 10)
  1029. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1030. end
  1031. }
  1032. ,
  1033. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1034.  
  1035. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1036. prt.Anchored = true
  1037. prt.CFrame = cframe
  1038. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1039. game:GetService("Debris"):AddItem(prt, 10)
  1040. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1041. end
  1042. }
  1043. ,
  1044. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1045.  
  1046. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1047. prt.Anchored = true
  1048. prt.CFrame = cframe
  1049. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1/60, y1/60, z1/60))
  1050. game:GetService("Debris"):AddItem(prt, 10)
  1051. table.insert(Effects, {prt, "Cylinder", delay, x3/60, y3/60, z3/60, msh})
  1052. end
  1053. }
  1054. ,
  1055. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1056.  
  1057. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1058. prt.Anchored = true
  1059. prt.CFrame = cframe
  1060. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1061. game:GetService("Debris"):AddItem(prt, 10)
  1062. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1063. end
  1064. }
  1065. ,
  1066. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  1067.  
  1068. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1069. prt.Anchored = true
  1070. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1071. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1072. local num = math.random(10, 50) / 1000
  1073. game:GetService("Debris"):AddItem(prt, 10)
  1074. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  1075. end
  1076. }
  1077. }
  1078.  
  1079.  
  1080.  
  1081. RemoveOutlines = function(part)
  1082.  
  1083. part.TopSurface = 10
  1084. end
  1085.  
  1086. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1087.  
  1088. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1089. RemoveOutlines(Part)
  1090. return Part
  1091. end
  1092.  
  1093. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1094.  
  1095. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1096. if Mesh == "SpecialMesh" then
  1097. Msh.MeshType = MeshType
  1098. Msh.MeshId = MeshId
  1099. end
  1100. return Msh
  1101. end
  1102.  
  1103. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  1104.  
  1105. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1106. return Weld
  1107. end
  1108.  
  1109.  
  1110.  
  1111.  
  1112. WSHM = {'White',"Pastel light red"}
  1113. WSH = WSHM[math.random(1,#WSHM)]
  1114.  
  1115.  
  1116. IcePartFunk = function(HPart,aria,Min,Max)
  1117.  
  1118. IcePart = Instance.new("Part",HPart)
  1119. IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1120. IcePart.CanCollide = false
  1121. IuW = Instance.new("Weld")
  1122. IuW.Name = "GuW"
  1123. IuW.Part0 = HPart
  1124. IuW.C0 = cn(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria))*angles( math.random(-180, 180),math.random(-180, 180),math.random(-180, 180))
  1125. IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0)
  1126. IuW.Part1 = IcePart
  1127. IuW.Parent = HPart
  1128. IcePart.Transparency = .85
  1129. IcePart.Material= "Neon"
  1130. WSH = WSHM[math.random(1,#WSHM)]
  1131. IcePart.BrickColor = BrickColor.new(""..WSH)
  1132.  
  1133. RemoveOutlines(IcePart)
  1134. game:GetService("Debris"):AddItem(IuW, 4)
  1135. game:GetService("Debris"):AddItem(IcePart, 6)
  1136.  
  1137.  
  1138. end
  1139. --[[
  1140. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max)
  1141.  
  1142. IcePart2 = Instance.new("Part",HPart)
  1143. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1144. IcePart2.CanCollide = false
  1145. RemoveOutlines(IcePart2)
  1146. IcePart2.Anchored = true
  1147.  
  1148.  
  1149.  
  1150. IcePart2.CFrame=CFrame.new(Hit.Position* Vector3.new(math.random(-aria, aria),math.random(-aria, aria),math.random(-aria, aria)))
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157. IcePart2.Transparency = .85
  1158. IcePart2.Material= "Neon"
  1159.  
  1160. IcePart2.BrickColor = BrickColor.new(""..color)
  1161.  
  1162.  
  1163.  
  1164. game:GetService("Debris"):AddItem(IcePart2, 6)
  1165.  
  1166.  
  1167. end
  1168. --]]
  1169. GroundPartFunk2 = function(Hit,HPart,color,aria,Min,Max,num)
  1170.  
  1171. IcePart2 = Instance.new("Part",HPart)
  1172. IcePart2.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max))
  1173. IcePart2.CanCollide = false
  1174. RemoveOutlines(IcePart2)
  1175. IcePart2.Anchored = true
  1176. game:GetService("Debris"):AddItem(IcePart2, .4)
  1177. IcePart2.Transparency = .3
  1178. IcePart2.Material= "Neon"
  1179. IcePart2.BrickColor = BrickColor.new(""..color)
  1180.  
  1181. IcePart2.CFrame=CFrame.new(Hit.Position+ Vector3.new(math.random(-aria, aria),math.random(-aria, 0),math.random(-aria, aria)))*angles(math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)),math.rad(math.random(-45, 45)))
  1182. for i = 0,num do
  1183. if num > 1 then
  1184. GroundPartFunk2(Hit,HPart,color,aria,Min,Max,0)
  1185. end
  1186. end
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198. end
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204. SpikeMeshId = 1033714
  1205. local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale)
  1206.  
  1207.  
  1208. local Part = Instance.new("Part", Parent)
  1209. Part.Name = Name
  1210. Part.BrickColor = BrickColor.new(Color)
  1211. Part.Size = Size
  1212. Part.Material = Material
  1213. Part.Transparency = Transparency
  1214. Part.CanCollide = false
  1215. RemoveOutlines(Part)
  1216.  
  1217. local Mesh = Instance.new("SpecialMesh", Part)
  1218. Mesh.MeshType = "Sphere"
  1219. Mesh.Scale = Scale
  1220.  
  1221. return Mesh and Part
  1222.  
  1223. end
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232. CFuncs = {
  1233. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1234.  
  1235. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  1236. RemoveOutlines(Part)
  1237. return Part
  1238. end
  1239. }
  1240. ,
  1241. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1242.  
  1243. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1244. if Mesh == "SpecialMesh" then
  1245. Msh.MeshType = MeshType
  1246. Msh.MeshId = MeshId
  1247. end
  1248. return Msh
  1249. end
  1250. }
  1251. ,
  1252. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1253.  
  1254. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  1255. if Mesh == "SpecialMesh" then
  1256. Msh.MeshType = MeshType
  1257. Msh.MeshId = MeshId
  1258. end
  1259. return Msh
  1260. end
  1261. }
  1262. ,
  1263. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  1264.  
  1265. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  1266. return Weld
  1267. end
  1268. }
  1269. ,
  1270. Sound = {Create = function(id, par, vol, pit)
  1271.  
  1272. coroutine.resume(coroutine.create(function()
  1273.  
  1274. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  1275. wait()
  1276. S:play()
  1277. game:GetService("Debris"):AddItem(S, 6)
  1278. end
  1279. ))
  1280. end
  1281. }
  1282. ,
  1283. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1284.  
  1285. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  1286. return fp
  1287. end
  1288. }
  1289. }
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1296.  
  1297. if hit.Parent == nil then
  1298. return
  1299. end
  1300. local h = hit.Parent:FindFirstChild("Humanoid")
  1301. for _,v in pairs(hit.Parent:children()) do
  1302. if v:IsA("Humanoid") then
  1303. h = v
  1304. end
  1305. end
  1306. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1307. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1308. return
  1309. end
  1310. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1311. game:GetService("Debris"):AddItem(c, 0.5)
  1312. if HitSound ~= nil and HitPitch ~= nil then
  1313. CreateSound(HitSound, hit, 1, HitPitch)
  1314. end
  1315. local Damage = math.random(minim, maxim)
  1316. local blocked = false
  1317. local block = hit.Parent:findFirstChild("Block")
  1318. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1319. blocked = true
  1320. block.Value = block.Value - 1
  1321. print(block.Value)
  1322. end
  1323. if blocked == false then
  1324. h.Health = h.Health - Damage
  1325. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1326. else
  1327. h.Health = h.Health - Damage / 2
  1328. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1329. end
  1330. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1331. lasthit = hit.Parent.Torso
  1332. end
  1333. if Type == "Knockdown" then
  1334. local hum = hit.Parent.Humanoid
  1335. hum.PlatformStand = true
  1336. coroutine.resume(coroutine.create(function(HHumanoid)
  1337.  
  1338. swait(.2)
  1339. HHumanoid.PlatformStand = false
  1340. end
  1341. ), hum)
  1342. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1343. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  1344. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1345. game:GetService("Debris"):AddItem(bodvol, 0.1)
  1346. game:GetService("Debris"):AddItem(rl, 0.1)
  1347. elseif Type == "Normal" then
  1348. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  1349. if knockback > 0 then
  1350. vp.Parent = hit.Parent.Torso
  1351. end
  1352. game:GetService("Debris"):AddItem(vp, 0.5)
  1353. elseif Type == "Impale" then
  1354.  
  1355. local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1,2,1), "Neon", .2, Vector3.new(.5,25,.5))
  1356. Spike.Anchored = true
  1357. Spike.Rotation = Vector3.new(math.random(-45,45), 0 , math.random(-45,45))
  1358. Spike.Position = hit.Parent.Torso.Position
  1359.  
  1360. Services.Debris:AddItem(Spike, 4)
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  1368. hit.Parent.Humanoid.PlatformStand = true
  1369.  
  1370.  
  1371. swait(1)
  1372. hit.Parent.Humanoid.PlatformStand = false
  1373. elseif Type == "Up" then
  1374. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1375. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1376. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1377. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1378.  
  1379.  
  1380.  
  1381. elseif Type == "UltSlice" then
  1382.  
  1383. BlockEffect( BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, .5, 0,0,0, 0.01,2)
  1384. BlockEffect( BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0,0,0, 0.01,2)
  1385. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.01,2)
  1386. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1387. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1388. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1389. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.01,2)
  1390.  
  1391.  
  1392. elseif Type == "Slice" then
  1393. local bp2 = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Head.Position, Parent = hit.Parent.Torso})
  1394. game:GetService("Debris"):AddItem(bp2, 1)
  1395.  
  1396. if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then
  1397. for i = 1,10 do
  1398. Effects.Break.Create (BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, .5, .5)
  1399.  
  1400.  
  1401. end
  1402. end
  1403.  
  1404.  
  1405.  
  1406.  
  1407. elseif Type == "Snare" then
  1408. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1409. game:GetService("Debris"):AddItem(bp, 1)
  1410. elseif Type == "Slowness" then
  1411. local SpeedSave=hit.Parent.Humanoid.WalkSpeed
  1412.  
  1413. for i = 1,25 do
  1414. hit.Parent.Humanoid.WalkSpeed = 4
  1415. IcePartFunk(hit.Parent.Torso,.55,0.1,1)
  1416. end
  1417. wait(4)
  1418. hit.Parent.Humanoid.WalkSpeed = SpeedSave
  1419. elseif Type == "Firedmg" then
  1420.  
  1421. for i = 1,math.random(1, 6) do
  1422. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1423. BlockEffect( BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3)
  1424. BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3)
  1425. BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3)
  1426.  
  1427.  
  1428.  
  1429. wait(.1)
  1430. end
  1431. end
  1432.  
  1433. elseif Type == "Freeze" then
  1434. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1435. game:GetService("Debris"):AddItem(bp, 4)
  1436. for i=1,25 do
  1437. IcePartFunk(hit.Parent.Torso,1,1.5,2)
  1438. end
  1439. elseif Type == "Freeze2" then
  1440. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1441. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1442. hit.Parent.Torso.Anchored = true
  1443. coroutine.resume(coroutine.create(function(Part)
  1444.  
  1445. swait(1.5)
  1446. Part.Anchored = false
  1447. end
  1448. ), hit.Parent.Torso)
  1449. game:GetService("Debris"):AddItem(BodPos, 3)
  1450. game:GetService("Debris"):AddItem(BodGy, 3)
  1451. end
  1452. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1453. game:GetService("Debris"):AddItem(debounce, Delay)
  1454. c = Instance.new("ObjectValue")
  1455. c.Name = "creator"
  1456. c.Value = Player
  1457. c.Parent = h
  1458. game:GetService("Debris"):AddItem(c, 0.5)
  1459. end
  1460. end
  1461.  
  1462. ShowDamage = function(Pos, Text, Time, Color)
  1463.  
  1464. local Rate = 0.033333333333333
  1465. if not Pos then
  1466. local Pos = Vector3.new(0, 0, 0)
  1467. end
  1468. local Text = Text or ""
  1469. local Time = Time or 2
  1470. if not Color then
  1471. local Color = Color3.new(1, 0, 1)
  1472. end
  1473. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1474. EffectPart.Anchored = true
  1475. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1476. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1477. game.Debris:AddItem(EffectPart, Time + 0.1)
  1478. EffectPart.Parent = game:GetService("Workspace")
  1479. delay(0, function()
  1480.  
  1481. local Frames = Time / Rate
  1482. for Frame = 1, Frames do
  1483. wait(Rate)
  1484. local Percent = Frame / Frames
  1485. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1486. TextLabel.TextTransparency = Percent
  1487. end
  1488. if EffectPart and EffectPart.Parent then
  1489. EffectPart:Destroy()
  1490. end
  1491. end
  1492. )
  1493. end
  1494.  
  1495. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1496.  
  1497. for _,c in pairs(workspace:children()) do
  1498. local hum = c:findFirstChild("Humanoid")
  1499. if hum ~= nil then
  1500. local head = c:findFirstChild("Head")
  1501. if head ~= nil then
  1502. local targ = head.Position - Part.Position
  1503. local mag = targ.magnitude
  1504. if mag <= magni and c.Name ~= Player.Name then
  1505. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2)
  1506. end
  1507. end
  1508. end
  1509. end
  1510. end
  1511. MagniKILL = function(Part, magni, knock, Type)
  1512.  
  1513. for _,c in pairs(workspace:children()) do
  1514. local hum = c:findFirstChild("Humanoid")
  1515. if hum ~= nil then
  1516. local head = c:findFirstChild("Head")
  1517. if head ~= nil then
  1518. local targ = head.Position - Part.Position
  1519. local mag = targ.magnitude
  1520. if mag <= magni and c.Name ~= Player.Name then
  1521. hum.Health = 0
  1522. end
  1523. end
  1524. end
  1525. end
  1526. end
  1527. EffectModel = Instance.new("Model", Character)
  1528. EffectModel.Name = "Effects"
  1529.  
  1530. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1531.  
  1532. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1533. prt.Anchored = true
  1534. prt.CFrame = cframe
  1535. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1536. game:GetService("Debris"):AddItem(prt, 10)
  1537. if Type == 1 or Type == nil then
  1538. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1539. else
  1540. if Type == 2 then
  1541. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1542. else
  1543. if Type == 3 then
  1544. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh})
  1545. end
  1546. end
  1547. end
  1548. end
  1549. CreateSound = function(id, par, vol, pit)
  1550.  
  1551. coroutine.resume(coroutine.create(function()
  1552.  
  1553. local sou = Instance.new("Sound", par or workspace)
  1554. sou.Volume = vol
  1555. sou.Pitch = pit or 1
  1556. sou.SoundId = id
  1557. swait()
  1558. sou:play()
  1559. game:GetService("Debris"):AddItem(sou, 6)
  1560. end
  1561. ))
  1562. end
  1563.  
  1564. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1565.  
  1566. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1567. prt.Anchored = true
  1568. prt.CFrame = cframe
  1569. prt.Material = "Neon"
  1570. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1571. game:GetService("Debris"):AddItem(prt, 10)
  1572. coroutine.resume(coroutine.create(function(Part, Mesh)
  1573.  
  1574. for i = 0, 6, delay do
  1575. swait()
  1576. Part.Transparency = i
  1577. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  1578. end
  1579. Part.Parent = nil
  1580. end
  1581. ), prt, msh)
  1582. end
  1583.  
  1584. shoottraildd = function(mouse, partt, SpreadAmount)
  1585.  
  1586. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount/10, SpreadAmount/10), math.random(-SpreadAmount, SpreadAmount))
  1587. local MainPos = mouse + Vector3.new(0, 6, 0)+RootPart.CFrame.lookVector*-2
  1588. local MainPos2 = mouse + SpreadVectors
  1589. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1590. local speed = 100
  1591. local num = 1
  1592. coroutine.resume(coroutine.create(function()
  1593.  
  1594. repeat
  1595. swait()
  1596. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1597. local mag = (MainPos - pos).magnitude
  1598. Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0, mag * (speed / (speed / 2)), 0, -0, 0, -0, 10)
  1599. MainPos = MainPos + MouseLook.lookVector * speed
  1600. num = num - 1
  1601. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1602. if hit ~= nil then
  1603. num = 0
  1604. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1605. refpart.Anchored = true
  1606. refpart.CFrame = CFrame.new(pos)
  1607. game:GetService("Debris"):AddItem(refpart, 2)
  1608. end
  1609. do
  1610. if num <= 0 then
  1611. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1612. refpart.Anchored = true
  1613. refpart.CFrame = CFrame.new(pos)
  1614. if hit ~= nil then
  1615.  
  1616.  
  1617.  
  1618. GroundPartFunk2(refpart,EffectModel,"Really red",1,.1,2,2)
  1619. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -.5, -.5, -.5, 0.05)
  1620. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1621. -- BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.07)
  1622. MagniDamage(refpart, 6, 10, 25, 0, "Slice")
  1623. end
  1624. game:GetService("Debris"):AddItem(refpart, 0)
  1625. end
  1626. end
  1627. until num <= 0
  1628. end
  1629. ))
  1630. end
  1631.  
  1632. shoottraildd2 = function(mouse, partt, SpreadAmount)
  1633.  
  1634. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1635. local MainPos = partt.Position
  1636. local MainPos2 = mouse + SpreadVectors
  1637. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1638. local speed = 1000
  1639. local num = 1
  1640. coroutine.resume(coroutine.create(function()
  1641.  
  1642. repeat
  1643. swait()
  1644. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1645. local mag = (MainPos - pos).magnitude
  1646. Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -8.175, 0, -8.175, 0.15)
  1647. MainPos = MainPos + MouseLook.lookVector * speed
  1648. num = num - 1
  1649. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1650. if hit ~= nil then
  1651. num = 0
  1652. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1653. refpart.Anchored = true
  1654. refpart.CFrame = CFrame.new(pos)
  1655. game:GetService("Debris"):AddItem(refpart, 2)
  1656. end
  1657. do
  1658. if num <= 0 then
  1659. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1660. refpart.Anchored = true
  1661. refpart.CFrame = CFrame.new(pos)
  1662. if hit ~= nil then
  1663. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1664. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05)
  1665. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1666. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05)
  1667. MagniKILL(refpart, 80, 0, "Normal")
  1668. end
  1669. game:GetService("Debris"):AddItem(refpart, 0)
  1670. end
  1671. end
  1672. until num <= 0
  1673. end
  1674. ))
  1675. end
  1676.  
  1677. shoottraildd3 = function(mouse, partt, SpreadAmount, dmg)
  1678.  
  1679. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1680. local MainPos = partt.Position
  1681. local MainPos2 = mouse + SpreadVectors
  1682. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1683. local speed = 200
  1684. local num = 0
  1685. coroutine.resume(coroutine.create(function()
  1686.  
  1687. repeat
  1688. swait()
  1689. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1690. local mag = (MainPos - pos).magnitude
  1691. Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05)
  1692. MainPos = MainPos + MouseLook.lookVector * speed
  1693. num = num - 1
  1694. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1695. if hit ~= nil then
  1696. num = 0
  1697. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1698. refpart.Anchored = true
  1699. refpart.CFrame = CFrame.new(pos)
  1700. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1701. game:GetService("Debris"):AddItem(refpart, 2)
  1702. end
  1703. do
  1704. if num <= 0 then
  1705. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1706. refpart.Anchored = true
  1707. refpart.CFrame = CFrame.new(pos)
  1708. if hit ~= nil then
  1709. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1710. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1711. BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1712.  
  1713.  
  1714. MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness")
  1715.  
  1716. end
  1717. game:GetService("Debris"):AddItem(refpart, 0)
  1718. end
  1719. end
  1720. until num <= 0
  1721. end
  1722. ))
  1723. end
  1724.  
  1725. shoottraildd4 = function(mouse, partt, SpreadAmount, dmg)
  1726.  
  1727. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1728. local MainPos = partt.Position
  1729. local MainPos2 = mouse + SpreadVectors
  1730. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1731. local speed = 150
  1732. local num = 1
  1733. coroutine.resume(coroutine.create(function()
  1734.  
  1735. repeat
  1736. swait()
  1737. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1738. local mag = (MainPos - pos).magnitude
  1739. Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15)
  1740. MainPos = MainPos + MouseLook.lookVector * speed
  1741. num = num - 1
  1742. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  1743. if hit ~= nil then
  1744. num = 0
  1745. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1746. refpart.Anchored = true
  1747. refpart.CFrame = CFrame.new(pos)
  1748. game:GetService("Debris"):AddItem(refpart, 2)
  1749. end
  1750. do
  1751. if num <= 0 then
  1752. local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  1753. refpart.Anchored = true
  1754. refpart.CFrame = CFrame.new(pos)
  1755. if hit ~= nil then
  1756. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1)
  1757. BlockEffect( BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05)
  1758. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1759. BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05)
  1760. MagniDamage(refpart, 6, dmg, dmg, 0, "Normal")
  1761. end
  1762. game:GetService("Debris"):AddItem(refpart, 0)
  1763. end
  1764. end
  1765. until num <= 0
  1766. end
  1767. ))
  1768. end
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776. HitpartFunk3 = function(HPart3,Xv,Yv,Zv)
  1777.  
  1778. Hitpart3 = Instance.new("Part",HPart3)
  1779. RemoveOutlines(Hitpart3)
  1780. Hitpart3.Size = Vector3.new(1,1,1)
  1781. Hitpart3.CanCollide = false
  1782. HuW3 = Instance.new("Weld")
  1783. HuW3.Name = "GuW"
  1784. HuW3.Part0 = HPart3
  1785. HuW3.C0 = cn(Xv, Yv, Zv)
  1786. HuW3.C1 = cn(0, 0, 0)
  1787. HuW3.Part1 = Hitpart3
  1788. HuW3.Parent = HPart3
  1789. Hitpart3.Transparency = 1
  1790. game:GetService("Debris"):AddItem(Hitpart3, 20)
  1791. end
  1792.  
  1793. HitpartFunk2 = function(HPart2,Xv,Yv,Zv)
  1794.  
  1795. Hitpart2 = Instance.new("Part",HPart2)
  1796. RemoveOutlines(Hitpart2)
  1797. Hitpart2.Size = Vector3.new(1,1,1)
  1798. Hitpart2.CanCollide = false
  1799. HuW2 = Instance.new("Weld")
  1800. HuW2.Name = "GuW"
  1801. HuW2.Part0 = HPart2
  1802. HuW2.C0 = cn(Xv, Yv, Zv)
  1803. HuW2.C1 = cn(0, 0, 0)
  1804. HuW2.Part1 = Hitpart2
  1805. HuW2.Parent = HPart2
  1806. Hitpart2.Transparency = 1
  1807. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1808. end
  1809.  
  1810.  
  1811. HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1812.  
  1813. Hitpart = Instance.new("Part",HPart)
  1814. RemoveOutlines(Hitpart)
  1815. Hitpart.Size = Vector3.new(1,1,1)
  1816. Hitpart.CanCollide = false
  1817. HuW = Instance.new("Weld")
  1818. HuW.Name = "GuW"
  1819. HuW.Part0 = HPart
  1820. HuW.C0 = cn(Xv, Yv, Zv)
  1821. HuW.C1 = cn(0, 0, 0)
  1822. HuW.Part1 = Hitpart
  1823. HuW.Parent = HPart
  1824. Hitpart.Transparency = 1
  1825. game:GetService("Debris"):AddItem(Hitpart2, 20)
  1826. MagniDamage(Hitpart, 4.5, Min, Max, kb, atype)
  1827.  
  1828. end
  1829. HitpartFunk4 = function(HPart,Min,Max,Xv,Yv,Zv,atype,kb)
  1830.  
  1831. Hitpart4 = Instance.new("Part",HPart)
  1832. RemoveOutlines(Hitpart4)
  1833. Hitpart4.Size = Vector3.new(1,1,1)
  1834. Hitpart4.CanCollide = false
  1835. HuW4 = Instance.new("Weld")
  1836. HuW4.Name = "HuW4"
  1837. HuW4.Part0 = HPart
  1838. HuW4.C0 = cn(Xv, Yv, Zv)
  1839. HuW4.C1 = cn(0, 0, 0)
  1840. HuW4.Part1 = Hitpart4
  1841. HuW4.Parent = HPart
  1842. Hitpart4.Transparency = 1
  1843. game:GetService("Debris"):AddItem(Hitpart4, 1.5)
  1844. MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype)
  1845.  
  1846. end
  1847.  
  1848.  
  1849. HitboxFunction = function(Pose,lifetime,siz1,siz2,siz3,Radie,Min,Max,kb,atype)
  1850.  
  1851. Hitboxpart = Instance.new("Part",Character)
  1852. RemoveOutlines(Hitboxpart)
  1853. Hitboxpart.Size = Vector3.new(siz1,siz2,siz3)
  1854. Hitboxpart.CanCollide = false
  1855. Hitboxpart.Transparency = 1
  1856. Hitboxpart.Anchored = true
  1857. Hitboxpart.CFrame = Pose
  1858. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1859. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1860.  
  1861. end
  1862.  
  1863.  
  1864. wait2 = false
  1865.  
  1866.  
  1867. combo = 1
  1868.  
  1869.  
  1870.  
  1871.  
  1872. duljump = false
  1873. duljump2 = false
  1874. jumpatck = false
  1875. mouse.KeyDown:connect(function(k)
  1876. if k == "0" then
  1877.  
  1878. Runkey = true
  1879.  
  1880. end
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891. if k == "e" and attack == false then
  1892. attack = true
  1893.  
  1894. Humanoid.WalkSpeed = 0
  1895.  
  1896. CreateSound("http://www.roblox.com/asset/?id=135305162", Torso, 2, 1)
  1897.  
  1898. for i = 0, 2, 0.1 do
  1899. swait()
  1900.  
  1901. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1902. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1903. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1904. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(135 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  1905. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1906. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1907. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1908.  
  1909.  
  1910.  
  1911. end
  1912.  
  1913. for i = 0, 4, 0.1 do
  1914. swait()
  1915.  
  1916. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1917. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-0 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1918. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(25)), 0.05)
  1919. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-25)), 0.05)
  1920. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1921. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1922. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1923.  
  1924.  
  1925.  
  1926. end
  1927. for i = 0, 1 do
  1928. for i = 0, 1, 0.1 do
  1929. swait()
  1930.  
  1931. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1932. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1933. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1934. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1935. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1936. LH.C0 = clerp(LH.C0, cn(-1, -1 ,0)* LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1937. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1938.  
  1939.  
  1940.  
  1941. end
  1942. for i = 0, 1, 0.1 do
  1943. swait()
  1944.  
  1945. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 0, -1.1) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1946. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-15 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  1947. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1948. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.1)
  1949. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  1950. LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  1951. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.8) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.1)
  1952.  
  1953.  
  1954.  
  1955. end
  1956. end
  1957.  
  1958. Humanoid.WalkSpeed = 16
  1959.  
  1960. attack = false
  1961.  
  1962.  
  1963.  
  1964.  
  1965. end
  1966.  
  1967.  
  1968.  
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983. end)
  1984. hitwait = false
  1985. function onTouch(part)
  1986.  
  1987. local humanoid = part.Parent:findFirstChild("Humanoid")
  1988. local model = part.Parent
  1989. local torso = part.Parent:FindFirstChild("Torso")
  1990. local head = part.Parent:findFirstChild("Head")
  1991. local leftleg = part.Parent:findFirstChild("Left Leg")
  1992. local rightleg = part.Parent:findFirstChild("Right Leg")
  1993. local leftarm = part.Parent:findFirstChild("Left Arm")
  1994. local rightarm = part.Parent:findFirstChild("Right Arm")
  1995.  
  1996. if hitwait == false and attack == false and model.Name == "Effects" == false and Runkey == true then
  1997.  
  1998. hitwait = true
  1999.  
  2000.  
  2001.  
  2002.  
  2003. if (humanoid ~=nil) and humanoid.Health >0.01 and Torsovelocity > 1 then
  2004.  
  2005. if IKM == true then
  2006. Effects.Sphere.Create(BrickColor.new("Really black"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 40,40,40, 0.1)
  2007. Effects.Sphere.Create(BrickColor.new("Really red"), FrontPart.CFrame * cn(0, -0, 0), 50, 50, 50, 20,20,20, 0.05)
  2008. model:BreakJoints()
  2009.  
  2010. else
  2011. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, .1, 12,12,0, 0.1)
  2012. Effects.Sphere.Create(BrickColor.new("White"), FrontPart.CFrame * cn(0, -0, 2), 100, 100, 20, 1,1,1, 0.08)
  2013. MagniDamage(FrontPart, 6.5, 6, 6, .3, "Knockdown")
  2014.  
  2015. end
  2016.  
  2017. attack = true
  2018. Humanoid.WalkSpeed = 0
  2019. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 1, 0)-RootPart.CFrame.lookVector*1500, P = 50000, maxForce = Vector3.new(80000, 80000, 80000), Parent = Torso})
  2020.  
  2021. game:GetService("Debris"):AddItem(bodyVelocity2, 0.11)
  2022.  
  2023. for i = 0, .5, 0.1 do
  2024. swait()
  2025.  
  2026. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05, 1, -0.5) * angles(math.rad(1), math.rad(0), math.rad(0)), .2)
  2027. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-30 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(-0)), .1)
  2028. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0.01 * math.cos(sine / 8), -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  2029. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.01 * math.cos(sine / 8) , -.0) * angles(math.rad(45 - 1 * math.cos(sine / 8)), math.rad(0), math.rad(0)), 0.2)
  2030. RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6), math.rad(0), math.rad(90 + .05 * math.cos(sine / 25))), .1)
  2031. LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.0) * LHCF * angles(math.rad(6), math.rad(-0), math.rad(-90 + .05 * math.cos(sine / 25))), .1)
  2032. SWW.C0 = clerp(SWW.C0, CFrame.new(0,-1.5,-.3) * angles(math.rad(-0),math.rad(-180),math.rad(0)), 0.3)
  2033.  
  2034.  
  2035.  
  2036. end
  2037.  
  2038.  
  2039. Humanoid.WalkSpeed = 16
  2040. end
  2041. attack = false
  2042. wait(.08)
  2043. hitwait = false
  2044. end
  2045.  
  2046. end
  2047. FrontPart.Touched:connect(onTouch)
  2048.  
  2049.  
  2050.  
  2051. mouse.KeyUp:connect(function(k)
  2052. if k == "0"then
  2053. Runkey = false
  2054.  
  2055. end
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062. end)
  2063.  
  2064. humHsave = Humanoid.Health
  2065. function GainCharge(Humanoid)
  2066. if Humanoid.Health == 0 then
  2067. equipped = false
  2068. end
  2069. if blocking == true then
  2070.  
  2071. humDsave = Humanoid.Health
  2072. humDsave = humHsave - humDsave
  2073. if humDsave >0.01 then
  2074.  
  2075. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433850", Torso, 1, .5)
  2076. BlockEffect( BrickColor.new("Really red"), Torso.CFrame, 42, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2077. BlockEffect( BrickColor.new("Really red"), RightArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2078. BlockEffect( BrickColor.new("Really red"), LeftArm.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2079. BlockEffect( BrickColor.new("Really red"), RightLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2080. BlockEffect( BrickColor.new("Really red"), LeftLeg.CFrame, 22, 42, 22, 0.1,0.1,0.1, 0.02,2)
  2081. humDsave = humDsave/3
  2082. end
  2083. if humDsave <0 then
  2084.  
  2085.  
  2086. Effects.Sphere.Create(BrickColor.new("Lime green"), RootPart.CFrame * cn(0, -2.97, 0), 10, 5, 10, 15,-.1,15, 0.05)
  2087. --[[
  2088. BlockEffect( BrickColor.new("Lime green"), Torso.CFrame, 41, 41, 21, 0,0,0, 0.1,2)
  2089. BlockEffect( BrickColor.new("Lime green"), RightArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2090. BlockEffect( BrickColor.new("Lime green"), LeftArm.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2091. BlockEffect( BrickColor.new("Lime green"), RightLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2092. BlockEffect( BrickColor.new("Lime green"), LeftLeg.CFrame, 21, 41, 21, 0,0,0, 0.1,2)
  2093. --]]
  2094. humDsave = humDsave*2.5
  2095. end
  2096.  
  2097. humHsave = humHsave - humDsave
  2098.  
  2099.  
  2100.  
  2101.  
  2102. end
  2103.  
  2104. end
  2105.  
  2106. Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end)
  2107.  
  2108.  
  2109. OnDeath = function()
  2110.  
  2111. equipped = false
  2112.  
  2113.  
  2114.  
  2115. end
  2116.  
  2117. Humanoid.Died:connect(function()OnDeath(Character)end)
  2118.  
  2119.  
  2120.  
  2121. print('Created By Draconix')
Add Comment
Please, Sign In to add comment