Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2.  
  3. local Player,game,owner = owner,game
  4.  
  5. local RealPlayer = Player
  6.  
  7. do print("FE Compatibility code V3 by Ryan_Ivrid")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  8. --[[Floaty thing by SezHu.
  9.  
  10. If you want a creation like this of your own, shoot me a friend request me on Discord! (Sezzie
  11. #1875) Prices start at 250 robux.]]--
  12.  
  13.  
  14. local songs = {
  15. 1117396305, --PIXL, This Time
  16. 2890284127, --Slow
  17. 3034923251, --Chill 2
  18. 627848963, --Soul Food
  19. 2766594501, --Burn Marks
  20. 2815419030,
  21. 134351045, --D r o w z y
  22. 566546592, --S a y o n a r a
  23. 1446511374, --Oracle
  24. } --Add your songs by replacing the IDs with your song ID.
  25.  
  26.  
  27. local quotes = {
  28. "Oh It's You.",
  29. "I Giorno have a dream.",
  30. "Pirate of the Carribbean",
  31. "Piller Men",
  32. "Jackpot",
  33. "Prelude.",
  34. "ALERT!",
  35. } --Feel free to replace the quotes with stuff of your own.
  36.  
  37.  
  38. local function soundbork(obj)
  39. if obj:IsA("Sound") and obj.Name ~= "playlist" then
  40. --obj:Destroy() Remove the two dashes to silence all music but your own.
  41. return
  42. end
  43.  
  44.  
  45. local children = obj:GetChildren()
  46. for i = 1, #children do
  47. soundbork(children[i])
  48. end
  49.  
  50. return
  51. end
  52.  
  53. --//Constants\\--
  54.  
  55. Effects = { }
  56. local Player = game.Players.localPlayer
  57. local Mouse = Player:GetMouse()
  58. local Character = Player.Character
  59. local Humanoid = Character.Humanoid
  60. local Head = Character.Head
  61. local RootPart = Character.HumanoidRootPart
  62. local Torso = Character.Torso
  63. local LeftArm = Character["Left Arm"]
  64. local RightArm = Character["Right Arm"]
  65. local LeftLeg = Character["Left Leg"]
  66. local RightLeg = Character["Right Leg"]
  67. local Camera = game.Workspace.CurrentCamera
  68. local RootJoint = RootPart.RootJoint
  69. local Equipped = false
  70. local Attack = false
  71. local Anim = 'Idle'
  72. local Idle = 0
  73. local Combo = 1
  74. local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  75. local Velocity = RootPart.Velocity.y
  76. local Sine = 0
  77. local Change = 1
  78. local aoeconstant = 10
  79. local maincol = "Pink"
  80. local maincol2 = "White"
  81. local randString = songs[math.random(#songs)]
  82. local circleinthesky = false
  83. Character.Humanoid.Name = "help"
  84. humanoid = Character.help
  85. Instance.new("ForceField",Character).Visible = false
  86.  
  87.  
  88.  
  89.  
  90.  
  91. local RbxUtility = LoadLibrary("RbxUtility")
  92. local Create = RbxUtility.Create
  93.  
  94. humanoid.WalkSpeed = 3
  95. humanoid.JumpPower = 0
  96. humanoid.Animator.Parent = nil
  97. Character.Animate.Parent = nil
  98.  
  99. local newMotor = function(part0, part1, c0, c1)
  100. local w = Create('Motor'){
  101. Parent = part0,
  102. Part0 = part0,
  103. Part1 = part1,
  104. C0 = c0,
  105. C1 = c1,
  106. }
  107. return w
  108. end
  109.  
  110.  
  111. skillcolorscheme = BrickColor.new(maincol).Color
  112.  
  113. local hue = 0
  114.  
  115. spawn(function()
  116. while true do
  117. hue = hue + .0005
  118. if hue >= 1 then hue = 0 end
  119. maincol2 = Color3.fromHSV(hue,1,1)
  120. game["Run Service"].RenderStepped:wait()
  121. end
  122. end)
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. local scrn = Instance.new('ScreenGui', Player.PlayerGui)
  130. function makeframe(par, trans, pos, size, color)
  131. local frame = Instance.new('Frame', par)
  132. frame.BackgroundTransparency = trans
  133. frame.BorderSizePixel = 0
  134. frame.Position = pos
  135. frame.Size = size
  136. frame.BackgroundColor3 = color
  137. return frame
  138. end
  139.  
  140. --framesk1 = makeframe(scrn, .95, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  141.  
  142. function clerp(a, b, t)
  143. return a:lerp(b, t)
  144. end
  145.  
  146. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  147. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  148.  
  149. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  150. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  151. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  152. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  153. RootJoint.C1 = CFrame.new(0, 0, 0)
  154. RootJoint.C0 = CFrame.new(0, 0, 0)
  155. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  156. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  157.  
  158. local rarmc1 = RW.C1
  159. local larmc1 = LW.C1
  160. local rlegc1 = RH.C1
  161. local llegc1 = LH.C1
  162.  
  163. local resetc1 = false
  164.  
  165. function PlayAnimationFromTable(table, speed, bool)
  166. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  167. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  168. RW.C0 = clerp(RW.C0, table[3], speed)
  169. LW.C0 = clerp(LW.C0, table[4], speed)
  170. RH.C0 = clerp(RH.C0, table[5], speed)
  171. LH.C0 = clerp(LH.C0, table[6], speed)
  172. if bool == true then
  173. if resetc1 == false then
  174. resetc1 = true
  175. RootJoint.C1 = RootJoint.C1
  176. Torso.Neck.C1 = Torso.Neck.C1
  177. RW.C1 = rarmc1
  178. LW.C1 = larmc1
  179. RH.C1 = rlegc1
  180. LH.C1 = llegc1
  181. end
  182. end
  183. end
  184.  
  185. ArtificialHB = Create("BindableEvent"){
  186. Parent = script,
  187. Name = "Heartbeat",
  188. }
  189.  
  190. script:WaitForChild("Heartbeat")
  191.  
  192. frame = 1 / 35
  193. tf = 0
  194. allowframeloss = false
  195. tossremainder = false
  196. lastframe = tick()
  197. script.Heartbeat:Fire()
  198.  
  199. game:GetService("RunService").Heartbeat:connect(function(s, p)
  200. tf = tf + s
  201. if tf >= frame then
  202. if allowframeloss then
  203. script.Heartbeat:Fire()
  204. lastframe = tick()
  205. else
  206. for i = 1, math.floor(tf / frame) do
  207. script.Heartbeat:Fire()
  208. end
  209. lastframe = tick()
  210. end
  211. if tossremainder then
  212. tf = 0
  213. else
  214. tf = tf - frame * math.floor(tf / frame)
  215. end
  216. end
  217. end)
  218.  
  219. function swait(num)
  220. if num == 0 or num == nil then
  221. ArtificialHB.Event:wait()
  222. else
  223. for i = 0, num do
  224. ArtificialHB.Event:wait()
  225. end
  226. end
  227. end
  228.  
  229.  
  230.  
  231. local m = Create("Model"){
  232. Parent = Character,
  233. Name = "WeaponModel"
  234. }
  235.  
  236. function RemoveOutlines(part)
  237. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  238. end
  239.  
  240. CFuncs = {
  241. Part = {
  242. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  243. local Part = Create("Part"){
  244. Parent = Parent,
  245. Reflectance = Reflectance,
  246. Transparency = Transparency,
  247. CanCollide = false,
  248. Locked = true,
  249. BrickColor = BrickColor.new(tostring(BColor)),
  250. Name = Name,
  251. Size = Size,
  252. Material = Material,
  253. }
  254. RemoveOutlines(Part)
  255. if Size == Vector3.new() then
  256. Part.Size = Vector3.new(0.2, 0.2, 0.2)
  257. else
  258. Part.Size = Size
  259. end
  260. return Part
  261. end;
  262. };
  263.  
  264. Mesh = {
  265. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  266. local Msh = Create(Mesh){
  267. Parent = Part,
  268. Offset = OffSet,
  269. Scale = Scale,
  270. }
  271. if Mesh == "SpecialMesh" then
  272. Msh.MeshType = MeshType
  273. Msh.MeshId = MeshId
  274. end
  275. return Msh
  276. end;
  277. };
  278.  
  279. Weld = {
  280. Create = function(Parent, Part0, Part1, C0, C1)
  281. local Weld = Create("Weld"){
  282. Parent = Parent,
  283. Part0 = Part0,
  284. Part1 = Part1,
  285. C0 = C0,
  286. C1 = C1,
  287. }
  288. return Weld
  289. end;
  290. };
  291.  
  292. Sound = {
  293. Create = function(id, par, vol, pit, looped)
  294. coroutine.resume(coroutine.create(function()
  295. local S = Create("Sound"){
  296. Volume = vol,
  297. Pitch = pit or 1,
  298. SoundId = "rbxassetid://" .. id,
  299. Parent = par or workspace,
  300. Looped = looped
  301. }
  302. wait()
  303. S:play()
  304. end))
  305. end;
  306. };
  307.  
  308. ParticleEmitter = {
  309. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  310. local Particle = Create("ParticleEmitter"){
  311. Parent = Parent,
  312. Color = ColorSequence.new(Color1, Color2),
  313. LightEmission = LightEmission,
  314. Size = Size,
  315. Texture = Texture,
  316. Transparency = Transparency,
  317. ZOffset = ZOffset,
  318. Acceleration = Accel,
  319. Drag = Drag,
  320. LockedToPart = LockedToPart,
  321. VelocityInheritance = VelocityInheritance,
  322. EmissionDirection = EmissionDirection,
  323. Enabled = Enabled,
  324. Lifetime = LifeTime,
  325. Rate = Rate,
  326. Rotation = Rotation,
  327. RotSpeed = RotSpeed,
  328. Speed = Speed,
  329. VelocitySpread = VelocitySpread,
  330. }
  331. return Particle
  332. end;
  333. };
  334.  
  335. CreateTemplate = {
  336.  
  337. };
  338. }
  339.  
  340. --/v/Don't touch this part. \v\--
  341.  
  342. playlist=Instance.new("Sound", Torso)
  343. playlist.SoundId = "rbxassetid://" ..randString
  344. playlist.Volume = 5
  345. playlist.Looped = false
  346. playlist.Name = "playlist"
  347. playlist:Play()
  348.  
  349. --/^/Don't touch this part. \^\--
  350.  
  351. function RayCast(Position, Direction, Range, Ignore)
  352. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  353. end
  354.  
  355. FindNearestTorso = function(pos)
  356. local list = (game.Workspace:children())
  357. local torso = nil
  358. local dist = 1000
  359. local temp, human, temp2 = nil, nil, nil
  360. for x = 1, #list do
  361. temp2 = list[x]
  362. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  363. temp = temp2:findFirstChild("Torso")
  364. human = temp2:findFirstChild("Humanoid")
  365. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  366. local dohit = true
  367. if dohit == true then
  368. torso = temp
  369. dist = (temp.Position - pos).magnitude
  370. end
  371. end
  372. end
  373. end
  374. return torso, dist
  375. end
  376.  
  377. RootPart.CFrame = RootPart.CFrame * CFrame.new(0,5,0)
  378.  
  379. Harness=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Harness",Vector3.new(0.420000285, 0.490000188, 0.399999768))
  380. HarnessWeld=CFuncs.Weld.Create(m,Character["Torso"],Harness,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0500001907, -0.0350001119, -0.0871353149, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  381. FloatField2=CFuncs.Part.Create(m,Enum.Material.Neon,0,.5,"Lily white","FloatField2",Vector3.new(5, 8, 5))
  382. FloatField2Weld=CFuncs.Weld.Create(m,Harness,FloatField2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.58035278e-05, 3.50000337e-05, 6.10351563e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1))
  383. flotemesh=CFuncs.Mesh.Create("SpecialMesh",FloatField2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  384. spinny=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny", Vector3.new())
  385. spinny.Anchored=true
  386. spinny.CanCollide=false
  387.  
  388.  
  389. transp = .5
  390. spawn(function()
  391. while true do
  392. transp = transp + .001
  393. FloatField2.Transparency = transp
  394. swait()
  395. if transp >= 1 then
  396. transp = .5
  397. end
  398. end
  399. end)
  400.  
  401.  
  402.  
  403. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  404. if hit.Parent == nil then
  405. return
  406. end
  407. local h = hit.Parent:FindFirstChild("Humanoid")
  408. for _, v in pairs(hit.Parent:children()) do
  409. if v:IsA("Humanoid") then
  410. h = v
  411. end
  412. end
  413. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  414. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  415. if hit.Parent.DebounceHit.Value == true then
  416. return
  417. end
  418. end
  419. local c = Create("ObjectValue"){
  420. Name = "creator",
  421. Value = game:service("Players").LocalPlayer,
  422. Parent = h,
  423. }
  424. game:GetService("Debris"):AddItem(c, .5)
  425. if HitSound ~= nil and HitPitch ~= nil then
  426. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  427. end
  428. local Damage = math.random(minim, maxim)
  429. local blocked = false
  430. local block = hit.Parent:findFirstChild("Block")
  431. if block ~= nil then
  432. if block.className == "IntValue" then
  433. if block.Value > 0 then
  434. blocked = true
  435. block.Value = block.Value - 1
  436. print(block.Value)
  437. end
  438. end
  439. end
  440. if blocked == false then
  441. h.Health = h.Health - Damage
  442. --ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  443. else
  444. h.Health = h.Health - (Damage / 2)
  445. --ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  446. end
  447. if Type == "Knockdown" then
  448. local hum = hit.Parent.Humanoid
  449. hum.PlatformStand = true
  450. coroutine.resume(coroutine.create(function(HHumanoid)
  451. swait(1)
  452. HHumanoid.PlatformStand = false
  453. end), hum)
  454. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  455. local bodvol = Create("BodyVelocity"){
  456. velocity = angle * knockback,
  457. P = 5000,
  458. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  459. Parent = hit,
  460. }
  461. local rl = Create("BodyAngularVelocity"){
  462. P = 3000,
  463. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  464. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  465. Parent = hit,
  466. }
  467. game:GetService("Debris"):AddItem(bodvol, .5)
  468. game:GetService("Debris"):AddItem(rl, .5)
  469. elseif Type == "Normal" then
  470. local vp = Create("BodyVelocity"){
  471. P = 10,
  472. maxForce = Vector3.new(math.huge, 0, math.huge),
  473. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  474. }
  475. print(hit.Parent)
  476. if knockback > 0 then
  477. vp.Parent = hit.Parent.Torso
  478. end
  479. local hum = hit.Parent.Humanoid
  480. hum.PlatformStand = true
  481. local TotalMass = 0
  482. for _, part in pairs(hit.Parent:GetChildren()) do
  483. if part:IsA("Part") then
  484. TotalMass = TotalMass + part:GetMass()
  485. end
  486. end
  487.  
  488.  
  489.  
  490. local ForceOfGravity = -197 * TotalMass
  491. local floatybits = Instance.new("BodyForce", hit.Parent.Torso)
  492. floatybits.force = Vector3.new(0, -ForceOfGravity, 0)
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499. spawn(function()
  500. local spinny2=CFuncs.Part.Create(Torso, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "spinny2", Vector3.new())
  501. spinny2.Anchored=true
  502. spinny2.CanCollide=false
  503. for i = 0, 2, .001 do
  504. local alg = math.floor(playlist.PlaybackLoudness)/500
  505. local alg2 = math.floor(playlist.PlaybackLoudness)/80
  506. local efekt2=CFuncs.Part.Create(hit.Parent.Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3))
  507. efekt2.Anchored=true
  508. efekt2.CanCollide=false
  509. spinny2.CFrame = spinny2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
  510. spinny2.Position = hit.Parent.Torso.Position
  511. efekt2.CFrame=spinny2.CFrame*CFrame.new(aoeconstant-5,0,0)
  512. game:GetService("Debris"):AddItem(efekt2, .7)
  513. swait()
  514. end
  515. end)
  516.  
  517. local rl = Create("BodyAngularVelocity"){
  518. P = 500,
  519. maxTorque = Vector3.new(10, 10, 10),
  520. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  521. Parent = hit,
  522. }
  523. game:GetService("Debris"):AddItem(rl, 10)
  524. game:GetService("Debris"):AddItem(floatybits, 10)
  525. game:GetService("Debris"):AddItem(vp, .5)
  526.  
  527. elseif Type == "Up" then
  528. local bodyVelocity = Create("BodyVelocity"){
  529. velocity = Vector3.new(0, 20, 0),
  530. P = 5000,
  531. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  532. Parent = hit,
  533. }
  534. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  535. elseif Type == "DarkUp" then
  536. coroutine.resume(coroutine.create(function()
  537. for i = 0, 1, 0.1 do
  538. swait()
  539. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  540. end
  541. end))
  542. local bodyVelocity = Create("BodyVelocity"){
  543. velocity = Vector3.new(0, 20, 0),
  544. P = 5000,
  545. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  546. Parent = hit,
  547. }
  548. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  549. elseif Type == "Snare" then
  550. local bp = Create("BodyPosition"){
  551. P = 2000,
  552. D = 100,
  553. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  554. position = hit.Parent.Torso.Position,
  555. Parent = hit.Parent.Torso,
  556. }
  557. game:GetService("Debris"):AddItem(bp, 1)
  558. elseif Type == "Freeze" then
  559. local BodPos = Create("BodyPosition"){
  560. P = 50000,
  561. D = 1000,
  562. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  563. position = hit.Parent.Torso.Position,
  564. Parent = hit.Parent.Torso,
  565. }
  566. local BodGy = Create("BodyGyro") {
  567. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  568. P = 20e+003,
  569. Parent = hit.Parent.Torso,
  570. cf = hit.Parent.Torso.CFrame,
  571. }
  572. hit.Parent.Torso.Anchored = true
  573. coroutine.resume(coroutine.create(function(Part)
  574. swait(1.5)
  575. Part.Anchored = false
  576. end), hit.Parent.Torso)
  577. game:GetService("Debris"):AddItem(BodPos, 3)
  578. game:GetService("Debris"):AddItem(BodGy, 3)
  579. end
  580. local debounce = Create("BoolValue"){
  581. Name = "DebounceHit",
  582. Parent = hit.Parent,
  583. Value = true,
  584. }
  585. game:GetService("Debris"):AddItem(debounce, Delay)
  586. c = Create("ObjectValue"){
  587. Name = "creator",
  588. Value = Player,
  589. Parent = h,
  590. }
  591. game:GetService("Debris"):AddItem(c, .5)
  592. end
  593. end
  594.  
  595. function ShowDamage(Pos, Text, Time, Color)
  596. local Rate = (1 / 60)
  597. local Pos = (Pos or Vector3.new(0, 0, 0))
  598. local Text = (Text or "")
  599. local Time = (Time or 2)
  600. local Color = (Color or Color3.new(1, 0, 1))
  601. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  602. EffectPart.Anchored = true
  603. local BillboardGui = Create("BillboardGui"){
  604. Size = UDim2.new(3, 0, 3, 0),
  605. Adornee = EffectPart,
  606. Parent = EffectPart,
  607. }
  608. local TextLabel = Create("TextLabel"){
  609. BackgroundTransparency = 1,
  610. Size = UDim2.new(1, 0, 1, 0),
  611. Text = Text,
  612. Font = "SourceSansLight",
  613. TextColor3 = Color,
  614. TextScaled = true,
  615. Parent = BillboardGui,
  616. }
  617. game.Debris:AddItem(EffectPart, (Time))
  618. EffectPart.Parent = game:GetService("Workspace")
  619. delay(0, function()
  620. local Frames = (Time / Rate)
  621. for Frame = 1, Frames do
  622. wait(Rate)
  623. local Percent = (Frame / Frames)
  624. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  625. TextLabel.TextTransparency = Percent
  626. end
  627. if EffectPart and EffectPart.Parent then
  628. EffectPart:Destroy()
  629. end
  630. end)
  631. end
  632.  
  633. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  634. for _, c in pairs(workspace:children()) do
  635. local hum = c:findFirstChild("Humanoid")
  636. if hum ~= nil then
  637. local head = c:findFirstChild("Torso")
  638. if head ~= nil then
  639. local targ = head.Position - Part.Position
  640. local mag = targ.magnitude
  641. if mag <= Magnitude and c.Name ~= Player.Name then
  642. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 10, "rbxassetid://" .. HitSound, HitPitch)
  643. end
  644. end
  645. end
  646. end
  647. end
  648.  
  649. EffectModel = Create("Model"){
  650. Parent = Character,
  651. Name = "EffectModel",
  652. }
  653.  
  654. Effects = {
  655. Block = {
  656. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
  657. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  658. prt.Anchored = true
  659. prt.CFrame = cframe
  660. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  661. game:GetService("Debris"):AddItem(prt, 10)
  662. if Type == 1 or Type == nil then
  663. table.insert(Effects, {
  664. prt,
  665. "Block1",
  666. delay,
  667. x3,
  668. y3,
  669. z3,
  670. msh
  671. })
  672. elseif Type == 2 then
  673. table.insert(Effects, {
  674. prt,
  675. "Block2",
  676. delay,
  677. x3,
  678. y3,
  679. z3,
  680. msh
  681. })
  682. elseif Type == 3 then
  683. table.insert(Effects, {
  684. prt,
  685. "Block3",
  686. delay,
  687. x3,
  688. y3,
  689. z3,
  690. msh,
  691. Part
  692. })
  693. elseif Type == 4 then
  694. table.insert(Effects, {
  695. prt,
  696. "Block2Fire",
  697. delay,
  698. x3,
  699. y3,
  700. z3,
  701. msh
  702. })
  703. end
  704. end
  705. };
  706.  
  707. Sphere = {
  708. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
  709. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  710. prt.Anchored = true
  711. prt.CFrame = cframe
  712. if parent == nil then
  713. prt.Parent = workspace
  714. else
  715. prt.Parent = parent
  716. end
  717. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  718. game:GetService("Debris"):AddItem(prt, 10)
  719. table.insert(Effects, {
  720. prt,
  721. "Cylinder",
  722. delay,
  723. x3,
  724. y3,
  725. z3,
  726. msh
  727. })
  728. end
  729. };
  730.  
  731. Blood = {
  732. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  733. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  734. prt.Anchored = true
  735. prt.CFrame = cframe
  736. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  737. game:GetService("Debris"):AddItem(prt, 10)
  738. table.insert(Effects, {
  739. prt,
  740. "Blood",
  741. delay,
  742. x3,
  743. y3,
  744. z3,
  745. msh
  746. })
  747. end
  748. };
  749.  
  750. Blast = {
  751. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
  752. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  753. prt.Anchored = true
  754. prt.CFrame = cframe
  755. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  756. game:GetService("Debris"):AddItem(prt, 10)
  757. table.insert(Effects, {
  758. prt,
  759. "Block4",
  760. delay,
  761. x3,
  762. y3,
  763. z3,
  764. msh,
  765. Part
  766. })
  767. end
  768. };
  769.  
  770. Ring = {
  771. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  772. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  773. prt.Anchored = true
  774. prt.CFrame = cframe
  775. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  776. game:GetService("Debris"):AddItem(prt, 10)
  777. table.insert(Effects, {
  778. prt,
  779. "Cylinder",
  780. delay,
  781. x3,
  782. y3,
  783. z3,
  784. msh
  785. })
  786. end
  787. };
  788.  
  789. Cylinder = {
  790. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  791. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  792. prt.Anchored = true
  793. prt.CFrame = cframe
  794. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  795. game:GetService("Debris"):AddItem(prt, 10)
  796. table.insert(Effects, {
  797. prt,
  798. "Cylinder",
  799. delay,
  800. x3,
  801. y3,
  802. z3,
  803. msh
  804. })
  805. end
  806. };
  807.  
  808. Head = {
  809. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  810. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  811. prt.Anchored = true
  812. prt.CFrame = cframe
  813. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  814. game:GetService("Debris"):AddItem(prt, 10)
  815. table.insert(Effects, {
  816. prt,
  817. "Cylinder",
  818. delay,
  819. x3,
  820. y3,
  821. z3,
  822. msh
  823. })
  824. end
  825. };
  826.  
  827. Wave = {
  828. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  829. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  830. prt.Anchored = true
  831. prt.CFrame = cframe
  832. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  833. game:GetService("Debris"):AddItem(prt, 10)
  834. table.insert(Effects, {
  835. prt,
  836. "Cylinder",
  837. delay,
  838. x3,
  839. y3,
  840. z3,
  841. msh
  842. })
  843. end
  844. };
  845.  
  846. Break = {
  847. Create = function(brickcolor, cframe, x1, y1, z1)
  848. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  849. prt.Anchored = true
  850. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  851. game:GetService("Debris"):AddItem(prt, 10)
  852. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  853. local num = math.random(10, 50) / 1000
  854. table.insert(Effects, {
  855. prt,
  856. "Shatter",
  857. num,
  858. prt.CFrame,
  859. math.random() - math.random(),
  860. 0,
  861. math.random(50, 100) / 100
  862. })
  863. end
  864. };
  865.  
  866. Elec = {
  867. Create = function(brickcolor, cff, x, y, z)
  868. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  869. prt.Anchored = true
  870. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  871. prt.CFrame = CFrame.new(prt.Position)
  872. game:GetService("Debris"):AddItem(prt, 10)
  873. xval = math.random() / 9
  874. yval = math.random() / 9
  875. zval = math.random() / 9
  876. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  877. eul1 = math.random(-50, 50)
  878. eul2 = math.random(-50, 50)
  879. eul3 = math.random(-50, 50)
  880. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  881. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  882. table.insert(Effects, {
  883. prt,
  884. "Elec",
  885. .05,
  886. x,
  887. y,
  888. z,
  889. xval,
  890. yval,
  891. zval,
  892. msh,
  893. euld,
  894. euld2
  895. })
  896. end
  897. };
  898.  
  899. Elec2 = {
  900. Create = function(brickcolor, cff, x, y, z)
  901. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
  902. prt.Anchored = true
  903. prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
  904. prt.CFrame = CFrame.new(prt.Position)
  905. game:GetService("Debris"):AddItem(prt, 10)
  906. xval = math.random() / 7
  907. yval = math.random() / 7
  908. zval = math.random() / 7
  909. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  910. eul1 = math.random(-50, 50)
  911. eul2 = math.random(-50, 50)
  912. eul3 = math.random(-50, 50)
  913. euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
  914. euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
  915. table.insert(Effects, {
  916. prt,
  917. "Elec",
  918. .1,
  919. x,
  920. y,
  921. z,
  922. xval,
  923. yval,
  924. zval,
  925. msh,
  926. euld,
  927. euld2
  928. })
  929. end
  930. };
  931.  
  932. Clone = {
  933. Create = function()
  934. for _, v in pairs(Torso.Parent:children()) do
  935. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  936. local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
  937. c.Anchored = true
  938. c.CFrame = v.CFrame
  939. game:GetService("Debris"):AddItem(c, 5)
  940. local cmsh = nil
  941. if v.Name == "Head" then
  942. cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
  943. else
  944. cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  945. end
  946. table.insert(Effects, {
  947. c,
  948. "Cylinder",
  949. 0.05,
  950. 0.1,
  951. 0.1,
  952. 0.1,
  953. cmsh
  954. })
  955. end
  956. end
  957. end
  958. };
  959.  
  960. EffectTemplate = {
  961.  
  962. };
  963. }
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971. Mouse.Button1Down:connect(function()
  972. if Mouse ~= nil then
  973. if Mouse.Target ~= nil then
  974. part = Mouse.Target
  975. bp = Instance.new("BodyPosition",part)
  976. bp.MaxForce = Vector3.new(5000,5000,5000)
  977. bp.Position = part.Position
  978. dwn = true
  979. end
  980. while dwn == true do
  981. wait()
  982. bp.Position = Mouse.hit.p
  983. if part then
  984. if part.Parent:FindFirstChildOfClass("Humanoid") then
  985. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  986. end
  987. end
  988. end
  989. end
  990. end)
  991. Mouse.Button1Up:connect(function()
  992. dwn = false
  993. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  994. if bp then bp:Destroy() end
  995. end)
  996.  
  997.  
  998. Mouse.KeyDown:connect(function(k)
  999. k = k:lower()
  1000. if k == 'm' then
  1001. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol2).Color)
  1002. playlist:Destroy()
  1003. playlist=Instance.new("Sound", Torso)
  1004. playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)]
  1005. playlist.Volume = 5
  1006. playlist.Looped = false
  1007. playlist.Name = "playlist"
  1008. playlist:Play()
  1009. elseif k == 'n' and circleinthesky == false then
  1010. circleinthesky = true
  1011. elseif k == 'n' and circleinthesky == true then
  1012. circleinthesky = false
  1013. end
  1014. end)
  1015.  
  1016.  
  1017.  
  1018. while true do
  1019. swait()
  1020. for i, v in pairs(Character:GetChildren()) do
  1021. if v:IsA("Part") then
  1022. v.Material = "SmoothPlastic"
  1023. elseif v:IsA("Accessory") then
  1024. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1025. end
  1026. end
  1027. for i, v in pairs(Character:GetChildren()) do
  1028. if v:IsA'Model' then
  1029. for _, c in pairs(v:GetChildren()) do
  1030. if c:IsA'Part' then
  1031. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1032. end
  1033. end
  1034. end
  1035. end
  1036. if playlist.IsPlaying == false then
  1037. ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol2).Color)
  1038. playlist:Destroy()
  1039. playlist=Instance.new("Sound", Torso)
  1040. playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)]
  1041. playlist.Volume = 5
  1042. playlist.Looped = false
  1043. playlist.Name = "playlist"
  1044. playlist:Play()
  1045. end
  1046. TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1047. Velocity = RootPart.Velocity.y
  1048. Sine = Sine + Change
  1049. local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1050. if RootPart.Velocity.y > 1 and hit == nil then
  1051. Anim = "Jump"
  1052. if Attack == false then
  1053. Change = 1
  1054. PlayAnimationFromTable({
  1055. CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
  1056. CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0),
  1057. CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1058. CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1059. CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
  1060. CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
  1061. }, .3, false)
  1062. MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
  1063. end
  1064. elseif RootPart.Velocity.y < -1 and hit == nil then
  1065. Anim = "Fall"
  1066. if Attack == false then
  1067. Change = 1
  1068. PlayAnimationFromTable({
  1069. CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
  1070. CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0),
  1071. CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1072. CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1073. CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
  1074. CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
  1075. }, .3, false)
  1076. MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
  1077. end
  1078. elseif TorsoVelocity < 1 and hit ~= nil then
  1079. Anim = "Idle"
  1080. if Attack == false then
  1081. Change = 1
  1082. PlayAnimationFromTable({
  1083. CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
  1084. CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .1 * math.cos(Sine/35), 0, 0),
  1085. CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1086. CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1087. CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
  1088. CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
  1089. }, .3, false)
  1090. MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
  1091. end
  1092. elseif TorsoVelocity > 2 and hit ~= nil then
  1093. Anim = "Walk"
  1094. if Attack == false then
  1095. PlayAnimationFromTable({
  1096. CFrame.new(0, 0, -0, 1, 0, -0, 0, 0.342019022, -0.939693093, 0, 0.939693093, 0.342018992) * CFrame.new(0, 0, 0 + .5 * math.cos(Sine/35)) * CFrame.Angles(.3 + .005 * math.cos(Sine/35), 0, 0),
  1097. CFrame.new(0, 1.4785918, -0.211434767, 1, 0, -0, 0, 0.98480767, 0.173649639, -0, -0.173649669, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .05 * math.cos(Sine/35), 0, 0),
  1098. CFrame.new(0.939720154, 1.23436928, 0.449271917, 0.866025388, 0.500000238, 0, 0.469846785, -0.81379807, 0.342019022, 0.17100957, -0.296197116, -0.939693093) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1099. CFrame.new(-0.804059327, 1.1624434, 0.431921601, 0.866025269, -0.500000238, -1.92716968e-07, -0.492404282, -0.852868617, 0.173646882, -0.0868236423, -0.150382489, -0.984808087) * CFrame.new(0, 0, 0 - .01 * math.cos(Sine/35)) * CFrame.Angles(0, 0, 0),
  1100. CFrame.new(0.662806809, -1.42266583, -0.425317377, 0.999114633, -0.0274195503, -0.0319078304, 0.0249254964, 0.996788979, -0.0760965645, 0.0338919051, 0.0752338469, 0.996589839) * CFrame.new(0, 0, 0 - .1 * math.cos(Sine/40)) * CFrame.Angles(0 + .1 * math.cos(Sine/40), 0, 0),
  1101. CFrame.new(-0.358216971, -1.62964225, 0.259462059, 0.999541879, -0.0301539842, 0.0025981334, 0.0127545623, 0.497520745, 0.867358446, -0.027446935, -0.866927922, 0.497677386) * CFrame.new(0, 0, 0 - .2 * math.cos(Sine/35)) * CFrame.Angles(0 + .2 * math.cos(Sine/35), 0, 0),
  1102. }, .3, false)
  1103. MagnitudeDamage(Torso, aoeconstant, 0, 0, 0, "Normal", " ", .8)
  1104. end
  1105. end
  1106. if #Effects > 0 then
  1107. for e = 1, #Effects do
  1108. if Effects[e] ~= nil then
  1109. local Thing = Effects[e]
  1110. if Thing ~= nil then
  1111. local Part = Thing[1]
  1112. local Mode = Thing[2]
  1113. local Delay = Thing[3]
  1114. local IncX = Thing[4]
  1115. local IncY = Thing[5]
  1116. if Thing[1].Transparency <= 1 then
  1117. if Thing[2] == "Block1" then
  1118. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1119. Mesh = Thing[7]
  1120. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1121. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1122. elseif Thing[2] == "Ice" then
  1123. if Thing[6] <= Thing[5] then
  1124. Thing[6] = Thing[6] + .05
  1125. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
  1126. else
  1127. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1128. end
  1129. elseif Thing[2] == "Shatter" then
  1130. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1131. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1132. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1133. Thing[6] = Thing[6] + Thing[5]
  1134. elseif Thing[2] == "Block2" then
  1135. Thing[1].CFrame = Thing[1].CFrame
  1136. Mesh = Thing[7]
  1137. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1138. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1139. elseif Thing[2] == "Block3" then
  1140. Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1141. Mesh = Thing[7]
  1142. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1143. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1144. elseif Thing[2] == "Block4" then
  1145. Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
  1146. Mesh = Thing[7]
  1147. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1148. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1149. elseif Thing[2] == "Block2Fire" then
  1150. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1151. Mesh = Thing[7]
  1152. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1153. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1154. if Thing[1].Transparency >= .3 then
  1155. Thing[1].BrickColor = BrickColor.new("Bright red")
  1156. else
  1157. Thing[1].BrickColor = BrickColor.new("Bright yellow")
  1158. end
  1159. elseif Thing[2] == "Cylinder" then
  1160. Mesh = Thing[7]
  1161. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1162. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1163. elseif Thing[2] == "Blood" then
  1164. Mesh = Thing[7]
  1165. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
  1166. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1167. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1168. elseif Thing[2] == "Elec" then
  1169. Mesh = Thing[10]
  1170. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1171. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1172. Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
  1173. Thing[1].Rotation = Vector3.new(0, 0, 0)
  1174. elseif Thing[2] == "Disappear" then
  1175. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1176. end
  1177. else
  1178. Part.Parent = nil
  1179. table.remove(Effects, e)
  1180. end
  1181. end
  1182. end
  1183. end
  1184. end
  1185. local alg = math.floor(playlist.PlaybackLoudness)/500
  1186. local alg2 = math.floor(playlist.PlaybackLoudness)/80
  1187.  
  1188. if circleinthesky == false then
  1189. FloatField2.BrickColor = BrickColor.new(maincol2)
  1190. spinny.Position = Torso.Position
  1191. spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
  1192. efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(.05,alg2,.3))
  1193. efekt.Anchored=true
  1194. efekt.CanCollide=false
  1195. game:GetService("Debris"):AddItem(efekt, .5)
  1196. --ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color)
  1197. efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,0,0)
  1198.  
  1199. elseif circleinthesky == true then
  1200.  
  1201. FloatField2.BrickColor = BrickColor.new(maincol2)
  1202. spinny.Position = Torso.Position
  1203. spinny.CFrame = spinny.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0)
  1204. efekt=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(1+alg2,.05,.3))
  1205. efekt.Anchored=true
  1206. efekt.CanCollide=false
  1207. efekt2=CFuncs.Part.Create(Torso, "Neon", 0, .3, BrickColor.new(maincol2), "ref", Vector3.new(alg2,.05,.3))
  1208. efekt2.Anchored=true
  1209. efekt2.CanCollide=false
  1210. game:GetService("Debris"):AddItem(efekt, 2)
  1211. game:GetService("Debris"):AddItem(efekt2, 2)
  1212. --ShowDamage((efekt.CFrame * CFrame.new(0, 0, (Torso.Size.Z / 102)).p + Vector3.new(0, 0, 0)), ".", 1, BrickColor.new(maincol2).Color)
  1213. efekt.CFrame=spinny.CFrame*CFrame.new(aoeconstant,20,0)
  1214. efekt2.CFrame=spinny.CFrame*CFrame.new(aoeconstant-4,10,0)
  1215. end
  1216. humanoid.Health = math.huge
  1217. soundbork(workspace)
  1218. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement