Advertisement
VoidScriptPlayer

Untitled

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