Advertisement
PasterXIV

Untitled

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