carlosname

Untitled

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