JasonLion

Some visualer (FE?)

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