Advertisement
vallentganteng

relax

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