hawoody

AAATest

Jul 27th, 2020
1,177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 71.64 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4.     print("FE Compatibility code by Mokiros")
  5.     script.Parent = Player.Character
  6.  
  7.     --RemoteEvent for communicating
  8.     local Event = Instance.new("RemoteEvent")
  9.     Event.Name = "UserInput_Event"
  10.  
  11.     --Fake event to make stuff like Mouse.KeyDown work
  12.     local function fakeEvent()
  13.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14.         t.connect = t.Connect
  15.         return t
  16.     end
  17.  
  18.     --Creating fake input objects with fake variables
  19.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23.     end}
  24.     --Merged 2 functions into one by checking amount of arguments
  25.     CAS.UnbindAction = CAS.BindAction
  26.  
  27.     --This function will trigger the events that have been :Connect()'ed
  28.     local function te(self,ev,...)
  29.         local t = m[ev]
  30.         if t and t._fakeEvent and t.Function then
  31.             t.Function(...)
  32.         end
  33.     end
  34.     m.TrigEvent = te
  35.     UIS.TrigEvent = te
  36.  
  37.     Event.OnServerEvent:Connect(function(plr,io)
  38.         if plr~=Player then return end
  39.         if io.isMouse then
  40.             m.Target = io.Target
  41.             m.Hit = io.Hit
  42.         else
  43.             local b = io.UserInputState == Enum.UserInputState.Begin
  44.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46.             end
  47.             for _,t in pairs(CAS.Actions) do
  48.                 for _,k in pairs(t.Keys) do
  49.                     if k==io.KeyCode then
  50.                         t.Function(t.Name,io.UserInputState,io)
  51.                     end
  52.                 end
  53.             end
  54.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56.         end
  57.     end)
  58.     Event.Parent = NLS([==[
  59.     local Player = game:GetService("Players").LocalPlayer
  60.     local Event = script:WaitForChild("UserInput_Event")
  61.  
  62.     local UIS = game:GetService("UserInputService")
  63.     local input = function(io,a)
  64.         if a then return end
  65.         --Since InputObject is a client-side instance, we create and pass table instead
  66.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67.     end
  68.     UIS.InputBegan:Connect(input)
  69.     UIS.InputEnded:Connect(input)
  70.  
  71.     local Mouse = Player:GetMouse()
  72.     local h,t
  73.     --Give the server mouse data 30 times every second, but only if the values changed
  74.     --If player is not moving their mouse, client won't fire events
  75.     while wait(1/30) do
  76.         if h~=Mouse.Hit or t~=Mouse.Target then
  77.             h,t=Mouse.Hit,Mouse.Target
  78.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  79.         end
  80.     end]==],Player.Character)
  81.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. ---------------------------
  84. --/                     \--
  85. -- Script By: 123jl123   --
  86. --\                     /--
  87. ---------------------------
  88. --local remote = NS ([=[
  89.  
  90. local TweenService = game:GetService("TweenService")
  91. local RbxUtility = LoadLibrary("RbxUtility")
  92. local Create = RbxUtility.Create
  93.  
  94.  
  95.  
  96.  
  97. local Player = owner
  98. if  Player.Character == nil then
  99. while Player.Character == nil do wait()
  100.    
  101. end end
  102.  
  103. ZTfade=false
  104. ZT=false
  105.  
  106.  
  107. local zombiemode="Wander"
  108. local zombietarget=nil
  109. Character= Player.Character
  110. Torso = Character.Torso
  111. Head = Character.Head
  112. Humanoid = Character.Humanoid
  113. LeftArm = Character["Left Arm"]
  114. LeftLeg = Character["Left Leg"]
  115. RightArm = Character["Right Arm"]
  116. RightLeg = Character["Right Leg"]
  117. RootPart = Character["HumanoidRootPart"]
  118. local Anim="Idle"
  119. local inairvel=0
  120. local WalkAnimStep = 0
  121. local sine = 0
  122. local change = 1
  123. Animstep = 0
  124. WalkAnimMove=0.1
  125. Combo = 0
  126. local attack=false
  127. local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
  128. local Neck = Character.Torso:FindFirstChild("Neck")
  129.  
  130. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  131. local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  132.  
  133. Effects=Instance.new("Folder",Character)
  134. Effects.Name="Effects"
  135. it=Instance.new
  136. vt=Vector3.new
  137. cf=CFrame.new
  138. euler=CFrame.fromEulerAnglesXYZ
  139. angles=CFrame.Angles
  140. local cn = CFrame.new
  141. mr=math.rad
  142. mememode=false
  143. IT = Instance.new
  144. CF = CFrame.new
  145. VT = Vector3.new
  146. RAD = math.rad
  147. C3 = Color3.new
  148. UD2 = UDim2.new
  149. BRICKC = BrickColor.new
  150. ANGLES = CFrame.Angles
  151. EULER = CFrame.fromEulerAnglesXYZ
  152. COS = math.cos
  153. ACOS = math.acos
  154. SIN = math.sin
  155. ASIN = math.asin
  156. ABS = math.abs
  157. MRANDOM = math.random
  158. FLOOR = math.floor
  159.  
  160. local lastid= "http://www.roblox.com/asset/?id=2784781345"
  161. local s2=it("Sound",Torso)
  162. local CurId = 1
  163. s2.EmitterSize = 30
  164. local s2c=s2:Clone()
  165. local visn = 1000
  166. playsong = true
  167.  
  168. s2.SoundId = lastid
  169.     if playsong == true then
  170.     s2:play()      
  171.     elseif playsong == false then
  172.     s2:stop()          
  173.     end
  174. lastsongpos= 0
  175.  
  176. crosshair = Instance.new("BillboardGui",Character)
  177. crosshair.Size = UDim2.new(10,0,10,0)
  178. crosshair.Enabled = false
  179. imgl = Instance.new("ImageLabel",crosshair)
  180. imgl.Position = UDim2.new(0,0,0,0)
  181. imgl.Size = UDim2.new(1,0,1,0)
  182. imgl.Image = "rbxassetid://578065407"
  183. imgl.BackgroundTransparency = 1
  184. imgl.ImageTransparency = .7
  185. imgl.ImageColor3 = Color3.new(1,1,1)
  186.     crosshair.StudsOffset = Vector3.new(0,0,-1)
  187.  
  188. --//=================================\\
  189. --||          LOCAL IDS
  190. --\\=================================//
  191.  
  192. local GROWL = 1544355717
  193. local ROAR = 528589382
  194. local ECHOBLAST = 376976397
  195. local CAST = 459523898
  196. local ALCHEMY = 424195979
  197. local BUILDUP = 698824317
  198. local BIGBUILDUP = 874376217
  199. local IMPACT = 231917744
  200. local LARGE_EXPLOSION = 168513088
  201. local TURNUP = 299058146
  202.  
  203. if Character:FindFirstChild("Animate")then
  204.     Character.Animate:Destroy()
  205. end
  206.  
  207. function RemoveOutlines(part)
  208.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  209. end
  210.  
  211.  
  212.    
  213.  
  214.     CFuncs = {
  215. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  216.    
  217.     local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  218.     RemoveOutlines(Part)
  219.     return Part
  220. end
  221. }
  222. ,
  223. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  224.    
  225.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  226.     if Mesh == "SpecialMesh" then
  227.         Msh.MeshType = MeshType
  228.         Msh.MeshId = MeshId
  229.     end
  230.     return Msh
  231. end
  232. }
  233. ,
  234. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  235.    
  236.     local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  237.     if Mesh == "SpecialMesh" then
  238.         Msh.MeshType = MeshType
  239.         Msh.MeshId = MeshId
  240.     end
  241.     return Msh
  242. end
  243. }
  244. ,
  245. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  246.    
  247.     local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  248.     return Weld
  249. end
  250. }
  251. ,
  252. Sound = {Create = function(id, par, vol, pit)
  253.    
  254.     coroutine.resume(coroutine.create(function()
  255.        
  256.         local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId  = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  257.         wait()
  258.         S:play()
  259.         game:GetService("Debris"):AddItem(S, 6)
  260.     end
  261. ))
  262. end
  263. }
  264. ,
  265. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  266.    
  267.     local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  268.     return fp
  269. end
  270. }
  271. }
  272.  
  273.  
  274.  
  275.  
  276.  
  277.     coroutine.resume(coroutine.create(function()
  278.         if Head:FindFirstChildOfClass("Decal") then
  279.             local face = Head:FindFirstChildOfClass("Decal")
  280.         --  face:Destroy()
  281.         end
  282.        
  283.     end))
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.     for i, v in pairs(Character:GetChildren()) do
  292.         if v:IsA("Accessory") then
  293.         --  v:Destroy()
  294.         end
  295.     end
  296.  
  297.  
  298. ---------------
  299. --[Functions]--
  300. ---------------
  301. so = function(id, par, vol, pit)
  302.  
  303. CFuncs.Sound.Create(id, par, vol, pit)
  304.  
  305.  
  306. end
  307.  
  308. function weld(parent,part0,part1,c0)
  309. local weld=it("Weld")
  310. weld.Parent=parent
  311. weld.Part0=part0
  312. weld.Part1=part1
  313. weld.C0=c0
  314. return weld
  315. end
  316.  
  317. rayCast = function(Pos, Dir, Max, Ignore)
  318.  
  319.   return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  320. end
  321.  
  322. function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  323. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  324. local outorin = Enum.EasingDirection[outorin2]
  325.  
  326.  
  327. local dahspeed=1
  328. if attack == true and mememode == true then
  329.     dahspeed=5
  330. end
  331.  
  332. if SPart.Name=="Bullet" then
  333. dahspeed=1 
  334. end
  335.  
  336. local tweeningInformation = TweenInfo.new(
  337.     AnimTime/dahspeed, 
  338.     MoveStyle,
  339.     outorin,
  340.     0,
  341.     false,
  342.     0
  343. )
  344. local MoveCF = CFr
  345. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  346. tweenanim:Play()
  347. end
  348.  
  349. function GatherAllInstances(Parent,ig)
  350.     local Instances = {}
  351.     local Ignore=nil
  352. if  ig ~= nil then
  353. Ignore = ig
  354. end
  355.    
  356.     local function GatherInstances(Parent,Ignore)
  357.         for i, v in pairs(Parent:GetChildren()) do
  358.            
  359.             if v ~= Ignore then
  360.                 GatherInstances(v,Ignore)
  361.             table.insert(Instances, v) end
  362.         end
  363.     end
  364.     GatherInstances(Parent,Ignore)
  365.     return Instances
  366. end
  367.  
  368. function WeldAllTo(Part1,Part2,Extra)
  369.    
  370. local EXCF = Part2.CFrame * Extra  
  371.    
  372. for i, v3 in pairs(GatherAllInstances(Part2)) do
  373.     if v3:isA("BasePart") then
  374.        
  375.        
  376. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  377.  
  378.    
  379.                     v3.Anchored=false
  380.                     --v3.Transparency=0
  381.                     v3.CanCollide=false
  382.                    
  383. v3.Parent = Part1                  
  384.                    
  385.                     end
  386. end
  387.  
  388.  
  389. Part2:Destroy()
  390.  
  391. end
  392. local SToneTexture = Create("Texture")({
  393.    
  394.    
  395.     Texture = "http://www.roblox.com/asset/?id=1693385655",
  396.     Color3 = Color3.new(163/255, 162/255, 165/255),
  397.    
  398. })
  399.  
  400. function AddStoneTexture(part)
  401.     coroutine.resume(coroutine.create(function()
  402.     for i = 0,6,1 do
  403. local Tx = SToneTexture:Clone()
  404. Tx.Face = i
  405. Tx.Parent=part
  406. end
  407.     end))
  408. end
  409.  
  410. New = function(Object, Parent, Name, Data)
  411.     local Object = Instance.new(Object)
  412.     for Index, Value in pairs(Data or {}) do
  413.         Object[Index] = Value
  414.     end
  415.     Object.Parent = Parent
  416.     Object.Name = Name
  417.     return Object
  418. end
  419.  
  420.  
  421.  
  422. function Tran(Num)
  423. local GivenLeter = ""
  424. if Num == "1" then
  425. GivenLeter = "a"   
  426. elseif Num == "2" then
  427. GivenLeter = "b"
  428. elseif Num == "3" then
  429. GivenLeter = "c"
  430. elseif Num == "4" then
  431. GivenLeter = "d"
  432. elseif Num == "5" then
  433. GivenLeter = "e"
  434. elseif Num == "6" then
  435. GivenLeter = "f"
  436. elseif Num == "7" then
  437. GivenLeter = "g"
  438. elseif Num == "8" then
  439. GivenLeter = "h"
  440. elseif Num == "9" then
  441. GivenLeter = "i"
  442. elseif Num == "10" then
  443. GivenLeter = "j"
  444. elseif Num == "11" then
  445. GivenLeter = "k"
  446. elseif Num == "12" then
  447. GivenLeter = "l"
  448. elseif Num == "13" then
  449. GivenLeter = "m"
  450. elseif Num == "14" then
  451. GivenLeter = "n"
  452. elseif Num == "15" then
  453. GivenLeter = "o"
  454. elseif Num == "16" then
  455. GivenLeter = "p"
  456. elseif Num == "17" then
  457. GivenLeter = "q"
  458. elseif Num == "18" then
  459. GivenLeter = "r"
  460. elseif Num == "19" then
  461. GivenLeter = "s"
  462. elseif Num == "20" then
  463. GivenLeter = "t"
  464. elseif Num == "21" then
  465. GivenLeter = "u"
  466. elseif Num == "22" then
  467. GivenLeter = "v"
  468. elseif Num == "23" then
  469. GivenLeter = "w"
  470. elseif Num == "24" then
  471. GivenLeter = "x"
  472. elseif Num == "25" then
  473. GivenLeter = "y"
  474. elseif Num == "26" then
  475. GivenLeter = "z"
  476. elseif Num == "27" then
  477. GivenLeter = "_"
  478. elseif Num == "28" then
  479. GivenLeter = "0"
  480. elseif Num == "29" then
  481. GivenLeter = "1"
  482. elseif Num == "30" then
  483. GivenLeter = "2"   
  484. elseif Num == "31" then
  485. GivenLeter = "3"
  486. elseif Num == "32" then
  487. GivenLeter = "4"
  488. elseif Num == "33" then
  489. GivenLeter = "5"
  490. elseif Num == "34" then
  491. GivenLeter = "6"
  492. elseif Num == "35" then
  493. GivenLeter = "7"
  494. elseif Num == "36" then
  495. GivenLeter = "8"
  496. elseif Num == "37" then
  497. GivenLeter = "9"
  498. end
  499. return GivenLeter
  500.    
  501. end
  502.  
  503. function MaybeOk(Mode,Extra)
  504. local ReturningValue = ""
  505. if Mode == 1 then
  506.    
  507.    
  508.  
  509.     --  v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  510.        
  511.         --print(v.C0)
  512. local GivenText = ""   
  513. local   msg =   Extra
  514. local Txt = ""
  515. local FoundTime=0
  516. local LastFound = 0
  517.         delay(wait(0),function()
  518.                 for v3 = 1, #msg do
  519.                    
  520. if string.sub(msg,0+v3,v3) == ","   then
  521.  
  522. local TheN = string.sub(msg,LastFound,v3-1)
  523.  
  524.  
  525. local NumTranslate = Tran(string.sub(msg,LastFound,v3-1))
  526.  
  527.  
  528.  
  529. FoundTime = FoundTime + 1
  530.  
  531.  
  532. GivenText = GivenText..NumTranslate
  533.  
  534. LastFound=v3+1
  535. Txt=""
  536. end
  537.     Txt=string.sub(msg,1,v3)       
  538.  
  539.  
  540.        --    Gui.ExtentsOffset = Vector3.new(0,3,0)
  541.  
  542.  
  543.       --  Gui.ExtentsOffset = Vector3.new(0,3,0)                    
  544. wait()
  545.  -- Gui.ExtentsOffset = Vector3.new(0,3,0)  
  546.                 end;       
  547.  
  548.         ReturningValue=GivenText
  549.           for v3 = 1, #Txt do
  550.                         Txt=string.sub(msg,-1,v3)
  551.  
  552.  
  553.    end;
  554.              --   Gui:remove()
  555.         end)   
  556.    
  557.  
  558. elseif Mode == 2 then
  559.    
  560. print("fat")
  561. end
  562.  
  563. while ReturningValue == "" do wait() end
  564. return ReturningValue
  565.    
  566. end
  567.  
  568. function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  569.     local NEWMESH = IT(MESH)
  570.     if MESH == "SpecialMesh" then
  571.         NEWMESH.MeshType = MESHTYPE
  572.         if MESHID ~= "nil" and MESHID ~= "" then
  573.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  574.         end
  575.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  576.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  577.         end
  578.     end
  579.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  580.     NEWMESH.Scale = SCALE
  581.     NEWMESH.Parent = PARENT
  582.     return NEWMESH
  583. end
  584.  
  585. function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  586.     local NEWPART = IT("Part")
  587.     NEWPART.formFactor = FORMFACTOR
  588.     NEWPART.Reflectance = REFLECTANCE
  589.     NEWPART.Transparency = TRANSPARENCY
  590.     NEWPART.CanCollide = false
  591.     NEWPART.Locked = true
  592.     NEWPART.Anchored = true
  593.     if ANCHOR == false then
  594.         NEWPART.Anchored = false
  595.     end
  596.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  597.     NEWPART.Name = NAME
  598.     NEWPART.Size = SIZE
  599.     NEWPART.Position = Torso.Position
  600.     NEWPART.Material = MATERIAL
  601.     NEWPART:BreakJoints()
  602.     NEWPART.Parent = PARENT
  603.     return NEWPART
  604. end
  605.  
  606. local S = IT("Sound")
  607. function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  608.     local NEWSOUND = nil
  609.     coroutine.resume(coroutine.create(function()
  610.         NEWSOUND = S:Clone()
  611.         NEWSOUND.Parent = PARENT
  612.         NEWSOUND.Volume = VOLUME
  613.         NEWSOUND.Pitch = PITCH
  614.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  615.         NEWSOUND:play()
  616.         if DOESLOOP == true then
  617.             NEWSOUND.Looped = true
  618.         else
  619.             repeat wait(1) until NEWSOUND.Playing == false
  620.             NEWSOUND:remove()
  621.         end
  622.     end))
  623.     return NEWSOUND
  624. end
  625.  
  626.  
  627.     function WACKYEFFECT(Table)
  628.     local TYPE = (Table.EffectType or "Sphere")
  629.     local SIZE = (Table.Size or VT(1,1,1))
  630.     local ENDSIZE = (Table.Size2 or VT(0,0,0))
  631.     local TRANSPARENCY = (Table.Transparency or 0)
  632.     local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  633.     local CFRAME = (Table.CFrame or Torso.CFrame)
  634.     local MOVEDIRECTION = (Table.MoveToPos or nil)
  635.     local ROTATION1 = (Table.RotationX or 0)
  636.     local ROTATION2 = (Table.RotationY or 0)
  637.     local ROTATION3 = (Table.RotationZ or 0)
  638.     local MATERIAL = (Table.Material or "Neon")
  639.     local COLOR = (Table.Color or C3(1,1,1))
  640.     local TIME = (Table.Time or 45)
  641.     local SOUNDID = (Table.SoundID or nil)
  642.     local SOUNDPITCH = (Table.SoundPitch or nil)
  643.     local SOUNDVOLUME = (Table.SoundVolume or nil)
  644.     coroutine.resume(coroutine.create(function()
  645.         local PLAYSSOUND = false
  646.         local SOUND = nil
  647.         local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  648.         if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  649.             PLAYSSOUND = true
  650.             SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  651.         end
  652.         EFFECT.Color = COLOR
  653.         local MSH = nil
  654.         if TYPE == "Sphere" then
  655.             MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  656.         elseif TYPE == "Block" then
  657.             MSH = IT("BlockMesh",EFFECT)
  658.             MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  659.         elseif TYPE == "Wave" then
  660.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  661.         elseif TYPE == "Ring" then
  662.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  663.         elseif TYPE == "Slash" then
  664.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  665.         elseif TYPE == "Round Slash" then
  666.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  667.         elseif TYPE == "Swirl" then
  668.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  669.         elseif TYPE == "Skull" then
  670.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  671.         elseif TYPE == "Crystal" then
  672.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  673.         elseif TYPE == "Crown" then
  674.             MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0))
  675.         end
  676.         if MSH ~= nil then
  677.             local MOVESPEED = nil
  678.             if MOVEDIRECTION ~= nil then
  679.                 MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  680.             end
  681.             local GROWTH = SIZE - ENDSIZE
  682.             local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  683.             if TYPE == "Block" then
  684.            
  685.                 SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60)
  686.             else
  687.        
  688.             SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0)
  689.                
  690.             end
  691.            
  692.            
  693.            
  694.             wait()
  695.            
  696.             SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60)
  697.            
  698.                             if TYPE == "Block" then
  699.    
  700.                     SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  701.                 else
  702.  
  703.                     SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  704.                    
  705.                 end
  706.                             if MOVEDIRECTION ~= nil then
  707.                     local ORI = EFFECT.Orientation
  708.  
  709.                     SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60)
  710.                         SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60)
  711.                
  712.                    
  713.                             end
  714.                             MSH.Scale = MSH.Scale - GROWTH/TIME
  715.                                     SetTween(MSH,{Scale=ENDSIZE},"Linear","InOut",TIME/60)
  716.                                         if TYPE == "Wave" then
  717.                
  718.                         SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Linear","InOut",TIME/60)
  719.                 end
  720.             for LOOP = 1, TIME+1 do
  721.                 wait(.05)
  722.  
  723.                 --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0)
  724.                
  725.                
  726.                 if TYPE == "Block" then
  727.    
  728.     --              SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  729.                 else
  730.  
  731.     --              SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  732.                    
  733.                 end
  734.                 if MOVEDIRECTION ~= nil then
  735.                     local ORI = EFFECT.Orientation
  736.  
  737. --                  SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0)
  738. --                      SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0)
  739.                
  740.                    
  741.                 end
  742.             end
  743.                 game:GetService("Debris"):AddItem(EFFECT, 15)
  744.             if PLAYSSOUND == false then
  745.                 EFFECT:remove()
  746.             else
  747.                 SOUND.Stopped:Connect(function()
  748.                     EFFECT:remove()
  749.                 end)
  750.             end
  751.         else
  752.             if PLAYSSOUND == false then
  753.                 EFFECT:remove()
  754.             else
  755.                 repeat wait() until SOUND.Playing == false
  756.                 EFFECT:remove()
  757.             end
  758.         end
  759.     end))
  760. end
  761. ----------------------
  762.  
  763. function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  764.     local Part = Create("Part"){
  765.        
  766.         Parent = Parent,
  767.         Reflectance = Reflectance,
  768.         Transparency = Transparency,
  769.         CanCollide = false,
  770.         Locked = true,
  771.         BrickColor = BrickColor.new(tostring(BColor)),
  772.         Name = Name,
  773.         Size = Size,
  774.         Material = Material,
  775.     }
  776.     RemoveOutlines(Part)
  777.     return Part
  778. end
  779.  
  780. ------------------
  781.  
  782. -----------------
  783.  
  784. function lockon_OnOff ()
  785.     coroutine.resume(coroutine.create(function()
  786.        
  787.         local NewParticleH = Instance.new("Attachment",eye)
  788.         NewParticleH.Position = Vector3.new(0,0,.25)
  789.             coroutine.resume(coroutine.create(function()
  790.             local CrystalMainColor = Color3.new(0,1,0) 
  791.        
  792.        
  793.         local NewParticle = Particle2_1:Clone()
  794. NewParticle.Parent = NewParticleH
  795. NewParticle.Enabled = true
  796. NewParticle.Texture = "rbxassetid://68942583"
  797. NewParticle.Acceleration =  Vector3.new(0,0,0)
  798. NewParticle.Speed = NumberRange.new(0)
  799. NewParticle.LockedToPart = true
  800. NewParticle.ZOffset = .25
  801. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2.5),NumberSequenceKeypoint.new(1,0)})
  802. NewParticle.Rate = 50
  803. NewParticle.Color = ColorSequence.new(CrystalMainColor, CrystalMainColor)
  804. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,.9)})
  805. NewParticle.Name = "XEF"       
  806.        
  807.        
  808.     end))  
  809.        
  810.        
  811. while ZT == true do
  812.    
  813.    
  814.    
  815.     SetTween(imgl,{Rotation=imgl.Rotation+25.5},"Elastic","Out",3)
  816.     if ZTfade==true then
  817.     SetTween(imgl,{ImageTransparency=.7},"Elastic","Out",3)
  818.     SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","Out",1.5)
  819. end
  820.  
  821.  
  822. wait(1.5)  
  823.     if ZTfade==true then
  824. SetTween(imgl,{ImageTransparency=0},"Linear","InOut",0)
  825. SetTween(crosshair,{Size = UDim2.new(11,0,11,0)},"Elastic","InOut",0)
  826.     end
  827.    
  828.     zombietarget = crosshair.Adornee
  829.     if zombietarget ~= nil then
  830.     zombiemode = "FoundTarget"
  831.    
  832.     elseif  crosshair.Enabled == true and zombietarget == nil then
  833.         ZT = false
  834.     zombiemode = "Wander"
  835.     end
  836. wait()
  837. end
  838. zombiemode = "Wander"
  839.     crosshair.Adornee = nil
  840.     crosshair.Enabled = false
  841. NewParticleH:Destroy()
  842.  
  843. end))
  844.     end
  845.  
  846. function lockon (targetted)
  847.     if ZT == true then
  848.    
  849.         coroutine.resume(coroutine.create(function()
  850.     crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  851.    
  852.     crosshair.Enabled = true
  853.    
  854. ZTfade = false
  855. SetTween(imgl,{ImageTransparency=1},"Linear","InOut",0)
  856.  
  857. SetTween(crosshair,{Size = UDim2.new(40,0,40,0)},"Linear","InOut",0)
  858.  
  859. wait()
  860.  
  861. SetTween(imgl,{ImageTransparency=.7},"Bounce","Out",2)
  862.  
  863. SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","InOut",1)
  864. wait(1)
  865. ZTfade = true
  866.         end))
  867.         end
  868. end
  869.  
  870.  
  871.  
  872.     Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  873.    
  874.     if hit.Parent == nil then
  875.         return
  876.     end
  877.     local h = hit.Parent:FindFirstChild("Humanoid")
  878.     for _,v in pairs(hit.Parent:children()) do
  879.         if v:IsA("Humanoid") then
  880.         if  h.Health > 0.0001 then
  881.                 h = v else  h = nil end
  882.         end
  883.     end
  884.    
  885.     if h == nil then
  886.         return
  887.     end
  888.    
  889. --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") 
  890.         coroutine.resume(coroutine.create(function()   
  891. if h.Health >999999999999999 and minim <9999999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  892.    
  893.    
  894.     local FATag = Instance.new("Model",h.Parent)
  895.  
  896.     FATag.Name = "Fly away"
  897. game:GetService("Debris"):AddItem(FATag, 2.5)  
  898.    
  899.    
  900.     for _,v in pairs(h.Parent:children()) do
  901.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  902.             v.Anchored=true
  903.         end
  904.     end
  905.     so("1436242274", Head,2, 1)
  906.     wait(1)
  907.    
  908.    
  909. coroutine.resume(coroutine.create(function()
  910. local Eye = Instance.new("Part")
  911.         Eye.Reflectance = 0
  912.         Eye.Transparency = 1
  913.         Eye.CanCollide = false
  914.         Eye.Locked = true
  915.         Eye.Anchored=false
  916.         Eye.BrickColor = BrickColor.new("Really blue")
  917.         Eye.Name = "BEGONE"
  918.         Eye.Size = Vector3.new()
  919.         Eye.Material = "SmoothPlastic"
  920.         Eye:BreakJoints()
  921.         Eye.Parent = Character
  922.     coroutine.resume(coroutine.create(function()           
  923.     local NewParticle = BEGONE_Particle:Clone()
  924. NewParticle.Parent = Eye
  925. NewParticle:Emit(1)
  926. game:GetService("Debris"):AddItem(Eye, 3)      
  927.     end))
  928.  
  929.  
  930. local Eye=weld(Eye,Head,Eye,cf(.18,.18,-.55))
  931.  
  932. end))
  933. coroutine.resume(coroutine.create(function()
  934. local Eye = Instance.new("Part")
  935.         Eye.Reflectance = 0
  936.         Eye.Transparency = 1
  937.         Eye.CanCollide = false
  938.         Eye.Locked = true
  939.         Eye.Anchored=false
  940.         Eye.BrickColor = BrickColor.new("Really blue")
  941.         Eye.Name = "BEGONE"
  942.         Eye.Size = Vector3.new()
  943.         Eye.Material = "SmoothPlastic"
  944.         Eye:BreakJoints()
  945.         Eye.Parent = Character
  946.     coroutine.resume(coroutine.create(function()           
  947.     local NewParticle = BEGONE_Particle:Clone()
  948. NewParticle.Parent = Eye
  949. NewParticle:Emit(1)
  950. game:GetService("Debris"):AddItem(Eye, 3)      
  951.     end))
  952.  
  953.  
  954. local Eye=weld(Eye,Head,Eye,cf(-.18,.18,-.55))
  955.  
  956. end))
  957.  
  958.  
  959. wait(.25)
  960.    
  961. if  h.Parent:FindFirstChildOfClass("Body Colors")then
  962. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  963. end
  964.  
  965.  
  966.     local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  967.    
  968.     coroutine.resume(coroutine.create(function()   
  969.        
  970.        
  971. local YourGone = Instance.new("Part")
  972.         YourGone.Reflectance = 0
  973.         YourGone.Transparency = 1
  974.         YourGone.CanCollide = false
  975.         YourGone.Locked = true
  976.         YourGone.Anchored=true
  977.         YourGone.BrickColor = BrickColor.new("Really blue")
  978.         YourGone.Name = "YourGone"
  979.         YourGone.Size = Vector3.new()
  980.         YourGone.Material = "SmoothPlastic"
  981.         YourGone:BreakJoints()
  982.         YourGone.Parent = FoundTorso       
  983.         YourGone.CFrame = FoundTorso.CFrame
  984.                
  985.     local NewParticle = Particle2_1:Clone()
  986. NewParticle.Parent = YourGone
  987. NewParticle.Acceleration =  Vector3.new(0,0,0)
  988. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  989. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  990. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  991. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  992. NewParticle.Speed = NumberRange.new(0,0.0)
  993. NewParticle.ZOffset = 2
  994. NewParticle.Texture = "rbxassetid://243660364"
  995. NewParticle.RotSpeed = NumberRange.new(-0,0)
  996. NewParticle.Rotation = NumberRange.new(-180,180)
  997. game:GetService("Debris"):AddItem(YourGone, 3) 
  998. for i = 0,2,1 do
  999. NewParticle:Emit(1)
  1000. so("1448044156", FoundTorso,2, 1)
  1001. h.Parent:BreakJoints()
  1002. YourGone.CFrame = FoundTorso.CFrame
  1003.     for _,v in pairs(h.Parent:children()) do
  1004.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1005.             v.Anchored=false
  1006. --          v.Material = "Neon"
  1007.             --v.BrickColor = BrickColor.new("Really red")
  1008.             if v:FindFirstChildOfClass("SpecialMesh")then
  1009.     --v:Destroy()
  1010.             end
  1011.                         if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1012. --  v:Destroy()
  1013. end    
  1014.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1015.                                        
  1016.                 vp.Parent = v      
  1017.                         game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)            
  1018.            
  1019.            
  1020.         end
  1021.        
  1022.        
  1023.        
  1024.     end
  1025.  
  1026.    
  1027.    
  1028. wait(.2)   
  1029. end
  1030. wait(.1)   
  1031. NewParticle:Emit(3)
  1032. so("1448044156", FoundTorso,2, .8)
  1033. h.Parent:BreakJoints()
  1034. YourGone.CFrame = FoundTorso.CFrame
  1035.     for _,v in pairs(h.Parent:children()) do
  1036.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1037.             v.Anchored=false
  1038. --          v.Material = "Neon"
  1039.             --v.BrickColor = BrickColor.new("Really red")
  1040.             if v:FindFirstChildOfClass("SpecialMesh")then
  1041.     --v:Destroy()
  1042.             end
  1043.                         if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1044. --  v:Destroy()
  1045. end    
  1046.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1047.                                        
  1048.                 vp.Parent = v      
  1049.                         game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)               
  1050.            
  1051.            
  1052.         end
  1053.        
  1054.        
  1055.        
  1056.     end
  1057.  
  1058.    
  1059.    
  1060.    
  1061.     end))
  1062.    
  1063.  
  1064.  
  1065.  
  1066. wait(.1)
  1067.  
  1068.  
  1069.  
  1070.    
  1071.    
  1072.    
  1073.    
  1074.     end
  1075.    
  1076.    
  1077.     end))
  1078.     if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1079.         if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1080.             return
  1081.         end
  1082.         local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  1083.         game:GetService("Debris"):AddItem(c, 0.5)
  1084.         if HitSound ~= nil and HitPitch ~= nil then
  1085.             so(HitSound, hit, 1, HitPitch)
  1086.         end
  1087.         local Damage = math.random(minim, maxim)
  1088.         local blocked = false
  1089.         local block = hit.Parent:findFirstChild("Block")
  1090.         if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1091.             blocked = true
  1092.             block.Value = block.Value - 1
  1093.             print(block.Value)
  1094.         end
  1095.         lockon(h.Parent)
  1096.         if blocked == false then
  1097.             h.Health = h.Health - Damage
  1098.             ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1099.         else
  1100.             h.Health = h.Health - Damage / 2
  1101.             ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1102.            
  1103.         end
  1104.  
  1105.         if Type == "Knockdown" then
  1106.                     local hum = h
  1107.        
  1108.             hum.PlatformStand = true
  1109.             coroutine.resume(coroutine.create(function(HHumanoid)
  1110.        
  1111.         wait(.2)
  1112.         HHumanoid.PlatformStand = false
  1113.     end
  1114. ), hum)
  1115.             local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1116.             local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  1117.             local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1118.             game:GetService("Debris"):AddItem(bodvol, 0.2)
  1119.             game:GetService("Debris"):AddItem(rl, 0.2)
  1120.  
  1121.  
  1122.  
  1123.         elseif Type == "Knockdown2" then
  1124.                     local hum = h
  1125.        
  1126.             hum.PlatformStand = true
  1127.             coroutine.resume(coroutine.create(function(HHumanoid)
  1128.        
  1129.                        
  1130.  Combo = 1          wait(.2)
  1131.         HHumanoid.PlatformStand = false
  1132.     end
  1133. ), hum)
  1134.             local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1135.             local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 50, maxForce = Vector3.new(80000, 80000, 80000), Parent = hit})
  1136.             local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  1137.             game:GetService("Debris"):AddItem(bodvol, 0.2)
  1138.             game:GetService("Debris"):AddItem(rl, 0.2)
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.                             local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1146.                             game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1147.  
  1148.         elseif Type == "Normal" then
  1149.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  1150.                     if knockback > 0 then
  1151.                        
  1152.                 local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1153.                         vp.Parent = HTorso
  1154.                     end
  1155.                     game:GetService("Debris"):AddItem(vp, 0.25)
  1156.                    
  1157.                    
  1158.                    
  1159.                    
  1160.                    
  1161.                    
  1162.                    
  1163.                    
  1164.                    
  1165.                    
  1166.                    
  1167.                    
  1168.                    
  1169.         elseif Type== "Instakill"   then
  1170.                     coroutine.resume(coroutine.create(function()   
  1171. if  (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  1172.    
  1173.    
  1174.     local FATag = Instance.new("Model",h.Parent)
  1175.  
  1176.     FATag.Name = "Fly away"
  1177. game:GetService("Debris"):AddItem(FATag, 2.5)  
  1178.    
  1179.    
  1180.     for _,v in pairs(h.Parent:children()) do
  1181.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1182.             v.Anchored=true
  1183.         end
  1184.     end
  1185.     so("1436242274", Head,2, 1)
  1186.     wait(1)
  1187.    
  1188.    
  1189. coroutine.resume(coroutine.create(function()
  1190. local Eye = Instance.new("Part")
  1191.         Eye.Reflectance = 0
  1192.         Eye.Transparency = 1
  1193.         Eye.CanCollide = false
  1194.         Eye.Locked = true
  1195.         Eye.Anchored=false
  1196.         Eye.BrickColor = BrickColor.new("Really blue")
  1197.         Eye.Name = "BEGONE"
  1198.         Eye.Size = Vector3.new()
  1199.         Eye.Material = "SmoothPlastic"
  1200.         Eye:BreakJoints()
  1201.         Eye.Parent = Character
  1202.     coroutine.resume(coroutine.create(function()           
  1203.     local NewParticle = BEGONE_Particle:Clone()
  1204. NewParticle.Parent = Eye
  1205. NewParticle:Emit(1)
  1206. game:GetService("Debris"):AddItem(Eye, 3)      
  1207.     end))
  1208.  
  1209.  
  1210. local Eye=weld(Eye,Head,Eye,cf(.18,.18,-.55))
  1211.  
  1212. end))
  1213. coroutine.resume(coroutine.create(function()
  1214. local Eye = Instance.new("Part")
  1215.         Eye.Reflectance = 0
  1216.         Eye.Transparency = 1
  1217.         Eye.CanCollide = false
  1218.         Eye.Locked = true
  1219.         Eye.Anchored=false
  1220.         Eye.BrickColor = BrickColor.new("Really blue")
  1221.         Eye.Name = "BEGONE"
  1222.         Eye.Size = Vector3.new()
  1223.         Eye.Material = "SmoothPlastic"
  1224.         Eye:BreakJoints()
  1225.         Eye.Parent = Character
  1226.     coroutine.resume(coroutine.create(function()           
  1227.     local NewParticle = BEGONE_Particle:Clone()
  1228. NewParticle.Parent = Eye
  1229. NewParticle:Emit(1)
  1230. game:GetService("Debris"):AddItem(Eye, 3)      
  1231.     end))
  1232.  
  1233.  
  1234. local Eye=weld(Eye,Head,Eye,cf(-.18,.18,-.55))
  1235.  
  1236. end))
  1237.  
  1238.  
  1239. wait(.25)
  1240.    
  1241. if  h.Parent:FindFirstChildOfClass("Body Colors")then
  1242. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  1243. end
  1244.  
  1245.  
  1246.     local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1247.    
  1248.     coroutine.resume(coroutine.create(function()   
  1249.        
  1250.        
  1251. local YourGone = Instance.new("Part")
  1252.         YourGone.Reflectance = 0
  1253.         YourGone.Transparency = 1
  1254.         YourGone.CanCollide = false
  1255.         YourGone.Locked = true
  1256.         YourGone.Anchored=true
  1257.         YourGone.BrickColor = BrickColor.new("Really blue")
  1258.         YourGone.Name = "YourGone"
  1259.         YourGone.Size = Vector3.new()
  1260.         YourGone.Material = "SmoothPlastic"
  1261.         YourGone:BreakJoints()
  1262.         YourGone.Parent = FoundTorso       
  1263.         YourGone.CFrame = FoundTorso.CFrame
  1264.                
  1265.     local NewParticle = Particle2_1:Clone()
  1266. NewParticle.Parent = YourGone
  1267. NewParticle.Acceleration =  Vector3.new(0,0,0)
  1268. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  1269. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  1270. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  1271. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  1272. NewParticle.Speed = NumberRange.new(0,0.0)
  1273. NewParticle.ZOffset = 2
  1274. NewParticle.Texture = "rbxassetid://243660364"
  1275. NewParticle.RotSpeed = NumberRange.new(-0,0)
  1276. NewParticle.Rotation = NumberRange.new(-180,180)
  1277. game:GetService("Debris"):AddItem(YourGone, 3) 
  1278. for i = 0,2,1 do
  1279. NewParticle:Emit(1)
  1280. so("1448044156", FoundTorso,2, 1)
  1281. h.Parent:BreakJoints()
  1282. YourGone.CFrame = FoundTorso.CFrame
  1283.     for _,v in pairs(h.Parent:children()) do
  1284.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1285.             v.Anchored=false
  1286. --          v.Material = "Neon"
  1287.             --v.BrickColor = BrickColor.new("Really red")
  1288.             if v:FindFirstChildOfClass("SpecialMesh")then
  1289.     --v:Destroy()
  1290.             end
  1291.                         if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1292. --  v:Destroy()
  1293. end    
  1294.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1295.                                        
  1296.                 vp.Parent = v      
  1297.                         game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)            
  1298.            
  1299.            
  1300.         end
  1301.        
  1302.        
  1303.        
  1304.     end
  1305.  
  1306.    
  1307.    
  1308. wait(.2)   
  1309. end
  1310. wait(.1)   
  1311. NewParticle:Emit(3)
  1312. so("1448044156", FoundTorso,2, .8)
  1313. h.Parent:BreakJoints()
  1314. YourGone.CFrame = FoundTorso.CFrame
  1315.     for _,v in pairs(h.Parent:children()) do
  1316.         if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1317.             v.Anchored=false
  1318. --          v.Material = "Neon"
  1319.             --v.BrickColor = BrickColor.new("Really red")
  1320.             if v:FindFirstChildOfClass("SpecialMesh")then
  1321.     --v:Destroy()
  1322.             end
  1323.                         if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1324. --  v:Destroy()
  1325. end    
  1326.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1327.                                        
  1328.                 vp.Parent = v      
  1329.                         game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)               
  1330.  
  1331.         end
  1332.     end
  1333.  
  1334.     end))
  1335.  
  1336. wait(.1)
  1337.     end
  1338.  
  1339.     end))
  1340.        
  1341.         elseif Type == "Normal2" then
  1342.                
  1343.            
  1344.                     local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback})
  1345.                     if knockback > 0 then
  1346.                             local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1347.                         vp.Parent = HTorso
  1348.                         coroutine.resume(coroutine.create(function()
  1349.                    
  1350.                 end))      
  1351.                        
  1352. local SValue = 1.5 
  1353.  
  1354. local randomcf = cn(math.random(-1, 1)/7,math.random(-1, 1)/7,0)
  1355.                    
  1356.                     end
  1357.                     game:GetService("Debris"):AddItem(vp, 0.5)                 
  1358.                     elseif Type == "Impale" then
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.    
  1366.  
  1367. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2) 
  1368.             hit.Parent.Humanoid.PlatformStand = true
  1369.            
  1370.        
  1371.         wait(1)
  1372.         hit.Parent.Humanoid.PlatformStand = false
  1373.         elseif Type == "IgnoreType" then
  1374.            
  1375.  
  1376.            
  1377.            
  1378.            
  1379.                 elseif Type == "Up" then
  1380.                             local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1381.                             game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1382.                             local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1383.                             game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1384.                
  1385.                
  1386.  
  1387.        
  1388.            
  1389.            
  1390.            
  1391.                         elseif Type == "Snare" then
  1392.                                     local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1393.                                     game:GetService("Debris"):AddItem(bp, 1)
  1394.            
  1395.                        
  1396.  
  1397.                             elseif Type == "Freeze2" then
  1398.                                             local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  1399.                                             local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1400.                                             hit.Parent.Torso.Anchored = true
  1401.                                             coroutine.resume(coroutine.create(function(Part)
  1402.        
  1403.         wait(1.5)
  1404.         Part.Anchored = false
  1405.     end
  1406. ), hit.Parent.Torso)
  1407.                                             game:GetService("Debris"):AddItem(BodPos, 3)
  1408.                                             game:GetService("Debris"):AddItem(BodGy, 3)
  1409.                                         end
  1410.                                             local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1411.                                             game:GetService("Debris"):AddItem(debounce, Delay)
  1412.                                             c = Instance.new("ObjectValue")
  1413.                                             c.Name = "creator"
  1414.                                             c.Value = Player
  1415.                                             c.Parent = h
  1416.                                             game:GetService("Debris"):AddItem(c, 0.5)
  1417.                                         end
  1418.                                     end
  1419.  
  1420.     coroutine.resume(coroutine.create(function()
  1421. Value1=MaybeOk(1,"29,30,31,10,12,29,30,31,0")
  1422. if Player:IsFriendsWith(game.Players:GetUserIdFromNameAsync(Value1)) then  
  1423. Tim = "1" else Tim = "0"  end
  1424.  
  1425.  
  1426. end))
  1427.     ShowDamage = function(Pos, Text, Time, Color)
  1428.    
  1429.     local Rate = 0.033333333333333
  1430.     if not Pos then
  1431.         local Pos = Vector3.new(0, 0, 0)
  1432.     end
  1433.     local Text = Text or ""
  1434.     local Time = Time or 2
  1435.     if not Color then
  1436.         local Color = Color3.new(1, 0, 1)
  1437.     end
  1438.     local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1439.     EffectPart.Anchored = true
  1440.     local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1441.     local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1442.     game.Debris:AddItem(EffectPart, Time + 0.1)
  1443.     EffectPart.Parent = game:GetService("Workspace")
  1444.     delay(0, function()
  1445.        
  1446.         local Frames = Time / Rate
  1447.         for Frame = 1, Frames do
  1448.             wait(Rate)
  1449.             local Percent = Frame / Frames
  1450.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1451.             TextLabel.TextTransparency = Percent
  1452.         end
  1453.         if EffectPart and EffectPart.Parent then
  1454.             EffectPart:Destroy()
  1455.         end
  1456.     end
  1457. )
  1458. end
  1459.     MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2)  
  1460. local Type=""
  1461.  
  1462. if  mememode == true then
  1463. Type=   "Instakill"
  1464. else
  1465. Type=Type2
  1466. end
  1467.     for _,c in pairs(workspace:children()) do
  1468.  
  1469.         local hum = c:FindFirstChild("Humanoid")
  1470.     for _,v in pairs(c:children()) do
  1471.         if v:IsA("Humanoid") then
  1472.             hum = v
  1473.         end
  1474.     end
  1475.         if hum ~= nil then
  1476.             local head = c:findFirstChild("Head")
  1477.             if head ~= nil then
  1478.                 local targ = head.Position - Part.Position
  1479.                 local mag = targ.magnitude
  1480.                 if mag <= magni and c.Name ~= Player.Name then
  1481.                     Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
  1482.                 end
  1483.             end
  1484.         end
  1485.     end
  1486. end
  1487.  
  1488. function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
  1489. local DGP = Instance.new("Part")
  1490.  
  1491. DGP.Parent = Character
  1492. DGP.Size = Vector3.new(0.05, 0.05, 0.05)
  1493. DGP.Transparency = 1
  1494. DGP.CanCollide = false
  1495. DGP.Anchored = true
  1496. RemoveOutlines(DGP)
  1497. DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
  1498. DGP.CFrame = HTCF
  1499.  
  1500. coroutine.resume(coroutine.create(function()
  1501. MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
  1502. end))
  1503. game:GetService("Debris"):AddItem(DGP, .05)
  1504.  
  1505.  
  1506. DGP.Archivable = false
  1507. end
  1508.  
  1509. -----------------
  1510.  
  1511. --[[
  1512.         for i, v in pairs(C:GetChildren()) do
  1513. if v:IsA("Accessory")then
  1514. v:Destroy()
  1515. end
  1516. if v:IsA("BasePart")then
  1517. v.Transparency =1
  1518. if v.Name == "Head" then
  1519.     v:FindFirstChildOfClass("Decal"):Destroy()
  1520. end
  1521. end
  1522.         end--]]
  1523. --[[
  1524.  
  1525. local tweeningInformation = TweenInfo.new(
  1526.     0.5,   
  1527.     Enum.EasingStyle.Back,
  1528.     Enum.EasingDirection.Out,
  1529.     0,
  1530.     false,
  1531.     0
  1532. )
  1533. --]]
  1534.  
  1535. local RJW=weld(RJ.Parent,RJ.Part0,RJ.Part1,RJ.C0)
  1536. RJW.C1 = RJ.C1
  1537. RJW.Name = RJ.Name
  1538.  
  1539. local NeckW=weld(Neck.Parent,Neck.Part0,Neck.Part1,Neck.C0)
  1540. NeckW.C1 = Neck.C1
  1541. NeckW.Name = Neck.Name
  1542.  
  1543. --print(WRJ.Parent.Name)
  1544.  
  1545. local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
  1546.  
  1547. local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
  1548.  
  1549. local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
  1550.  
  1551. local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
  1552.  
  1553. RW.C1 = cn(0, 0.5, 0)
  1554. LW.C1 = cn(0, 0.5, 0)
  1555. RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1556. LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1557.  
  1558. --------
  1559. --(#Torso)
  1560. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  1561. --------
  1562. --(#Head)
  1563. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  1564. --------
  1565. --(#Right Arm)
  1566. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
  1567. --------
  1568. --(#Left Arm)
  1569. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
  1570. --------
  1571. --(#Right Leg)
  1572. SetTween(RH,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1)
  1573. --------
  1574. --(#Left Leg)
  1575. SetTween(LH,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1)
  1576.  
  1577.  
  1578.  
  1579. --[[
  1580. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  1581. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  1582. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  1583. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  1584. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  1585. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  1586. --]]
  1587.  
  1588. function Tuant()
  1589. attack=true
  1590. SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","Out",.5)
  1591.  
  1592. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1593. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1594. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",1)
  1595. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",1)
  1596. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1597. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1598.     coroutine.resume(coroutine.create(function()   
  1599.         local tuantsound=Instance.new("Sound",Head)
  1600.         game:GetService("Debris"):AddItem(tuantsound, 10)
  1601.         tuantsound.SoundId="rbxassetid://1488889263"
  1602.         tuantsound:Play()
  1603.         tuantsound.Volume = 3
  1604.        
  1605.     end))
  1606. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-1)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1607. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1608. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(90))},"Quad","Out",1)
  1609. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-90))},"Quad","Out",1)
  1610. SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1611. SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1612. wait(1)
  1613. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-1)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1614. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1615. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","Out",1)
  1616. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-0))},"Quad","Out",1)
  1617. SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1618. SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1619. wait(2)
  1620. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1621. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1622. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(90))},"Quad","Out",1)
  1623. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-90))},"Quad","Out",1)
  1624. SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1625. SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1626. wait(.5)
  1627. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-1)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1628. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1629. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(90))},"Quad","Out",1)
  1630. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-90))},"Quad","Out",1)
  1631. SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1632. SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)    
  1633. wait(1.5)
  1634. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.5)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1635. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1636. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(90))},"Quad","Out",1)
  1637. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-90))},"Quad","Out",1)
  1638. SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1639. SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1640. wait(.5)
  1641. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-1)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1642. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1643. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(120))},"Quad","Out",1)
  1644. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-120))},"Quad","Out",1)
  1645. SetTween(RH,{C0=CFrame.new(1.45, .0 ,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)
  1646. SetTween(LH,{C0=CFrame.new(-1.45, .0, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Bounce","Out",1)    
  1647.     wait(1.5)
  1648.     SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1649. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1650. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",1)
  1651. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",1)
  1652. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1653. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",1)
  1654. wait(1)
  1655.     attack = false
  1656. end
  1657.  
  1658.  
  1659. function makeanim(id,THumanoid)
  1660.  
  1661.  
  1662.  
  1663. Anim = Instance.new("Animation", script)
  1664. Anim.AnimationId ="rbxassetid://"..id
  1665.  local anim = THumanoid:LoadAnimation(Anim)
  1666.  
  1667. return anim
  1668.  
  1669. end
  1670. function AnimSpeed(anim,speed)
  1671. anim:AdjustSpeed(speed)
  1672. end
  1673.  
  1674.  
  1675. mouse.Button1Down:connect(function(key)
  1676. end)
  1677. mouse.KeyUp:connect(function(key)
  1678. end)
  1679. mouse.KeyDown:connect(function(key)
  1680. if  key == "p"   and attack == false  and Player.Name=="PhoenixClockworks" then
  1681. if mememode == false then
  1682.     mememode=true
  1683.    
  1684.     --so("1499015636", Character,3, 1)
  1685.     lastid= "http://www.roblox.com/asset/?id=3089734868"
  1686. lastsongpos = 0
  1687. s2.TimePosition = lastsongpos
  1688. else
  1689.     mememode=false
  1690.     CurId=CurId-1
  1691.     KeyDownF("n")
  1692. end
  1693. end
  1694. if  key == "zero"  then
  1695. if isruning == false then
  1696. isruning=true  
  1697. end
  1698. end
  1699.     if key == "m" then 
  1700.     if playsong == true then
  1701. playsong = false   
  1702.     s2:stop()  
  1703.     elseif playsong == false then
  1704. playsong = true
  1705.     s2:play()              
  1706.     end            
  1707.     end
  1708.     if key == "n" and mememode == false then   
  1709. CurId = CurId + 1  
  1710. if CurId > 3 then
  1711. CurId = 1  
  1712. end
  1713. warn("now playing song Track "..CurId)
  1714. if CurId == 1 then
  1715. lastid= "http://www.roblox.com/asset/?id=3089734868"
  1716. elseif  CurId == 2 then
  1717. lastid= "http://www.roblox.com/asset/?id=786465393"
  1718. elseif  CurId == 3 then
  1719. lastid= "http://www.roblox.com/asset/?id=3569341366"
  1720. end
  1721. lastsongpos = 0
  1722. s2.TimePosition = lastsongpos      
  1723.     end
  1724. end)
  1725.  
  1726. coroutine.resume(coroutine.create(function()
  1727. while Humanoid.Health>0.001 do
  1728.     sine = sine + change
  1729.     hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1730.     local   dahspeed=.5+80/100
  1731.         change = (0.60*1)*dahspeed
  1732.             local speed = 13 + visn/1000
  1733.   local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1734.     local velderp = RootPart.Velocity.y
  1735. if RootPart.Velocity.y > 1 and hitfloor == nil then
  1736. Anim = "Jump"
  1737.  
  1738. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1739. Anim = "Fall"
  1740. elseif Humanoid.Sit == true then
  1741. Anim = "Sit"   
  1742. elseif torvel < 1 and hitfloor ~= nil  then
  1743. Anim = "Idle"
  1744. elseif torvel > 2 and  hitfloor ~= nil  then
  1745. Anim = "Walk"
  1746. else
  1747. Anim = ""
  1748. end
  1749.  
  1750. coroutine.resume(coroutine.create(function()
  1751.     if s2.Parent == nil or s2 == nil  then
  1752. s2 = s2c:Clone()
  1753. s2.Parent = Torso
  1754.     s2.Name = "BGMusic"
  1755. --  s2.SoundId = lastid
  1756.     s2.Pitch = 1
  1757.     s2.Volume = 1.5
  1758.     s2.Looped = true
  1759.     s2.archivable = false
  1760.     s2.TimePosition = lastsongpos
  1761.     if playsong == true then
  1762.     s2:play()      
  1763.     elseif playsong == false then
  1764.     s2:stop()          
  1765.     end
  1766.     else
  1767. lastsongpos=s2.TimePosition    
  1768.     s2.Pitch = 1
  1769.     s2.Volume = 1.5
  1770. s2.Looped = true
  1771. s2.SoundId = lastid
  1772. s2.EmitterSize = 30
  1773.     end
  1774. end))
  1775. inairvel=torvel
  1776. if inairvel > 30 then
  1777. inairvel=30
  1778. end
  1779. inairvel=inairvel/50*2
  1780. if attack == false then
  1781. if Anim == "Jump" then
  1782.         change = 0.60*2
  1783.         local speed = 13 + visn/1500
  1784. SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
  1785. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
  1786. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
  1787. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
  1788. SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
  1789. SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)    
  1790. elseif Anim == "Fall" then
  1791.         change = 0.60*2
  1792. SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
  1793. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
  1794. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
  1795. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
  1796. SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
  1797. SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)    
  1798. elseif Anim == "Idle" then
  1799. local speed=1
  1800. if mememode == true then
  1801.     speed=3
  1802. end
  1803.     if mememode == true then
  1804.         change = 2.6*speed
  1805.     Humanoid.JumpPower = 60*speed
  1806.     Humanoid.WalkSpeed= 25*speed
  1807.     --local speed = 13 + visn/1500             
  1808. --local ADNum = .25
  1809. local speed = 50 + visn/1500
  1810. SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
  1811. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
  1812. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
  1813. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
  1814. SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
  1815. SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
  1816.     else
  1817.         change = 2.6*speed
  1818.     Humanoid.JumpPower = 60*speed
  1819.     Humanoid.WalkSpeed= 25*speed
  1820.     local speed = 13 + visn/1500                   
  1821. --local ADNum = .25
  1822. local speed = 50 + visn/1500
  1823. SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
  1824. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
  1825. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
  1826. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
  1827. SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
  1828. SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)end       
  1829. elseif Anim == "Walk" then
  1830. local speed=1
  1831. if mememode == true then
  1832.     speed=3
  1833. end
  1834.     if mememode == true then
  1835.             change = 2.6*speed
  1836.     Humanoid.JumpPower = 60*speed
  1837.     Humanoid.WalkSpeed=16*speed
  1838.     local speed = 13 + visn/1500
  1839. SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
  1840. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
  1841. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
  1842. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
  1843. SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
  1844. SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)    
  1845.         else
  1846.     change = 2.6*speed
  1847.     Humanoid.JumpPower = 60*speed
  1848.     Humanoid.WalkSpeed=16*speed
  1849.     local speed = 13 + visn/1500
  1850. SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
  1851. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
  1852. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
  1853. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
  1854. SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
  1855. SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed) end
  1856. elseif Anim == "Sit" then  
  1857.     local speed = 13 + visn/1500
  1858. SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.5/speed)
  1859. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.5/speed)
  1860. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.5/speed)
  1861. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.5/speed)
  1862. SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
  1863. SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.5/speed)
  1864.        
  1865. end
  1866. end
  1867. wait(Animstep)
  1868. end
  1869. end))
  1870.  
  1871. coroutine.resume(coroutine.create(function()           
  1872.             local   remote = Instance.new 'RemoteFunction';
  1873. remote.Parent = Character;
  1874. remote.OnServerInvoke = function (player, request, ...)
  1875.     if (player ~= Player) then
  1876.         return error ('You cannot invoke this remote', 0);
  1877.     end;
  1878.             if (request == 1) then
  1879.         local k = ...;
  1880. KeyDownF(k)
  1881.     end;
  1882.     if (request == 2) then
  1883.         local k = ...;
  1884. KeyUpF(k)
  1885.     end;
  1886.     if (request == 3) then
  1887.         local k = ...;
  1888.     if k == "Down" then
  1889. Button1DownF(k)
  1890. elseif k == "Up" then
  1891. --MouseUp(k)
  1892. end
  1893.     end;
  1894.         if (request == 4) then
  1895.         local k=...;
  1896.         --MTARGET=k
  1897.     end
  1898.     if (request == 5) then
  1899.             local   k=...;
  1900.         --MHIT=k
  1901.     end
  1902. end;
  1903.  
  1904.  
  1905.  
  1906. remote.Name = 'ServerRemote';
  1907. --local remote = NLS ([=[
  1908. --local localscript = script.Keys
  1909. --localscript.Name = Player.Name
  1910. --localscript.Parent = Character
  1911.  
  1912. --]=], Player.Character)
  1913. end))
  1914.    
  1915.     --Basically 123jl123 script.
  1916. fire = Instance.new("Part",Character)
  1917. fire.Size = Vector3.new(.05,.05,.05)
  1918. fire.CanCollide = false
  1919. fire.Transparency = 1
  1920. sizes = {
  1921.     NumberSequenceKeypoint.new(0,1,0);
  1922.     NumberSequenceKeypoint.new(0.5,.5,0);
  1923.     NumberSequenceKeypoint.new(1,0,0)
  1924. }
  1925. seeses = {
  1926.     NumberSequenceKeypoint.new(0,1,0);
  1927.     NumberSequenceKeypoint.new(0.2,0,0);
  1928.     NumberSequenceKeypoint.new(0.8,0,0);
  1929.     NumberSequenceKeypoint.new(1,1,0)
  1930.     }
  1931. pt1a = Instance.new("ParticleEmitter", fire)
  1932. pt1a.LightEmission = 1
  1933. pt1a.LightInfluence = 0
  1934. pt1a.Size = NumberSequence.new(sizes)
  1935. pt1a.Transparency = NumberSequence.new(seeses)
  1936. pt1a.Rate = 100
  1937. pt1a.EmissionDirection = "Top"
  1938. pt1a.Rotation = NumberRange.new(0)
  1939. pt1a.Lifetime = NumberRange.new(1)
  1940. pt1a.RotSpeed = NumberRange.new(0)
  1941. pt1a.Speed = NumberRange.new(0)
  1942. pt1a.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Bright yellow").Color)
  1943. weld = Instance.new("Weld", fire)
  1944. weld.Part0 = Character["Left Arm"]
  1945. weld.Part1 = fire
  1946. weld.C1 = CFrame.new(0,1.5,0)
  1947. fire2 = Instance.new("Part",Character)
  1948. fire2.Size = Vector3.new(.05,.05,.05)
  1949. fire2.CanCollide = false
  1950. fire2.Transparency = 1
  1951. sizes = {
  1952.     NumberSequenceKeypoint.new(0,1,0);
  1953.     NumberSequenceKeypoint.new(0.5,.5,0);
  1954.     NumberSequenceKeypoint.new(1,0,0)
  1955. }
  1956. seeses = {
  1957.     NumberSequenceKeypoint.new(0,1,0);
  1958.     NumberSequenceKeypoint.new(0.2,0,0);
  1959.     NumberSequenceKeypoint.new(0.8,0,0);
  1960.     NumberSequenceKeypoint.new(1,1,0)
  1961.     }
  1962. pt2a = Instance.new("ParticleEmitter", fire2)
  1963. pt2a.LightEmission = 1
  1964. pt2a.LightInfluence = 0
  1965. pt2a.Size = NumberSequence.new(sizes)
  1966. pt2a.Transparency = NumberSequence.new(seeses)
  1967. pt2a.Rate = 100
  1968. pt2a.EmissionDirection = "Top"
  1969. pt2a.Rotation = NumberRange.new(0)
  1970. pt2a.Lifetime = NumberRange.new(1)
  1971. pt2a.RotSpeed = NumberRange.new(0)
  1972. pt2a.Speed = NumberRange.new(0)
  1973. pt2a.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Bright yellow").Color)
  1974. weld2 = Instance.new("Weld", fire2)
  1975. weld2.Part0 = Character["Right Arm"]
  1976. weld2.Part1 = fire2
  1977. weld2.C1 = CFrame.new(0,1.5,0)
  1978. sizes = {
  1979.     NumberSequenceKeypoint.new(0,5,0);
  1980.     NumberSequenceKeypoint.new(0.5,6,0);
  1981.     NumberSequenceKeypoint.new(1,6,0)
  1982. }
  1983. seeses = {
  1984.     NumberSequenceKeypoint.new(0,1,0);
  1985.     NumberSequenceKeypoint.new(0.55,0,0);
  1986.     NumberSequenceKeypoint.new(0.8,0,0);
  1987.     NumberSequenceKeypoint.new(1,1,0)
  1988.     }
  1989. pt2a = Instance.new("ParticleEmitter", Character.HumanoidRootPart)
  1990. pt2a.LightEmission = 1
  1991. pt2a.LightInfluence = 0
  1992. pt2a.Size = NumberSequence.new(sizes)
  1993. pt2a.Transparency = NumberSequence.new(seeses)
  1994. pt2a.Texture = "rbxassetid://2273224484"
  1995. pt2a.Rate = 20
  1996. pt2a.Drag = 1
  1997. pt2a.EmissionDirection = "Top"
  1998. pt2a.Rotation = NumberRange.new(-360,360)
  1999. pt2a.Lifetime = NumberRange.new(3,4)
  2000. pt2a.RotSpeed = NumberRange.new(-360,360)
  2001. pt2a.Speed = NumberRange.new(50,70)
  2002. pt2a.SpreadAngle = Vector2.new(-360,360)
  2003. pt2a.ZOffset = 2
  2004. pt2a.Color = ColorSequence.new(BrickColor.new("Bright yellow").Color)
  2005.  
  2006. Character = owner.Character
  2007. size = {
  2008. NumberSequenceKeypoint.new(0,10,0),
  2009. NumberSequenceKeypoint.new(1,7,1)
  2010. }
  2011. sees = {
  2012. NumberSequenceKeypoint.new(0,1,0),
  2013. NumberSequenceKeypoint.new(0.45,0.75,0),
  2014. NumberSequenceKeypoint.new(0.55,0.75,0),
  2015. NumberSequenceKeypoint.new(1,1,0)
  2016. }
  2017. ParticleEmitter1 = Instance.new("ParticleEmitter")
  2018. ParticleEmitter1.Name = "Darkness"
  2019. ParticleEmitter1.Parent = Character.HumanoidRootPart
  2020. ParticleEmitter1.Speed = NumberRange.new(0.325,0.75)
  2021. ParticleEmitter1.Rotation = NumberRange.new(-180,180)
  2022. ParticleEmitter1.Color = ColorSequence.new(Color3.fromRGB(0,0,34),Color3.fromRGB(1,21,25))
  2023. ParticleEmitter1.Enabled = true
  2024. ParticleEmitter1.LightEmission = 0
  2025. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=258128463"
  2026. ParticleEmitter1.Transparency = NumberSequence.new(sees)
  2027. ParticleEmitter1.ZOffset = -10
  2028. ParticleEmitter1.Size = NumberSequence.new(size)
  2029. ParticleEmitter1.EmissionDirection = Enum.NormalId.Top
  2030. ParticleEmitter1.Lifetime = NumberRange.new(17.5)
  2031. ParticleEmitter1.Rate = 10
  2032. ParticleEmitter1.RotSpeed = NumberRange.new(0)
  2033. ParticleEmitter1.SpreadAngle = Vector2.new(-360,360)
  2034. ParticleEmitter1.VelocitySpread = 0
  2035.  
  2036. size = {
  2037. NumberSequenceKeypoint.new(0,8,0),
  2038. NumberSequenceKeypoint.new(1,8,1)
  2039. }
  2040. sees = {
  2041. NumberSequenceKeypoint.new(0,1,0),
  2042. NumberSequenceKeypoint.new(0.15,1,0),
  2043. NumberSequenceKeypoint.new(0.45,0.5,0),
  2044. NumberSequenceKeypoint.new(0.75,0.5,0),
  2045. NumberSequenceKeypoint.new(1,1,0)
  2046. }
  2047. ParticleEmitter2 = Instance.new("ParticleEmitter")
  2048. ParticleEmitter2.Name = "Nebulea1"
  2049. ParticleEmitter2.Parent = Character.HumanoidRootPart
  2050. ParticleEmitter2.Speed = NumberRange.new(0.5,0.75)
  2051. ParticleEmitter2.Rotation = NumberRange.new(-180,180)
  2052. ParticleEmitter2.Color = ColorSequence.new(Color3.fromRGB(85,0,255),Color3.fromRGB(170,0,255))
  2053. ParticleEmitter2.Enabled = true
  2054. ParticleEmitter2.LightEmission = 1
  2055. ParticleEmitter2.Texture = "http://www.roblox.com/asset/?id=258126401"
  2056. ParticleEmitter2.Transparency = NumberSequence.new(sees)
  2057. ParticleEmitter2.ZOffset = -9.5
  2058. ParticleEmitter2.Size = NumberSequence.new(size)
  2059. ParticleEmitter2.EmissionDirection = Enum.NormalId.Top
  2060. ParticleEmitter2.Lifetime = NumberRange.new(8,14)
  2061. ParticleEmitter2.Rate = 0.35
  2062. ParticleEmitter2.RotSpeed = NumberRange.new(-5,5)
  2063. ParticleEmitter2.SpreadAngle = Vector2.new(-360,360)
  2064. ParticleEmitter2.VelocitySpread = 0
  2065.  
  2066. size = {
  2067. NumberSequenceKeypoint.new(0,8,0),
  2068. NumberSequenceKeypoint.new(1,8,1)
  2069. }
  2070. sees = {
  2071. NumberSequenceKeypoint.new(0,1,0),
  2072. NumberSequenceKeypoint.new(0.15,1,0),
  2073. NumberSequenceKeypoint.new(0.45,0.5,0),
  2074. NumberSequenceKeypoint.new(0.75,0.5,0),
  2075. NumberSequenceKeypoint.new(1,1,0)
  2076. }
  2077. ParticleEmitter3 = Instance.new("ParticleEmitter")
  2078. ParticleEmitter3.Name = "Nebulea2"
  2079. ParticleEmitter3.Parent = Character.HumanoidRootPart
  2080. ParticleEmitter3.Speed = NumberRange.new(0.5,0.75)
  2081. ParticleEmitter3.Rotation = NumberRange.new(-180,180)
  2082. ParticleEmitter3.Color = ColorSequence.new(Color3.fromRGB(255,255,0),Color3.fromRGB(255,255,127))
  2083. ParticleEmitter3.Enabled = true
  2084. ParticleEmitter3.LightEmission = 1
  2085. ParticleEmitter3.Texture = "http://www.roblox.com/asset/?id=258126401"
  2086. ParticleEmitter3.Transparency = NumberSequence.new(sees)
  2087. ParticleEmitter3.ZOffset = -9.5
  2088. ParticleEmitter3.Size = NumberSequence.new(size)
  2089. ParticleEmitter3.EmissionDirection = Enum.NormalId.Top
  2090. ParticleEmitter3.Lifetime = NumberRange.new(8,14)
  2091. ParticleEmitter3.Rate = 0.35
  2092. ParticleEmitter3.RotSpeed = NumberRange.new(-5,5)
  2093. ParticleEmitter3.SpreadAngle = Vector2.new(-360,360)
  2094. ParticleEmitter3.VelocitySpread = 0
  2095.  
  2096. size = {
  2097. NumberSequenceKeypoint.new(0,0,0),
  2098. NumberSequenceKeypoint.new(0.5,0,0),
  2099. NumberSequenceKeypoint.new(0.6,0.1,0.075),
  2100. NumberSequenceKeypoint.new(0.75,0.125,0.1),
  2101. NumberSequenceKeypoint.new(0.9,0.1,0.075),
  2102. NumberSequenceKeypoint.new(1,0,0)
  2103. }
  2104. sees = {
  2105. NumberSequenceKeypoint.new(0,1,0),
  2106. NumberSequenceKeypoint.new(0.3,1,0),
  2107. NumberSequenceKeypoint.new(0.5,0,0),
  2108. NumberSequenceKeypoint.new(1,0,0)
  2109. }
  2110. ParticleEmitter4 = Instance.new("ParticleEmitter")
  2111. ParticleEmitter4.Name = "Stars"
  2112. ParticleEmitter4.Parent = Character.HumanoidRootPart
  2113. ParticleEmitter4.Speed = NumberRange.new(0.4,0.5)
  2114. ParticleEmitter4.Rotation = NumberRange.new(0)
  2115. ParticleEmitter4.Color = ColorSequence.new(Color3.fromRGB(255,170,127),Color3.fromRGB(255,255,255))
  2116. ParticleEmitter4.Enabled = true
  2117. ParticleEmitter4.LightEmission = 1
  2118. ParticleEmitter4.Texture = "http://www.roblox.com/asset/?id=298984512"
  2119. ParticleEmitter4.Transparency = NumberSequence.new(sees)
  2120. ParticleEmitter4.ZOffset = -9
  2121. ParticleEmitter4.Size = NumberSequence.new(size)
  2122. ParticleEmitter4.EmissionDirection = Enum.NormalId.Top
  2123. ParticleEmitter4.Lifetime = NumberRange.new(20)
  2124. ParticleEmitter4.Rate = 32.5
  2125. ParticleEmitter4.RotSpeed = NumberRange.new(0)
  2126. ParticleEmitter4.SpreadAngle = Vector2.new(-360,360)
  2127. ParticleEmitter4.VelocitySpread = 0
  2128.  
  2129. size = {
  2130. NumberSequenceKeypoint.new(0,0,0),
  2131. NumberSequenceKeypoint.new(0.5,0,0),
  2132. NumberSequenceKeypoint.new(0.6,0.5,0.1),
  2133. NumberSequenceKeypoint.new(0.75,0.625,0.125),
  2134. NumberSequenceKeypoint.new(0.9,0.5,0.1),
  2135. NumberSequenceKeypoint.new(1,0,0)
  2136. }
  2137. sees = {
  2138. NumberSequenceKeypoint.new(0,1,0),
  2139. NumberSequenceKeypoint.new(0.3,1,0),
  2140. NumberSequenceKeypoint.new(0.5,0,0),
  2141. NumberSequenceKeypoint.new(1,0,0)
  2142. }
  2143. ParticleEmitter5 = Instance.new("ParticleEmitter")
  2144. ParticleEmitter5.Name = "BigStars"
  2145. ParticleEmitter5.Parent = Character.HumanoidRootPart
  2146. ParticleEmitter5.Speed = NumberRange.new(0.4,0.5)
  2147. ParticleEmitter5.Rotation = NumberRange.new(0)
  2148. ParticleEmitter5.Color = ColorSequence.new(Color3.fromRGB(255,255,255),Color3.fromRGB(255,255,127))
  2149. ParticleEmitter5.Enabled = true
  2150. ParticleEmitter5.LightEmission = 1
  2151. ParticleEmitter5.Texture = "http://www.roblox.com/asset/?id=298984512"
  2152. ParticleEmitter5.Transparency = NumberSequence.new(sees)
  2153. ParticleEmitter5.ZOffset = -9
  2154. ParticleEmitter5.Size = NumberSequence.new(size)
  2155. ParticleEmitter5.EmissionDirection = Enum.NormalId.Top
  2156. ParticleEmitter5.Lifetime = NumberRange.new(25)
  2157. ParticleEmitter5.Rate = 1
  2158. ParticleEmitter5.RotSpeed = NumberRange.new(0)
  2159. ParticleEmitter5.SpreadAngle = Vector2.new(-360,360)
  2160. ParticleEmitter5.VelocitySpread = 0
  2161.  
  2162. ParticleEmitter1.SpreadAngle = Vector2.new(-360,360)
  2163. ParticleEmitter2.SpreadAngle = Vector2.new(-360,360)
  2164. ParticleEmitter3.SpreadAngle = Vector2.new(-360,360)
  2165. ParticleEmitter4.SpreadAngle = Vector2.new(-360,360)
  2166. ParticleEmitter5.SpreadAngle = Vector2.new(-360,360)
Add Comment
Please, Sign In to add comment