voidman

Untitled

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