McSans

Try

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