Advertisement
ghostteen14

Untitled

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