Advertisement
samuelrichter66

bump

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