Advertisement
Guest User

Untitled

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