Advertisement
zXzGamePROzXz

SezHu’s Infectious Visualizer

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