Advertisement
samuelrichter66

even my momma thinks my mind is gone

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