Znimator

Untitled

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