Advertisement
therainbowcreeperRBX

fe car

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