Advertisement
Guest User

Untitled

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