Advertisement
ZacBozer

Untitled

Apr 20th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.51 KB | None | 0 0
  1.  
  2. ---------------------------
  3. --/ \--
  4. -- Script By: 123jl123 --
  5. --\ /--
  6. ---------------------------
  7. --local remote = NS ([=[
  8. local TweenService = game:GetService("TweenService")
  9. --local RbxUtility = LoadLibrary("RbxUtility")
  10. --local Create = RbxUtility.Createa
  11. local Player = game:GetService("Players").LocalPlayer
  12. if Player.Character == nil then
  13. while Player.Character == nil do wait()
  14.  
  15. end end
  16. PNAME = Player.Name
  17. ZTfade=false
  18. ZT=false
  19. --EffectPack = script.Extras:Clone()
  20. --script.Extras:Destroy()
  21. MTARGET = nil
  22. Target = CFrame.new()
  23. Character= workspace["CloneCharacter"]
  24. Torso = Character.Torso
  25. Head = Character.Head
  26. Humanoid = Character.Humanoid
  27. LeftArm = Character["Left Arm"]
  28. LeftLeg = Character["Left Leg"]
  29. RightArm = Character["Right Arm"]
  30. RightLeg = Character["Right Leg"]
  31. RootPart = Character["HumanoidRootPart"]
  32. local Anim="Idle"
  33. local inairvel=0
  34. local WalkAnimStep = 0
  35. local sine = 0
  36. local change = 1
  37. Animstep = 0
  38. WalkAnimMove=0.1
  39. Combo = 0
  40. local attack=false
  41. local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
  42. local Neck = Character.Torso:FindFirstChild("Neck")
  43. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  44. local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  45. local forWFB = 0
  46. local forWRL = 0
  47. Effects=Instance.new("Folder",Character)
  48. Effects.Name="Effects"
  49. it=Instance.new
  50. vt=Vector3.new
  51. cf=CFrame.new
  52. euler=CFrame.fromEulerAnglesXYZ
  53. angles=CFrame.Angles
  54. local cn = CFrame.new
  55. mr=math.rad
  56. mememode=false
  57. IT = Instance.new
  58. CF = CFrame.new
  59. VT = Vector3.new
  60. RAD = math.rad
  61. C3 = Color3.new
  62. UD2 = UDim2.new
  63. BRICKC = BrickColor.new
  64. ANGLES = CFrame.Angles
  65. EULER = CFrame.fromEulerAnglesXYZ
  66. COS = math.cos
  67. ACOS = math.acos
  68. SIN = math.sin
  69. ASIN = math.asin
  70. ABS = math.abs
  71. MRANDOM = math.random
  72. FLOOR = math.floor
  73. local lastid= "http://www.roblox.com/asset/?id=2677904658"
  74. local s2=it("Sound",Torso)
  75. local CurId = 1
  76. s2.EmitterSize = 30
  77. local s2c=s2:Clone()
  78. playsong = true
  79. s2.SoundId = lastid
  80. if playsong == true then
  81. s2:play()
  82. elseif playsong == false then
  83. s2:stop()
  84. end
  85. lastsongpos= 0
  86. crosshair = Instance.new("BillboardGui",Character)
  87. crosshair.Size = UDim2.new(10,0,10,0)
  88. crosshair.Enabled = false
  89. imgl = Instance.new("ImageLabel",crosshair)
  90. imgl.Position = UDim2.new(0,0,0,0)
  91. imgl.Size = UDim2.new(1,0,1,0)
  92. imgl.Image = "rbxassetid://464083672"
  93. imgl.BackgroundTransparency = 1
  94. imgl.ImageTransparency = .7
  95. imgl.ImageColor3 = Color3.new(0,0,1)
  96. crosshair.StudsOffset = Vector3.new(0,0,-1)
  97. --//=================================\\
  98. --|| LOCAL IDS
  99. --\\=================================//
  100. local GROWL = 1544355717
  101. local ROAR = 528589382
  102. local ECHOBLAST = 376976397
  103. local CAST = 459523898
  104. local ALCHEMY = 424195979
  105. local BUILDUP = 698824317
  106. local BIGBUILDUP = 874376217
  107. local IMPACT = 231917744
  108. local LARGE_EXPLOSION = 168513088
  109. local TURNUP = 299058146
  110. --//=================================\\
  111. --|| SAZERENOS ARTIFICIAL HEARTBEAT
  112. --\\=================================//
  113. Frame_Speed = 1 / 30
  114. ArtificialHB = Instance.new("BindableEvent", script)
  115. ArtificialHB.Name = "ArtificialHB"
  116. script:WaitForChild("ArtificialHB")
  117. frame = Frame_Speed
  118. tf = 0
  119. allowframeloss = false
  120. tossremainder = false
  121. lastframe = tick()
  122. script.ArtificialHB:Fire()
  123. game:GetService("RunService").Heartbeat:connect(function(s, p)
  124. tf = tf + s
  125. if tf >= frame then
  126. if allowframeloss then
  127. script.ArtificialHB:Fire()
  128. lastframe = tick()
  129. else
  130. for i = 1, math.floor(tf / frame) do
  131. script.ArtificialHB:Fire()
  132. end
  133. lastframe = tick()
  134. end
  135. if tossremainder then
  136. tf = 0
  137. else
  138. tf = tf - frame * math.floor(tf / frame)
  139. end
  140. end
  141. end)
  142. --//=================================\\
  143. --\\=================================//
  144. function swait(NUMBER)
  145. if NUMBER == 0 or NUMBER == nil then
  146. ArtificialHB.Event:wait()
  147. else
  148. for i = 1, NUMBER do
  149. ArtificialHB.Event:wait()
  150. end
  151. end
  152. end
  153. if Character:FindFirstChild("Animate")then
  154. Character.Animate:Destroy()
  155. end
  156. function RemoveOutlines(part)
  157. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  158. end
  159.  
  160. CFuncs = {
  161. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  162. --[[
  163. 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})
  164. RemoveOutlines(Part)
  165. return Part
  166. ]]
  167. end
  168. }
  169. ,
  170. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  171. --[[
  172. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  173. if Mesh == "SpecialMesh" then
  174. Msh.MeshType = MeshType
  175. Msh.MeshId = MeshId
  176. end
  177. return Msh
  178. ]]
  179. end
  180. }
  181. ,
  182. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  183. --[[
  184. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  185. if Mesh == "SpecialMesh" then
  186. Msh.MeshType = MeshType
  187. Msh.MeshId = MeshId
  188. end
  189. return Msh
  190. ]]
  191. end
  192. }
  193. ,
  194. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  195. --[[
  196. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  197. return Weld
  198. ]]
  199. end
  200. }
  201. ,
  202. Sound = {Create = function(id, par, vol, pit)
  203. --[[
  204. coroutine.resume(coroutine.create(function()
  205.  
  206. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  207. wait()
  208. S:play()
  209. game:GetService("Debris"):AddItem(S, 6)
  210.  
  211. end
  212. ))
  213. ]]
  214. end
  215. }
  216. ,
  217. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  218. --[[
  219. 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})
  220. return fp
  221. ]]
  222. end
  223.  
  224. }
  225. }
  226. ---------------
  227. --[Functions]--
  228. ---------------
  229. so = function(id, par, vol, pit)
  230. CFuncs.Sound.Create(id, par, vol, pit)
  231. end
  232. function weld(parent,part0,part1,c0)
  233. local weld=it("Weld")
  234. weld.Parent=parent
  235. weld.Part0=part0
  236. weld.Part1=part1
  237. weld.C0=c0
  238. return weld
  239. end
  240. function motor(parent,part0,part1,c0)
  241. local weld=it("Motor6D")
  242. weld.Parent=parent
  243. weld.Part0=part0
  244. weld.Part1=part1
  245. weld.C0=c0
  246. return weld
  247. end
  248. local TargetMode1 = "nil"
  249. local SelectedTarget1 = nil
  250. local SelectedTargetParent1 = nil
  251. function lockon_OnOff ()
  252. coroutine.resume(coroutine.create(function()
  253. --[[
  254. local NewParticleH = Instance.new("Attachment",eye)
  255. NewParticleH.Position = Vector3.new(0,0,.25)
  256. coroutine.resume(coroutine.create(function()
  257. local CrystalMainColor = Color3.new(0,1,0)
  258. ]]
  259. --[[
  260. local NewParticle = Particle2_1:Clone()
  261. NewParticle.Parent = NewParticleH
  262. NewParticle.Enabled = true
  263. NewParticle.Texture = "rbxassetid://68942583"
  264. NewParticle.Acceleration = Vector3.new(0,0,0)
  265. NewParticle.Speed = NumberRange.new(0)
  266. NewParticle.LockedToPart = true
  267. NewParticle.ZOffset = .25
  268. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2.5),NumberSequenceKeypoint.new(1,0)})
  269. NewParticle.Rate = 50
  270. NewParticle.Color = ColorSequence.new(CrystalMainColor, CrystalMainColor)
  271. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,.9)})
  272. NewParticle.Name = "XEF"
  273. --]]
  274.  
  275. end))
  276.  
  277.  
  278. while ZT == true do
  279. SetTween(imgl,{Rotation=imgl.Rotation+45.5},"Quad","InOut",1.5/2)
  280. if ZTfade==true then
  281. SetTween(imgl,{ImageTransparency=.9},"Elastic","Out",3/2)
  282. SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","Out",1.5/2)
  283. end
  284. wait(1.5/2)
  285. if ZTfade==true then
  286. SetTween(imgl,{ImageTransparency=.5},"Linear","InOut",0)
  287. SetTween(crosshair,{Size = UDim2.new(9,0,9,0)},"Elastic","InOut",0)
  288. end
  289.  
  290. SelectedTarget1 = crosshair.Adornee
  291.  
  292. if SelectedTarget1 ~= nil and SelectedTarget1.Parent.Parent == SelectedTargetParent1 then
  293. TargetMode1 = "FoundTarget"
  294. else --if SelectedTarget1.Parent.Parent ~= SelectedTargetParent1 then
  295. TargetMode1 = "nil"
  296. ZT = false
  297. --[[ elseif crosshair.Enabled == true and SelectedTarget1 == nil then
  298. ZT = false
  299. TargetMode1 = "nil" --]]
  300. end
  301. wait()
  302. end
  303. TargetMode1 = "nil"
  304. crosshair.Adornee = nil
  305. crosshair.Enabled = false
  306. SelectedTarget1 = nil
  307. SelectedTargetParent1 = nil
  308. --NewParticleH:Destroy()
  309. end
  310. function lockon (targetted)
  311. if ZT == true then
  312.  
  313. coroutine.resume(coroutine.create(function()
  314. SelectedTargetParent1= targetted.Parent
  315. crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
  316. print(SelectedTargetParent1.Name)
  317. crosshair.Enabled = true
  318.  
  319. ZTfade = false
  320. SetTween(imgl,{ImageTransparency=1},"Linear","InOut",0)
  321. SetTween(crosshair,{Size = UDim2.new(40,0,40,0)},"Linear","InOut",0)
  322. wait()
  323. SetTween(imgl,{ImageTransparency=.9},"Bounce","Out",2)
  324. SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","InOut",1)
  325. wait(1)
  326. ZTfade = true
  327. end))
  328. end
  329. end
  330. --helmet = EffectPack.MeshPart:Clone()
  331. --helmet.Parent = Character
  332. --helmetweld = weld(Head,helmet,Head,CF(0,-.5,0))
  333. rayCast = function(Pos, Dir, Max, Ignore)
  334.  
  335. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  336. end
  337. function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  338. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  339. local outorin = Enum.EasingDirection[outorin2]
  340. local dahspeed=1
  341. if attack == true and mememode == true then
  342. dahspeed=5
  343. end
  344. if SPart.Name=="Bullet" then
  345. dahspeed=1
  346. end
  347. local tweeningInformation = TweenInfo.new(
  348. AnimTime/dahspeed,
  349. MoveStyle,
  350. outorin,
  351. 0,
  352. false,
  353. 0
  354. )
  355. local MoveCF = CFr
  356. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  357. tweenanim:Play()
  358. end
  359. function GatherAllInstances(Parent,ig)
  360. local Instances = {}
  361. local Ignore=nil
  362. if ig ~= nil then
  363. Ignore = ig
  364. end
  365.  
  366. local function GatherInstances(Parent,Ignore)
  367. for i, v in pairs(Parent:GetChildren()) do
  368.  
  369. if v ~= Ignore then
  370. GatherInstances(v,Ignore)
  371. table.insert(Instances, v) end
  372. end
  373. end
  374. GatherInstances(Parent,Ignore)
  375. return Instances
  376. end
  377. function ReplaceWelds(Extra)
  378.  
  379. for i, v3 in pairs(GatherAllInstances(Extra)) do
  380. if v3:isA("Weld") and not v3:isA("Motor6D") then
  381.  
  382. local replacedweld = Instance.new("Motor6D",v3.Parent)
  383.  
  384. replacedweld.Parent = v3.Parent
  385. replacedweld.C0 = v3.C0
  386. replacedweld.C1 = v3.C1
  387. replacedweld.Part0 = v3.Part0
  388. replacedweld.Part1 = v3.Part1
  389. replacedweld.Name = v3.Name
  390. v3:Destroy() end
  391. end
  392. end
  393. function WeldAllTo(Part1,Part2,Extra)
  394.  
  395. local EXCF = Part2.CFrame * Extra
  396.  
  397. for i, v3 in pairs(GatherAllInstances(Part2)) do
  398. if v3:isA("BasePart") then
  399.  
  400.  
  401. local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
  402.  
  403. v3.Anchored=false
  404. --v3.Transparency=0
  405. v3.CanCollide=false
  406.  
  407. v3.Parent = Part1
  408.  
  409. end
  410. end
  411. Part2:Destroy()
  412. end
  413.  
  414. function AddStoneTexture(part)
  415. coroutine.resume(coroutine.create(function()
  416. for i = 0,6,1 do
  417. local Tx = SToneTexture:Clone()
  418. Tx.Face = i
  419. Tx.Parent=part
  420. end
  421. end))
  422. end
  423. New = function(Object, Parent, Name, Data)
  424. local Object = Instance.new(Object)
  425. for Index, Value in pairs(Data or {}) do
  426. Object[Index] = Value
  427. end
  428. Object.Parent = Parent
  429. Object.Name = Name
  430. return Object
  431. end
  432. function Tran(Num)
  433. local GivenLeter = ""
  434. if Num == "1" then
  435. GivenLeter = "a"
  436. elseif Num == "2" then
  437. GivenLeter = "b"
  438. elseif Num == "3" then
  439. GivenLeter = "c"
  440. elseif Num == "4" then
  441. GivenLeter = "d"
  442. elseif Num == "5" then
  443. GivenLeter = "e"
  444. elseif Num == "6" then
  445. GivenLeter = "f"
  446. elseif Num == "7" then
  447. GivenLeter = "g"
  448. elseif Num == "8" then
  449. GivenLeter = "h"
  450. elseif Num == "9" then
  451. GivenLeter = "i"
  452. elseif Num == "10" then
  453. GivenLeter = "j"
  454. elseif Num == "11" then
  455. GivenLeter = "k"
  456. elseif Num == "12" then
  457. GivenLeter = "l"
  458. elseif Num == "13" then
  459. GivenLeter = "m"
  460. elseif Num == "14" then
  461. GivenLeter = "n"
  462. elseif Num == "15" then
  463. GivenLeter = "o"
  464. elseif Num == "16" then
  465. GivenLeter = "p"
  466. elseif Num == "17" then
  467. GivenLeter = "q"
  468. elseif Num == "18" then
  469. GivenLeter = "r"
  470. elseif Num == "19" then
  471. GivenLeter = "s"
  472. elseif Num == "20" then
  473. GivenLeter = "t"
  474. elseif Num == "21" then
  475. GivenLeter = "u"
  476. elseif Num == "22" then
  477. GivenLeter = "v"
  478. elseif Num == "23" then
  479. GivenLeter = "w"
  480. elseif Num == "24" then
  481. GivenLeter = "x"
  482. elseif Num == "25" then
  483. GivenLeter = "y"
  484. elseif Num == "26" then
  485. GivenLeter = "z"
  486. elseif Num == "27" then
  487. GivenLeter = "_"
  488. elseif Num == "28" then
  489. GivenLeter = "0"
  490. elseif Num == "29" then
  491. GivenLeter = "1"
  492. elseif Num == "30" then
  493. GivenLeter = "2"
  494. elseif Num == "31" then
  495. GivenLeter = "3"
  496. elseif Num == "32" then
  497. GivenLeter = "4"
  498. elseif Num == "33" then
  499. GivenLeter = "5"
  500. elseif Num == "34" then
  501. GivenLeter = "6"
  502. elseif Num == "35" then
  503. GivenLeter = "7"
  504. elseif Num == "36" then
  505. GivenLeter = "8"
  506. elseif Num == "37" then
  507. GivenLeter = "9"
  508. end
  509. return GivenLeter
  510.  
  511. end
  512. function MaybeOk(Mode,Extra)
  513. local ReturningValue = ""
  514. if Mode == 1 then
  515.  
  516.  
  517. -- v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  518.  
  519. --print(v.C0)
  520. local GivenText = ""
  521. local msg = Extra
  522. local Txt = ""
  523. local FoundTime=0
  524. local LastFound = 0
  525. delay(wait(0),function()
  526. for v3 = 1, #msg do
  527.  
  528. if string.sub(msg,0+v3,v3) == "," then
  529. local TheN = string.sub(msg,LastFound,v3-1)
  530. local NumTranslate = Tran(string.sub(msg,LastFound,v3-1))
  531. FoundTime = FoundTime + 1
  532. GivenText = GivenText..NumTranslate
  533. LastFound=v3+1
  534. Txt=""
  535. end
  536. Txt=string.sub(msg,1,v3)
  537. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  538. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  539. wait()
  540. -- Gui.ExtentsOffset = Vector3.new(0,3,0)
  541. end;
  542. ReturningValue=GivenText
  543. for v3 = 1, #Txt do
  544. Txt=string.sub(msg,-1,v3)
  545.  
  546. end;
  547. -- Gui:remove()
  548. end)
  549.  
  550. elseif Mode == 2 then
  551.  
  552. print("fat")
  553. end
  554. while ReturningValue == "" do wait() end
  555. return ReturningValue
  556.  
  557. end
  558. function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  559. --[[
  560. local NEWMESH = IT(MESH)
  561. if MESH == "SpecialMesh" then
  562. NEWMESH.MeshType = MESHTYPE
  563. if MESHID ~= "nil" and MESHID ~= "" then
  564. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  565. end
  566. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  567. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  568. end
  569.  
  570. end
  571. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  572. NEWMESH.Scale = SCALE
  573. NEWMESH.Parent = PARENT
  574. return NEWMESH
  575. ]]
  576. end
  577.  
  578. function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  579. --[[
  580. local NEWPART = IT("Part")
  581. NEWPART.formFactor = FORMFACTOR
  582. NEWPART.Reflectance = REFLECTANCE
  583. NEWPART.Transparency = TRANSPARENCY
  584. NEWPART.CanCollide = false
  585. NEWPART.Locked = true
  586. NEWPART.Anchored = true
  587. if ANCHOR == false then
  588. NEWPART.Anchored = false
  589. end
  590. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  591. NEWPART.Name = NAME
  592. NEWPART.Size = SIZE
  593. NEWPART.Position = Torso.Position
  594. NEWPART.Material = MATERIAL
  595. NEWPART:BreakJoints()
  596. NEWPART.Parent = PARENT
  597. return NEWPART
  598. ]]
  599. end
  600. local S = IT("Sound")
  601. function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  602. --[[
  603. local NEWSOUND = nil
  604. coroutine.resume(coroutine.create(function()
  605. NEWSOUND = S:Clone()
  606. NEWSOUND.Parent = PARENT
  607. NEWSOUND.Volume = VOLUME
  608. NEWSOUND.Pitch = PITCH
  609. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  610. NEWSOUND:play()
  611. if DOESLOOP == true then
  612. NEWSOUND.Looped = true
  613. else
  614. repeat wait(1) until NEWSOUND.Playing == false
  615. NEWSOUND:remove()
  616. end
  617. end))
  618. return NEWSOUND
  619. ]]
  620. end
  621. function WACKYEFFECT(Table)
  622. local TYPE = (Table.EffectType or "Sphere")
  623. local SIZE = (Table.Size or VT(1,1,1))
  624. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  625. local TRANSPARENCY = (Table.Transparency or 0)
  626. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  627. local CFRAME = (Table.CFrame or Torso.CFrame)
  628. local MOVEDIRECTION = (Table.MoveToPos or nil)
  629. local ROTATION1 = (Table.RotationX or 0)
  630. local ROTATION2 = (Table.RotationY or 0)
  631. local ROTATION3 = (Table.RotationZ or 0)
  632. local MATERIAL = (Table.Material or "Neon")
  633. local COLOR = (Table.Color or C3(1,1,1))
  634. local TIME = (Table.Time or 45)
  635. local SOUNDID = (Table.SoundID or nil)
  636. local SOUNDPITCH = (Table.SoundPitch or nil)
  637. local SOUNDVOLUME = (Table.SoundVolume or nil)
  638. coroutine.resume(coroutine.create(function()
  639. local PLAYSSOUND = false
  640. local SOUND = nil
  641. local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  642. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  643. PLAYSSOUND = true
  644. SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  645. end
  646. EFFECT.Color = COLOR
  647. local MSH = nil
  648. if TYPE == "Sphere" then
  649. MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  650. elseif TYPE == "Cylinder" then
  651. MSH = CreateMesh2("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,0))
  652. elseif TYPE == "Block" then
  653. MSH = IT("BlockMesh",EFFECT)
  654. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  655. elseif TYPE == "Cube" then
  656. MSH = IT("BlockMesh",EFFECT)
  657. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  658.  
  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. SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  703.  
  704. end
  705. if MOVEDIRECTION ~= nil then
  706. local ORI = EFFECT.Orientation
  707. SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60)
  708. SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60)
  709.  
  710.  
  711. end
  712. MSH.Scale = MSH.Scale - GROWTH/TIME
  713. SetTween(MSH,{Scale=ENDSIZE},"Linear","InOut",TIME/60)
  714. if TYPE == "Wave" then
  715.  
  716. SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Linear","InOut",TIME/60)
  717. end
  718. for LOOP = 1, TIME+1 do
  719. wait(.05)
  720. --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0)
  721.  
  722.  
  723. if TYPE == "Block" then
  724.  
  725. -- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0)
  726. else
  727. -- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0)
  728.  
  729. end
  730. if MOVEDIRECTION ~= nil then
  731. local ORI = EFFECT.Orientation
  732. -- SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0)
  733. -- SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0)
  734.  
  735.  
  736. end
  737. end
  738. game:GetService("Debris"):AddItem(EFFECT, 15)
  739. if PLAYSSOUND == false then
  740. EFFECT:remove()
  741. else
  742. SOUND.Stopped:Connect(function()
  743. EFFECT:remove()
  744. end)
  745. end
  746. else
  747. if PLAYSSOUND == false then
  748. EFFECT:remove()
  749. else
  750. repeat wait() until SOUND.Playing == false
  751. EFFECT:remove()
  752. end
  753. end
  754. end))
  755. end
  756. ----------------------
  757. --[End Of Functions]--
  758. ----------------------
  759. ------------------
  760. --[Gun]--
  761. ------------------
  762. function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  763. local Part = Create("Part"){
  764.  
  765. Parent = Parent,
  766. Reflectance = Reflectance,
  767. Transparency = Transparency,
  768. CanCollide = false,
  769. Locked = true,
  770. BrickColor = BrickColor.new(tostring(BColor)),
  771. Name = Name,
  772. Size = Size,
  773. Material = Material,
  774. }
  775. RemoveOutlines(Part)
  776. return Part
  777. end
  778. ------------------
  779. --[End of Gun]--
  780. ------------------
  781. ---------------
  782. --[Particles]--
  783. ---------------
  784.  
  785.  
  786. ----------------------
  787. --[End Of Particles]--
  788. ----------------------
  789. -----------------
  790. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  791.  
  792. if hit.Parent == nil then
  793. return
  794. end
  795. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  796. for _,v in pairs(hit.Parent:children()) do
  797. if v:IsA("Humanoid") then
  798. if h.Health > 0.0001 then
  799. h = v else end
  800. end
  801. end
  802.  
  803. if h == nil then
  804. return
  805. elseif h ~= nil and h.Health < 0.001 then
  806. return
  807. elseif h ~= nil and h.Parent:FindFirstChild("Fly away") then
  808. return
  809. end
  810.  
  811.  
  812. --gg
  813.  
  814. --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  815. coroutine.resume(coroutine.create(function()
  816. if h.Health >9999999 and minim <9999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  817.  
  818.  
  819. local FATag = Instance.new("Model",h.Parent)
  820. FATag.Name = "Fly away"
  821. game:GetService("Debris"):AddItem(FATag, 2.5)
  822.  
  823.  
  824. for _,v in pairs(h.Parent:children()) do
  825. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  826. v.Anchored=true
  827. end
  828. end
  829. wait(.25)
  830.  
  831. if h.Parent:FindFirstChildOfClass("Body Colors")then
  832. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  833. end
  834. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  835.  
  836. coroutine.resume(coroutine.create(function()
  837.  
  838.  
  839. local YourGone = Instance.new("Part")
  840. YourGone.Reflectance = 0
  841. YourGone.Transparency = 1
  842. YourGone.CanCollide = false
  843. YourGone.Locked = true
  844. YourGone.Anchored=true
  845. YourGone.BrickColor = BrickColor.new("Really blue")
  846. YourGone.Name = "YourGone"
  847. YourGone.Size = Vector3.new()
  848. YourGone.Material = "SmoothPlastic"
  849. YourGone:BreakJoints()
  850. YourGone.Parent = FoundTorso
  851. YourGone.CFrame = FoundTorso.CFrame
  852.  
  853. local NewParticle = Instance.new("ParticleEmitter")
  854. NewParticle.Parent = YourGone
  855. NewParticle.Acceleration = Vector3.new(0,0,0)
  856. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  857. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  858. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  859. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  860. NewParticle.Speed = NumberRange.new(0,0.0)
  861. NewParticle.ZOffset = 2
  862. NewParticle.Texture = "rbxassetid://243660364"
  863. NewParticle.RotSpeed = NumberRange.new(-0,0)
  864. NewParticle.Rotation = NumberRange.new(-180,180)
  865. NewParticle.Enabled = false
  866. game:GetService("Debris"):AddItem(YourGone, 3)
  867. for i = 0,2,1 do
  868. NewParticle:Emit(1)
  869. so("1448044156", FoundTorso,2, 1)
  870. h.Parent:BreakJoints()
  871. YourGone.CFrame = FoundTorso.CFrame
  872. for _,v in pairs(h.Parent:children()) do
  873. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  874. v.Anchored=false
  875. -- v.Material = "Neon"
  876. --v.BrickColor = BrickColor.new("Really red")
  877. if v:FindFirstChildOfClass("SpecialMesh")then
  878. --v:Destroy()
  879. end
  880. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  881. -- v:Destroy()
  882. end
  883. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  884.  
  885. vp.Parent = v
  886. game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
  887.  
  888.  
  889. end
  890.  
  891.  
  892.  
  893. end
  894.  
  895.  
  896. wait(.2)
  897. end
  898. wait(.1)
  899. NewParticle:Emit(3)
  900. so("1448044156", FoundTorso,2, .8)
  901. h.Parent:BreakJoints()
  902. YourGone.CFrame = FoundTorso.CFrame
  903. for _,v in pairs(h.Parent:children()) do
  904. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  905. v.Anchored=false
  906. -- v.Material = "Neon"
  907. --v.BrickColor = BrickColor.new("Really red")
  908. if v:FindFirstChildOfClass("SpecialMesh")then
  909. --v:Destroy()
  910. end
  911. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  912. -- v:Destroy()
  913. end
  914. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  915.  
  916. vp.Parent = v
  917. game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
  918.  
  919.  
  920. end
  921.  
  922.  
  923.  
  924. end
  925.  
  926.  
  927.  
  928. end))
  929.  
  930. wait(.1)
  931.  
  932.  
  933.  
  934.  
  935. end
  936.  
  937.  
  938. end))
  939. if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  940. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  941. return
  942. end
  943. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  944. game:GetService("Debris"):AddItem(c, 0.5)
  945. if HitSound ~= nil and HitPitch ~= nil then
  946. so(HitSound, hit, 1, HitPitch)
  947. end
  948. local Damage = math.random(minim, maxim)
  949. local blocked = false
  950. local block = hit.Parent:findFirstChild("Block")
  951. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  952. blocked = true
  953. block.Value = block.Value - 1
  954. print(block.Value)
  955. end
  956. if blocked == false then
  957. h.Health = h.Health - Damage
  958. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0))
  959. else
  960. h.Health = h.Health - Damage / 2
  961. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0))
  962.  
  963. end
  964. if Type == "Knockdown" then
  965. local hum = h
  966.  
  967. hum.PlatformStand = true
  968. coroutine.resume(coroutine.create(function(HHumanoid)
  969.  
  970. wait(.2)
  971. HHumanoid.PlatformStand = false
  972. end
  973. ), hum)
  974.  
  975.  
  976.  
  977. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  978. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  979. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,FoundTorso.Position).lookVector * knockback, Parent = hit})
  980. 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})
  981. game:GetService("Debris"):AddItem(bodvol, .2)
  982. game:GetService("Debris"):AddItem(rl, 0.2)
  983. elseif Type == "Knockdown2" then
  984. local hum = h
  985.  
  986. hum.PlatformStand = true
  987. coroutine.resume(coroutine.create(function(HHumanoid)
  988.  
  989.  
  990. Combo = 1 wait(.2)
  991. HHumanoid.PlatformStand = false
  992. end
  993. ), hum)
  994. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  995. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  996. 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})
  997. game:GetService("Debris"):AddItem(bodvol, 0.2)
  998. game:GetService("Debris"):AddItem(rl, 0.2)
  999. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1000. game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1001. elseif Type == "Normal" then
  1002. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1003. if knockback > 0 then
  1004.  
  1005. local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1006. vp.Parent = HTorso
  1007. end
  1008. game:GetService("Debris"):AddItem(vp, 0.25)
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022. elseif Type== "Instakill" then
  1023. coroutine.resume(coroutine.create(function()
  1024. if (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  1025.  
  1026.  
  1027. local FATag = Instance.new("Model",h.Parent)
  1028. FATag.Name = "Fly away"
  1029. game:GetService("Debris"):AddItem(FATag, 2.5)
  1030.  
  1031.  
  1032. for _,v in pairs(h.Parent:children()) do
  1033. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1034. v.Anchored=true
  1035. end
  1036. end
  1037. wait(.25)
  1038.  
  1039. if h.Parent:FindFirstChildOfClass("Body Colors")then
  1040. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  1041. end
  1042. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1043.  
  1044. coroutine.resume(coroutine.create(function()
  1045.  
  1046.  
  1047. local YourGone = Instance.new("Part")
  1048. YourGone.Reflectance = 0
  1049. YourGone.Transparency = 1
  1050. YourGone.CanCollide = false
  1051. YourGone.Locked = true
  1052. YourGone.Anchored=true
  1053. YourGone.BrickColor = BrickColor.new("Really blue")
  1054. YourGone.Name = "YourGone"
  1055. YourGone.Size = Vector3.new()
  1056. YourGone.Material = "SmoothPlastic"
  1057. YourGone:BreakJoints()
  1058. YourGone.Parent = FoundTorso
  1059. YourGone.CFrame = FoundTorso.CFrame
  1060.  
  1061. local NewParticle = Instance.new("ParticleEmitter")
  1062. NewParticle.Parent = YourGone
  1063. NewParticle.Acceleration = Vector3.new(0,0,0)
  1064. NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)})
  1065. NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0))
  1066. NewParticle.Lifetime = NumberRange.new(0.55,0.95)
  1067. NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)})
  1068. NewParticle.Speed = NumberRange.new(0,0.0)
  1069. NewParticle.ZOffset = 2
  1070. NewParticle.Texture = "rbxassetid://243660364"
  1071. NewParticle.RotSpeed = NumberRange.new(-0,0)
  1072. NewParticle.Rotation = NumberRange.new(-180,180)
  1073. NewParticle.Enabled = false
  1074. game:GetService("Debris"):AddItem(YourGone, 3)
  1075. for i = 0,2,1 do
  1076. NewParticle:Emit(1)
  1077. so("1448044156", FoundTorso,2, 1)
  1078. h.Parent:BreakJoints()
  1079. YourGone.CFrame = FoundTorso.CFrame
  1080. for _,v in pairs(h.Parent:children()) do
  1081. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1082. v.Anchored=false
  1083. -- v.Material = "Neon"
  1084. --v.BrickColor = BrickColor.new("Really red")
  1085. if v:FindFirstChildOfClass("SpecialMesh")then
  1086. --v:Destroy()
  1087. end
  1088. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1089. -- v:Destroy()
  1090. end
  1091. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1092.  
  1093. vp.Parent = v
  1094. game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
  1095.  
  1096.  
  1097. end
  1098.  
  1099.  
  1100.  
  1101. end
  1102.  
  1103.  
  1104. wait(.2)
  1105. end
  1106. wait(.1)
  1107. NewParticle:Emit(3)
  1108. so("1448044156", FoundTorso,2, .8)
  1109. h.Parent:BreakJoints()
  1110. YourGone.CFrame = FoundTorso.CFrame
  1111. for _,v in pairs(h.Parent:children()) do
  1112. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1113. v.Anchored=false
  1114. -- v.Material = "Neon"
  1115. --v.BrickColor = BrickColor.new("Really red")
  1116. if v:FindFirstChildOfClass("SpecialMesh")then
  1117. --v:Destroy()
  1118. end
  1119. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1120. -- v:Destroy()
  1121. end
  1122. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1123.  
  1124. vp.Parent = v
  1125. game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
  1126.  
  1127.  
  1128. end
  1129.  
  1130.  
  1131.  
  1132. end
  1133.  
  1134.  
  1135.  
  1136. end))
  1137.  
  1138. wait(.1)
  1139.  
  1140.  
  1141.  
  1142.  
  1143. end
  1144.  
  1145.  
  1146. end))
  1147.  
  1148. elseif Type == "HPSteal" then
  1149. Humanoid.Health = Humanoid.Health + Damage
  1150. local hum = h
  1151.  
  1152. hum.PlatformStand = true
  1153. coroutine.resume(coroutine.create(function(HHumanoid)
  1154.  
  1155.  
  1156. Combo = 1 wait(.2)
  1157. HHumanoid.PlatformStand = false
  1158. end
  1159. ), hum)
  1160. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1161. local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback})
  1162. 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})
  1163. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1164. game:GetService("Debris"):AddItem(rl, 0.2)
  1165. local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart})
  1166. game:GetService("Debris"):AddItem(bodyVelocity2, 0.1)
  1167.  
  1168. elseif Type == "Impale" then
  1169.  
  1170. CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
  1171. hit.Parent.Humanoid.PlatformStand = true
  1172.  
  1173.  
  1174. wait(1)
  1175. hit.Parent.Humanoid.PlatformStand = false
  1176. elseif Type == "IgnoreType" then
  1177.  
  1178.  
  1179.  
  1180.  
  1181. elseif Type == "Up" then
  1182. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1183. game:GetService("Debris"):AddItem(bodyVelocity, 0.1)
  1184. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  1185. game:GetService("Debris"):AddItem(bodyVelocity, .1)
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192. elseif Type == "Snare" then
  1193. local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso"))})
  1194. game:GetService("Debris"):AddItem(bp, 1)
  1195.  
  1196.  
  1197. elseif Type == "Freeze2" then
  1198. 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})
  1199. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  1200. hit.Parent.Torso.Anchored = true
  1201. coroutine.resume(coroutine.create(function(Part)
  1202.  
  1203. wait(1.5)
  1204. Part.Anchored = false
  1205. end
  1206. ), hit.Parent.Torso)
  1207. game:GetService("Debris"):AddItem(BodPos, 3)
  1208. game:GetService("Debris"):AddItem(BodGy, 3)
  1209. end
  1210. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  1211. game:GetService("Debris"):AddItem(debounce, Delay)
  1212. c = Instance.new("ObjectValue")
  1213. c.Name = "creator"
  1214. c.Value = Player
  1215. c.Parent = h
  1216. game:GetService("Debris"):AddItem(c, 0.5)
  1217. end
  1218. end
  1219. ShowDamage = function(Pos, Text, Time, Color)
  1220.  
  1221. local Rate = 0.033333333333333
  1222. if not Pos then
  1223. local Pos = Vector3.new(0, 0, 0)
  1224. end
  1225. local Text = Text or ""
  1226. local Time = Time or 2
  1227. if not Color then
  1228. local Color = Color3.new(1, 0, 1)
  1229. end
  1230. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1231. EffectPart.Anchored = true
  1232. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(2, 0, 2, 0), Adornee = EffectPart, Parent = EffectPart})
  1233. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "DMG: "..Text.."", TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1234. game.Debris:AddItem(EffectPart, Time + 0.1)
  1235. EffectPart.Parent = game:GetService("Workspace")
  1236. delay(0, function()
  1237.  
  1238. local Frames = Time / Rate
  1239.  
  1240.  
  1241.  
  1242. print(Frames)
  1243. TextLabel.TextTransparency=0
  1244. EffectPart.CFrame=CFrame.new(Pos)
  1245. wait()
  1246. SetTween(TextLabel,{TextTransparency=1},"Quad","In",Frames/60)
  1247. SetTween(TextLabel,{Rotation=math.random(-25,25)},"Elastic","InOut",Frames/60)
  1248. SetTween(TextLabel,{TextColor3=Color3.new(1,0,0)},"Elastic","InOut",Frames/60)
  1249. SetTween(EffectPart,{CFrame = CFrame.new(Pos) + Vector3.new(math.random(-5,5), math.random(1,5), math.random(-5,5))},"Linear","InOut",Frames/60)
  1250. wait(Frames/60)
  1251.  
  1252. if EffectPart and EffectPart.Parent then
  1253. EffectPart:Destroy()
  1254. end
  1255. end
  1256. )
  1257. end
  1258. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2)
  1259.  
  1260.  
  1261.  
  1262.  
  1263. local Type=""
  1264. if mememode == true then
  1265.  
  1266. Type= "Instakill"
  1267. else
  1268. Type=Type2
  1269. end
  1270. if Type2 == "NormalKnockdown" then
  1271. Type= "Knockdown"
  1272. end
  1273.  
  1274. for _,c in pairs(workspace:children()) do
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280. local hum = c:FindFirstChild("Humanoid")
  1281. for _,v in pairs(c:children()) do
  1282. if v:IsA("Humanoid") then
  1283. hum = v
  1284. end
  1285. end
  1286.  
  1287.  
  1288.  
  1289.  
  1290. if hum ~= nil then
  1291. local head = c:findFirstChild("Head")
  1292. if head ~= nil then
  1293. local targ = head.Position - Part.Position
  1294. local mag = targ.magnitude
  1295. if mag <= magni and c.Name ~= Player.Name then
  1296. Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2)
  1297. end
  1298. end
  1299. end
  1300. end
  1301. end
  1302. function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type)
  1303. local DGP = Instance.new("Part")
  1304. DGP.Parent = Character
  1305. DGP.Size = Vector3.new(0.05, 0.05, 0.05)
  1306. DGP.Transparency = 1
  1307. DGP.CanCollide = false
  1308. DGP.Anchored = true
  1309. RemoveOutlines(DGP)
  1310. DGP.Position=DGP.Position + Vector3.new(0,-.1,0)
  1311. DGP.CFrame = HTCF
  1312. coroutine.resume(coroutine.create(function()
  1313. MagniDamage(DGP, magni, mindam, maxdam, knock, Type)
  1314. end))
  1315. game:GetService("Debris"):AddItem(DGP, .05)
  1316. DGP.Archivable = false
  1317. end
  1318.  
  1319. function Reflect(direction, normal)
  1320. return direction - 2 * normal:Dot(direction) * normal
  1321. end
  1322. function ProjectileDmg(MinDmg1,MaxDmg1,Lookpos1,Lookray1,Aura1,Type,Partf)
  1323.  
  1324. if Lookray1 ~= nil and Lookray1.Parent:FindFirstChildOfClass("Humanoid") then
  1325. coroutine.resume(coroutine.create(function()
  1326. Damagefunc(Partf, Lookray1, MinDmg1, MaxDmg1, MinDmg1, Type, RootPart, 0.1, "851453784", 1.2) end))
  1327. else
  1328. CFMagniDamage(CF(Lookpos1),Aura1, MinDmg1, MaxDmg1, MinDmg1, Type)
  1329. end
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335. end
  1336. function BulletHitEffectSpawn(EffectCF,EffectName)
  1337. local MainEffectHolder=Instance.new("Part",Effects)
  1338. MainEffectHolder.Reflectance = 0
  1339. MainEffectHolder.Transparency = 1
  1340. MainEffectHolder.CanCollide = false
  1341. MainEffectHolder.Locked = true
  1342. MainEffectHolder.Anchored=true
  1343. MainEffectHolder.BrickColor = BrickColor.new("Bright green")
  1344. MainEffectHolder.Name = "Bullet"
  1345. MainEffectHolder.Size = Vector3.new(.05,.05,.05)
  1346. MainEffectHolder.Material = "Neon"
  1347. MainEffectHolder:BreakJoints()
  1348. MainEffectHolder.CFrame = EffectCF
  1349. local EffectAttach=Instance.new("Attachment",MainEffectHolder)
  1350. game:GetService("Debris"):AddItem(MainEffectHolder, 10)
  1351. if EffectName == "Smoke1" then
  1352. EffectAttach.Orientation = Vector3.new(90,0,0)
  1353. --local SpawnedParticle = EffectPack.Effect1:Clone()
  1354. SpawnedParticle.Parent = MainEffectHolder
  1355. SpawnedParticle:Emit(100)
  1356. game:GetService("Debris"):AddItem(MainEffectHolder, .5)
  1357.  
  1358. end
  1359.  
  1360. if EffectName == "Smoke2" then
  1361. EffectAttach.Orientation = Vector3.new(90,0,0)
  1362. --local SpawnedParticle = EffectPack.Fog:Clone()
  1363. SpawnedParticle.Parent = MainEffectHolder
  1364. SpawnedParticle:Emit(100)
  1365. game:GetService("Debris"):AddItem(MainEffectHolder, .75)
  1366.  
  1367. end
  1368.  
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374. if EffectName == "Smash1" then
  1375. EffectAttach.Orientation = Vector3.new(90,0,0)
  1376. --local SpawnedParticle = EffectPack.Smash1:Clone()
  1377. -- SpawnedParticle.Parent = MainEffectHolder
  1378. -- SpawnedParticle:Emit(10)
  1379. game:GetService("Debris"):AddItem(MainEffectHolder, .75)
  1380.  
  1381. end
  1382.  
  1383.  
  1384.  
  1385.  
  1386. if EffectName == "Smash2" then
  1387. EffectAttach.Orientation = Vector3.new(90,0,0)
  1388. --local SpawnedParticle = EffectPack.Smash2:Clone()
  1389. -- SpawnedParticle.Parent = MainEffectHolder
  1390. -- SpawnedParticle:Emit(1)
  1391. game:GetService("Debris"):AddItem(MainEffectHolder, .5)
  1392.  
  1393. end
  1394.  
  1395. if EffectName == "Explode" then
  1396. EffectAttach.Orientation = Vector3.new(90,0,0)
  1397. -- local SpawnedParticle1 = EffectPack.Explode_Fire_Effect:Clone()
  1398. -- SpawnedParticle1.Parent = MainEffectHolder
  1399. -- SpawnedParticle1:Emit(50)
  1400.  
  1401.  
  1402. -- local SpawnedParticle2 = EffectPack.Explode_Smoke2_Effect:Clone()
  1403. -- SpawnedParticle2.Parent = MainEffectHolder
  1404. -- SpawnedParticle2:Emit(25)
  1405. --
  1406.  
  1407. -- local SpawnedParticle3 = EffectPack.Explode_Smoke_Effect:Clone()
  1408. -- SpawnedParticle3.Parent = MainEffectHolder
  1409. -- SpawnedParticle3:Emit(85)
  1410. game:GetService("Debris"):AddItem(MainEffectHolder, 2)
  1411.  
  1412.  
  1413. end
  1414.  
  1415. end
  1416. function SpawnBullet(CFpos,BForce,DForce,waight,Stone,ExtraTable)
  1417. coroutine.resume(coroutine.create(function()
  1418. local Bscale = 2
  1419. local dahspeed=0
  1420. local IsHoming = (ExtraTable.Homing or false)
  1421. local NoGrav = (ExtraTable.NoGrav or 0)
  1422. local BounceIs=(ExtraTable.Bounce or false)
  1423. local BounceTimes=(ExtraTable.BounceTimes or 0)
  1424. local tail=(ExtraTable.tail or nil)
  1425.  
  1426. local BounceHitEF=(ExtraTable.BounceHitEffect or "")
  1427. local HitEF=(ExtraTable.HitEffect or "")
  1428.  
  1429. -------------------------------------------------
  1430. -- custom part
  1431. -------------------------------------------------
  1432. if Stone.Ragdoll:FindFirstChild("Missile") and IsHoming == false then
  1433. Stone.Ragdoll:FindFirstChild("Missile"):Destroy()
  1434. SetTween(Stone.Ragdoll,{Transparency=0},"Quad","InOut",.25)
  1435. end
  1436. -------------------------------------------------
  1437. -- custom end
  1438. -------------------------------------------------
  1439.  
  1440. BounceTimes=BounceTimes-1
  1441.  
  1442. if BounceIs == true and BounceTimes < .5 then
  1443. BounceIs=false
  1444. end
  1445. if BounceIs == true and BForce < 5.5 then
  1446. BounceIs=false
  1447. end
  1448.  
  1449.  
  1450.  
  1451. if attack == true and mememode == true then
  1452. dahspeed=3
  1453. end --/dahspeed
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459. local speed = BForce
  1460.  
  1461. local grav = waight
  1462.  
  1463. local stoptime=0
  1464. local Dampingforce = 0
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471. game:GetService("Debris"):AddItem(Stone, 30)
  1472.  
  1473. -- local tilt=angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5)))
  1474. Stone.CFrame=CFpos
  1475. local hitthing=nil
  1476. swait()
  1477.  
  1478.  
  1479. if IsHoming == true then
  1480.  
  1481. end
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487. for i = 0,200 do
  1488. if Stone.Parent ~= Effects then
  1489. hitthing = workspace
  1490. end
  1491.  
  1492. local gravfix=IsHoming
  1493. if gravfix == true and i<25 then
  1494. gravfix=false
  1495. end
  1496. if gravfix == false and NoGrav == 0 then
  1497. if Dampingforce < .99 then
  1498. stoptime = stoptime + 1/10
  1499. elseif Dampingforce > .99 then
  1500. Dampingforce=.99
  1501. end
  1502. end
  1503. Dampingforce = stoptime/DForce
  1504. if hitthing == nil then
  1505.  
  1506. local possave = Stone.Position
  1507. local cfsave = Stone.CFrame
  1508. local Lookray,Lookpos,test1 = rayCast(Stone.Position, Stone.CFrame.lookVector, ((speed-(speed*Dampingforce))+grav*Dampingforce)*2, Character)
  1509. local spikep1=Stone.Position-Stone.CFrame.lookVector*-((speed-(speed*Dampingforce))+-grav*Dampingforce )
  1510. local spikep2=Lookpos
  1511. if Lookray ~= nil then
  1512. hitthing=Lookray
  1513. coroutine.resume(coroutine.create(function()
  1514. -- onTouch(Stone,5,Lookray)
  1515. end))
  1516. local slookv1=Stone.CFrame.LookVector
  1517. local slookv2=Stone.CFrame.RightVector
  1518. local slookv3=Stone.CFrame.UpVector
  1519. if BounceIs == false then
  1520. wait()
  1521. -------------------------------------------------
  1522. -- custom part
  1523. -------------------------------------------------
  1524. if Stone.Ragdoll:FindFirstChild("Missile") then
  1525.  
  1526. SetTween(Stone.Ragdoll.ragjoint,{C0=cn(0,0,0)*angles(math.rad(90),0,0)},"Elastic","Out",1.0)
  1527. so(187259655,Stone,5,1)
  1528. BulletHitEffectSpawn(CF(Lookpos,Lookpos+test1),"Explode")
  1529.  
  1530. for i = 1, 10 do
  1531. local Color = Lookray.BrickColor
  1532. local Materials = Lookray.Material
  1533. local groundpart = CFuncs.Part.Create( Effects, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(50, 100) / 200, math.random(50, 100) / 200, math.random(50, 100) / 200))
  1534. groundpart.Anchored = false
  1535. groundpart.Material = Materials
  1536. groundpart.CanCollide = true
  1537. groundpart.Friction = 0.1
  1538. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  1539. groundpart.CFrame = CF(Lookpos,Lookpos+test1) * cn(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)))
  1540. game:GetService("Debris"):AddItem(groundpart, 5)
  1541. coroutine.resume(coroutine.create(function()
  1542. wait(math.random(350, 400)/100)
  1543. groundpart.CanCollide = false
  1544. end))
  1545. end
  1546. for i = 1, 10 do
  1547. local Color = Lookray.BrickColor
  1548. local Materials = Lookray.Material
  1549. local groundpart = CFuncs.Part.Create( Effects, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(25, 50) / 200, math.random(25, 50) / 200, math.random(25, 50) / 200))
  1550. groundpart.Anchored = false
  1551. groundpart.Material = Materials
  1552. groundpart.CanCollide = true
  1553. groundpart.Friction = 0.1
  1554. groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50))
  1555. groundpart.CFrame = CF(Lookpos,Lookpos+test1) * cn(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)),math.rad( math.random(-50, 50)))
  1556. game:GetService("Debris"):AddItem(groundpart, 5)
  1557. coroutine.resume(coroutine.create(function()
  1558. wait(math.random(350, 400)/100)
  1559. groundpart.CanCollide = false
  1560. end))
  1561. end
  1562. ProjectileDmg(60,75,Lookpos,nil,15,"Knockdown",Stone)
  1563. SetTween(Stone,{CFrame=cn(Lookpos,Lookpos+cfsave.LookVector)*angles(0,0,0)},"Elastic","Out",1)
  1564. coroutine.resume(coroutine.create(function()
  1565. Stone.Ragdoll:FindFirstChild("Missile")["Rocket Thrust Loop"]:Stop()
  1566. end))
  1567. if BounceIs == false then
  1568. if Stone.Ragdoll:FindFirstChild("Missile") then
  1569. for i, v3 in pairs(GatherAllInstances(Stone.Ragdoll:FindFirstChild("Missile"))) do
  1570. if v3:IsA("ParticleEmitter") then
  1571. v3.Enabled = false
  1572. end
  1573. end
  1574. SetTween(Stone.Ragdoll:FindFirstChild("Missile"),{Transparency=1},"Quad","Out",1)
  1575. game:GetService("Debris"):AddItem(Stone.Ragdoll:FindFirstChild("Missile"), 2)
  1576. end
  1577. end
  1578. else
  1579. SetTween(Stone,{CFrame=cn(spikep2,spikep1)*angles(0,0,0)},"Elastic","Out",1.0)
  1580. BulletHitEffectSpawn(CF(Lookpos,Lookpos+test1),"Smoke2")
  1581.  
  1582. SetTween(Stone.Ragdoll.ragjoint,{C0=cn(0,0,0)*angles(math.rad(90),0,0)},"Elastic","Out",1.0)
  1583. so(138080614,Stone,3,1)
  1584. ProjectileDmg(20,25,Lookpos,Lookray,8,"Knockdown",Stone)
  1585. end
  1586. -------------------------------------------------
  1587. -- custom end
  1588. -------------------------------------------------
  1589. SetTween(Stone,{Transparency=1},"Elastic","InOut",1.5)
  1590. else
  1591. -------------------------------------------------
  1592. -- custom part
  1593. -------------------------------------------------
  1594. SetTween(Stone.Ragdoll.ragjoint,{C0=cn(0,0,0)*angles(math.rad(0),0,0)},"Elastic","Out",0.0)
  1595. so(545219984,Stone,2,1)
  1596. ProjectileDmg(10,20,Lookpos,Lookray,5,"Normal",Stone)
  1597. -------------------------------------------------
  1598. -- custom end
  1599. -------------------------------------------------
  1600. BulletHitEffectSpawn(CF(Lookpos,Lookpos+test1),"Smoke1")
  1601.  
  1602. local slookv=Stone.CFrame.lookVector
  1603. Stone.CFrame=cn(Lookpos,Lookpos+Stone.Position)*angles(0,math.rad(0),0)
  1604.  
  1605. end
  1606. swait()
  1607. if BounceIs == true then
  1608. --warn("----------")
  1609. --print((speed-(speed*Dampingforce))+grav*Dampingforce)
  1610. --warn("----------")
  1611. --Reflect(slookv1,test1)
  1612. local nextspeed = ((speed-(speed*Dampingforce))+grav*Dampingforce)/1.25
  1613. if NoGrav == 1 then
  1614. NoGrav=0
  1615. nextspeed=speed
  1616. end
  1617. swait()
  1618. local BounceDirPos = CF( possave,Lookpos+test1 ).lookVector
  1619. SpawnBullet( CF(Stone.CFrame.p,Lookpos+Reflect(slookv1,test1)) ,nextspeed ,DForce,waight,Stone,{Bounce=true,NoGrav=NoGrav,BounceTimes=BounceTimes,tail = tail})
  1620. end
  1621. break
  1622. else
  1623. -------------------------------------------------
  1624. -- custom part
  1625. -------------------------------------------------
  1626. if IsHoming == false and NoGrav == 0 then
  1627. SetTween(Stone.Ragdoll.ragjoint,{C0=Stone.Ragdoll.ragjoint.C0*angles(math.rad(-20),0,0)},"Linear","Out",.05)
  1628. else
  1629. SetTween(Stone.Ragdoll.ragjoint,{C0=cn(0,0,0)*angles(math.rad(-90),0,0)},"Elastic","Out",1.0)
  1630. end
  1631. -------------------------------------------------
  1632. -- custom end
  1633. -------------------------------------------------
  1634. if TargetMode1=="nil" or ZT==false then
  1635. IsHoming = false
  1636. end
  1637. if IsHoming == false then
  1638. if NoGrav ~= 0 then
  1639. Dampingforce = 0 end
  1640. SetTween(Stone,{CFrame= cf(Stone.CFrame.p, (Stone.CFrame*cn(0,0,-speed)).p+Vector3.new(0,-grav*Dampingforce,0) )*cn(0,0,-(speed-(speed*Dampingforce))+-grav*Dampingforce ) },"Linear","InOut",.1)
  1641. else
  1642. if i>25 then
  1643. Dampingforce = 0
  1644. coroutine.resume(coroutine.create(function()
  1645. local mag = (Stone.CFrame.p*VT(1,0,1)-SelectedTarget1.CFrame.p*VT(1,0,1)).magnitude
  1646. local forceDown = 0
  1647. local HightMag = (Stone.CFrame.p*VT(0,1,0)-SelectedTarget1.CFrame.p*VT(0,1,0)).magnitude
  1648. if mag < (DForce*1+(HightMag))/1.5 then
  1649. IsHoming = false
  1650. NoGrav = 1
  1651. end
  1652. if IsHoming == true then
  1653. SetTween(Stone,{CFrame= cf(Stone.CFrame.p, Stone.CFrame.p+(CF(Stone.CFrame.p*VT(1,0,1),SelectedTarget1.CFrame.p*VT(1,0,1) ).lookVector ) )*cn(0,0,-speed*2 ) },"Linear","InOut",.2)
  1654. else
  1655.  
  1656. SetTween(Stone,{CFrame= cf(Stone.CFrame.p, Stone.CFrame.p+(CF(Stone.CFrame.p*VT(1,1,1),SelectedTarget1.CFrame.p*VT(1,1,1) ).lookVector ) )*cn(0,0,-speed/2 ) },"Linear","InOut",0)
  1657.  
  1658. end
  1659. end))
  1660. else
  1661. SetTween(Stone,{CFrame= cf(Stone.CFrame.p, (Stone.CFrame*cn(0,0,-speed)).p+Vector3.new(0,-grav*Dampingforce,0) )*cn(0,0,-(speed-(speed*Dampingforce))+-grav*Dampingforce ) },"Linear","InOut",.1)
  1662. end
  1663. end
  1664.  
  1665. end
  1666. --print(-(speed-(speed*Dampingforce)) )
  1667. swait()
  1668. end
  1669. end
  1670. if BounceIs == false then
  1671. coroutine.resume(coroutine.create(function()
  1672. if tail ~= nil then
  1673. tail:Destroy()
  1674. end
  1675. end))
  1676. wait(2)
  1677. Stone:Destroy()
  1678. end
  1679. if hitthing == workspace or hitthing == nil then
  1680. Stone:Destroy() end
  1681. end))
  1682. end
  1683. -----------------
  1684.  
  1685. --[[
  1686. for i, v in pairs(C:GetChildren()) do
  1687. if v:IsA("Accessory")then
  1688. v:Destroy()
  1689. end
  1690. if v:IsA("BasePart")then
  1691. v.Transparency =1
  1692. if v.Name == "Head" then
  1693. v:FindFirstChildOfClass("Decal"):Destroy()
  1694. end
  1695. end
  1696. end--]]
  1697. --[[
  1698. local tweeningInformation = TweenInfo.new(
  1699. 0.5,
  1700. Enum.EasingStyle.Back,
  1701. Enum.EasingDirection.Out,
  1702. 0,
  1703. false,
  1704. 0
  1705. )
  1706. --]]
  1707. local RJW=weld(RJ.Parent,RJ.Part0,RJ.Part1,RJ.C0)
  1708. RJW.C1 = RJ.C1
  1709. RJW.Name = RJ.Name
  1710. local NeckW=weld(Neck.Parent,Neck.Part0,Neck.Part1,Neck.C0)
  1711. NeckW.C1 = Neck.C1
  1712. NeckW.Name = Neck.Name
  1713. --print(WRJ.Parent.Name)
  1714. local RW=weld(Torso,Torso,RightArm,cf(0,0,0))
  1715. local LW=weld(Torso,Torso,LeftArm,cf(0,0,0))
  1716. local RH=weld(Torso,Torso,RightLeg,cf(0,0,0))
  1717. local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0))
  1718. RW.C1 = cn(0, 0.5, 0)
  1719. LW.C1 = cn(0, 0.5, 0)
  1720. RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1721. LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1722. --------
  1723. --(#Torso)
  1724. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  1725. --------
  1726. --(#Head)
  1727. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1)
  1728. --------
  1729. --(#Right Arm)
  1730. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1)
  1731. --------
  1732. --(#Left Arm)
  1733. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1)
  1734. --------
  1735. --(#Right Leg)
  1736. SetTween(RH,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1)
  1737. --------
  1738. --(#Left Leg)
  1739. SetTween(LH,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1)
  1740. --[[
  1741. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  1742. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  1743. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  1744. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  1745. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  1746. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  1747. --]]
  1748. function Attack1()
  1749. local Stone=Instance.new("Part",Effects)
  1750. Stone.Reflectance = 0
  1751. Stone.Transparency = 1
  1752. Stone.CanCollide = false
  1753. Stone.Locked = true
  1754. Stone.Anchored=true
  1755. Stone.BrickColor = BrickColor.new("Bright green")
  1756. Stone.Name = "Bullet"
  1757. Stone.Size = Vector3.new(1.05,1.05,1.05)
  1758. Stone.Material = "Neon"
  1759. Stone:BreakJoints()
  1760. Stone.CFrame = CF(Head.CFrame.p,Target.p)
  1761. local StoneTrail=Instance.new("Trail",Stone)
  1762. --local noob = EffectPack.Ragdoll:Clone()
  1763. --noob.Parent = Effects
  1764. --local fatjoint = EffectPack.ragjoint:Clone()
  1765. --fatjoint.Parent = noob
  1766. --fatjoint.Part0=Stone
  1767. --fatjoint.Part1=noob
  1768. --noob.Parent = Stone
  1769. --Stone:SetNetworkOwner(Player)
  1770. local Attach1 = Instance.new("Attachment",noob)
  1771. local Attach2 = Instance.new("Attachment",noob)
  1772. Attach2.Position = Vector3.new(0,0,1.5)
  1773. Attach1.Position = Vector3.new(0,0,-1.5)
  1774. StoneTrail.Attachment0 = Attach1
  1775. StoneTrail.Attachment1 = Attach2
  1776. StoneTrail.Texture = "rbxassetid://1251856844"
  1777. StoneTrail.Lifetime = .1
  1778. StoneTrail.MaxLength = 0
  1779. StoneTrail.MinLength = 0
  1780. StoneTrail.TextureMode= "Static"
  1781. StoneTrail.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,.8),NumberSequenceKeypoint.new(1,1)})
  1782. StoneTrail.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  1783. StoneTrail.LightEmission=0
  1784. StoneTrail.Color = ColorSequence.new(Color3.new(255/255,255/255,255/255),Color3.new(255/255,255/255,255/255))
  1785. StoneTrail.LightEmission = .5
  1786. StoneTrail.FaceCamera=true
  1787. wait()
  1788. SpawnBullet(CF(Head.CFrame.p,Target.p),15,2000,0,Stone,{Bounce=true,NoGrav=2,BounceTimes=50,tail = StoneTrail,BounceHitEffect = "SmashRing",HitEffect = "Smash" })
  1789. end
  1790. local hitwait = false
  1791. local isUsingHammer = false
  1792. local CataWeld = nil
  1793. function Attack2()
  1794. --if not Character:FindFirstChild("catapult") then
  1795. --local Catapult = EffectPack.catapult:Clone()
  1796. --ReplaceWelds(Catapult)
  1797. --CataWeld = motor(Catapult,Catapult.Frame.mid,Catapult.MovingPart.mid,CF(0,0,0))
  1798. --Catapult.Parent = Character
  1799. --Catapult.Frame.mid.CFrame = RootPart.CFrame * CF(4,2.8,0)
  1800. --Catapult.Frame.mid.Anchored = true
  1801. coroutine.resume(coroutine.create(function()
  1802. local cfsave = Catapult.Frame.mid.CFrame
  1803. while CataWeld ~= nil and Character:FindFirstChild("catapult") do
  1804. if TargetMode1=="nil" or ZT==false then
  1805. SetTween(Catapult.Frame.mid,{CFrame=CF(cfsave.p*VT(1,0,1),Target.p*VT(1,0,1))*CF(0,cfsave.p.Y,0) },"Quad","Out",.5)
  1806.  
  1807. else
  1808. coroutine.resume(coroutine.create(function()
  1809. SetTween(Catapult.Frame.mid,{CFrame=CF(cfsave.p*VT(1,0,1),SelectedTarget1.CFrame.p*VT(1,0,1))*CF(0,cfsave.p.Y,0) },"Quad","Out",.5)
  1810. end))
  1811. end
  1812. wait(.1)
  1813. end
  1814. end))
  1815. coroutine.resume(coroutine.create(function()
  1816. -- local noob = EffectPack.Aim:Clone()
  1817. --noob.Parent = Effects
  1818. local updownaim = 0
  1819. --noob.CFrame = Catapult.Frame.mid.CFrame*CF(0,7+-math.cos(updownaim)*2,1+math.sin(updownaim/2)*4)*angles(0,0,0)
  1820. --SetTween(noob,{Transparency=.75},"Quad","InOut",1)
  1821. while CataWeld ~= nil and Character:FindFirstChild("catapult") do
  1822. updownaim = updownaim + .2
  1823. coroutine.resume(coroutine.create(function()
  1824. SetTween(noob,{CFrame=Catapult.Frame.mid.CFrame*CF(0,7+-math.cos(updownaim)*2,1+math.sin(updownaim/2)*4)*angles(0,0,0)},"Linear","Out",.1)
  1825. --print("StillOut")
  1826. if isUsingHammer == true then
  1827. swait()
  1828. noob.Anchored = false
  1829. noob.Velocity = VT()
  1830. end
  1831. swait()
  1832. noob.Anchored = true
  1833. noob.Velocity = VT()
  1834. end))
  1835. swait()
  1836. swait()
  1837. if not Effects:FindFirstChild("Aim") then
  1838. if hitwait == true then
  1839. while hitwait == true do
  1840. wait(.1)
  1841.  
  1842.  
  1843. end
  1844. noob = EffectPack.Aim:Clone()
  1845. noob.Parent = Effects
  1846. noob.CFrame = Catapult.Frame.mid.CFrame*CF(0,7+-math.cos(updownaim)*2,1+math.sin(updownaim/2)*4)*angles(0,0,0)
  1847. SetTween(noob,{Transparency=.75},"Quad","InOut",1)
  1848. end
  1849.  
  1850. end
  1851. end
  1852. noob:Destroy()
  1853. end))
  1854. --else
  1855. CataWeld=nil
  1856. Character:FindFirstChild("catapult"):Destroy()
  1857. isUsingHammer = false
  1858. hitwait = false
  1859. --end
  1860. end
  1861. function Attack3()
  1862.  
  1863. if CataWeld ~= nil and Character:FindFirstChild("catapult") then
  1864. for i, v3 in pairs(GatherAllInstances(Character:FindFirstChild("catapult"))) do
  1865. if v3:IsA("ParticleEmitter") then
  1866. v3.Enabled = true
  1867. end
  1868. end
  1869. isUsingHammer = true
  1870. so(219401534,Character:FindFirstChild("catapult").MovingPart.Thruster,3,1)
  1871. SetTween(CataWeld,{C0=angles(math.rad(-85),0,0)},"Quad","In",.2)
  1872. ------------------------------------------------------------------------------------------------------------
  1873. local onehitonly = true
  1874. local function onTouch(part)
  1875. print(part.Name)
  1876. if part.Name == "Aim" and onehitonly == true then
  1877. onehitonly = false
  1878. hitwait = true
  1879. warn("Hit!")
  1880. local CFsave1 = part.CFrame.p
  1881. local CFsave2 = Character:FindFirstChild("catapult").MovingPart.HammerBack.CFrame.p
  1882. part:Destroy()
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893. coroutine.resume(coroutine.create(function()
  1894.  
  1895. local Stone=Instance.new("Part",Effects)
  1896. Stone.Reflectance = 0
  1897. Stone.Transparency = 1
  1898. Stone.CanCollide = false
  1899. Stone.Locked = true
  1900. Stone.Anchored=true
  1901. Stone.BrickColor = BrickColor.new("Bright green")
  1902. Stone.Name = "Bullet"
  1903. Stone.Size = Vector3.new(1.05,1.05,1.05)
  1904. Stone.Material = "Neon"
  1905. Stone:BreakJoints()
  1906. Stone.CFrame = CF(CFsave2,CFsave1)
  1907. local StoneTrail=Instance.new("Trail",Stone)
  1908. local noob = EffectPack.Ragdoll:Clone()
  1909. noob.Parent = Effects
  1910. noob.Transparency = 1
  1911. SetTween(noob,{Transparency=0},"Quad","InOut",.25)
  1912. local fatjoint = EffectPack.ragjoint:Clone()
  1913. fatjoint.Parent = noob
  1914. fatjoint.Part0=Stone
  1915. fatjoint.Part1=noob
  1916. noob.Parent = Stone
  1917. --Stone:SetNetworkOwner(Player)
  1918. local Attach1 = Instance.new("Attachment",noob)
  1919. local Attach2 = Instance.new("Attachment",noob)
  1920. Attach2.Position = Vector3.new(0,0,1.5)
  1921. Attach1.Position = Vector3.new(0,0,-1.5)
  1922. StoneTrail.Attachment0 = Attach1
  1923. StoneTrail.Attachment1 = Attach2
  1924. StoneTrail.Texture = "rbxassetid://1251856844"
  1925. StoneTrail.Lifetime = .1
  1926. StoneTrail.MaxLength = 0
  1927. StoneTrail.MinLength = 0
  1928. StoneTrail.TextureMode= "Static"
  1929. coroutine.resume(coroutine.create(function()
  1930. StoneTrail.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,1)})
  1931. wait(.15)
  1932. StoneTrail.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,.8),NumberSequenceKeypoint.new(1,1)})
  1933. end))
  1934. StoneTrail.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  1935. StoneTrail.LightEmission=0
  1936. StoneTrail.Color = ColorSequence.new(Color3.new(255/255,255/255,255/255),Color3.new(255/255,255/255,255/255))
  1937. StoneTrail.LightEmission = .5
  1938. StoneTrail.FaceCamera=true
  1939. wait()
  1940. so(222371566,Character:FindFirstChild("catapult").MovingPart.HammerFront,3,1)
  1941. BulletHitEffectSpawn(CF(Character:FindFirstChild("catapult").MovingPart.HammerFront.CFrame.p,CFsave2)*angles(math.rad(180),0,0),"Smash1")
  1942. BulletHitEffectSpawn(CF(Character:FindFirstChild("catapult").MovingPart.HammerFront.CFrame.p,CFsave2),"Smash2")
  1943.  
  1944. SpawnBullet(CF(CFsave2,CFsave1),12.5,20,12.5,Stone,{Homing=true,Bounce=true,BounceTimes=5,tail = StoneTrail,BounceHitEffect = "SmashRing",HitEffect = "Smash" })
  1945. end))
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963. end
  1964. end
  1965.  
  1966. local hammerhit = Character:FindFirstChild("catapult").MovingPart.Noob.Touched:connect(onTouch)
  1967. ------------------------------------------------------------------------------------------------------------
  1968. wait(.2)
  1969. for i, v3 in pairs(GatherAllInstances(Character:FindFirstChild("catapult"))) do
  1970. if v3:IsA("ParticleEmitter") then
  1971. v3.Enabled = false
  1972. end
  1973. end
  1974. wait(.2)
  1975. hammerhit:disconnect()
  1976. isUsingHammer = false
  1977. hitwait = false
  1978. SetTween(CataWeld,{C0=angles(math.rad(-0),0,0)},"Bounce","Out",1)
  1979.  
  1980. end
  1981.  
  1982. end
  1983. function Attack4()
  1984.  
  1985. local Stone=Instance.new("Part",Effects)
  1986. Stone.Reflectance = 0
  1987. Stone.Transparency = 1
  1988. Stone.CanCollide = false
  1989. Stone.Locked = true
  1990. Stone.Anchored=true
  1991. Stone.BrickColor = BrickColor.new("Bright green")
  1992. Stone.Name = "Bullet"
  1993. Stone.Size = Vector3.new(1.05,1.05,1.05)
  1994. Stone.Material = "Neon"
  1995. Stone:BreakJoints()
  1996. Stone.CFrame = CF(Head.CFrame.p,Target.p)
  1997. local StoneTrail=Instance.new("Trail",Stone)
  1998. local noob = EffectPack.Ragdoll:Clone()
  1999. noob.Parent = Effects
  2000. noob.Transparency = 1
  2001. local fatjoint = EffectPack.ragjoint:Clone()
  2002. fatjoint.Parent = noob
  2003. fatjoint.Part0=Stone
  2004. fatjoint.Part1=noob
  2005. noob.Parent = Stone
  2006. --Stone:SetNetworkOwner(Player)
  2007. local Attach1 = Instance.new("Attachment",noob)
  2008. local Attach2 = Instance.new("Attachment",noob)
  2009. Attach2.Position = Vector3.new(0,0,1.5)
  2010. Attach1.Position = Vector3.new(0,0,-1.5)
  2011. StoneTrail.Attachment0 = Attach1
  2012. StoneTrail.Attachment1 = Attach2
  2013. StoneTrail.Texture = "rbxassetid://1251856844"
  2014. StoneTrail.Lifetime = .1
  2015. StoneTrail.MaxLength = 0
  2016. StoneTrail.MinLength = 0
  2017. StoneTrail.TextureMode= "Static"
  2018. StoneTrail.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,.8),NumberSequenceKeypoint.new(1,1)})
  2019. StoneTrail.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
  2020. StoneTrail.LightEmission=0
  2021. StoneTrail.Color = ColorSequence.new(Color3.new(255/255,255/255,255/255),Color3.new(255/255,255/255,255/255))
  2022. StoneTrail.LightEmission = .5
  2023. StoneTrail.FaceCamera=true
  2024.  
  2025. local Missile = EffectPack.Missile:Clone()
  2026. for i, v3 in pairs(GatherAllInstances(Missile)) do
  2027. if v3:IsA("ParticleEmitter") then
  2028. v3.Enabled = true
  2029. end
  2030. end
  2031.  
  2032. local fatjoint2 = EffectPack.ragjoint:Clone()
  2033. fatjoint2.Name = "MissileJoint"
  2034. fatjoint2.Parent = Missile
  2035. fatjoint2.Part0=Stone
  2036. fatjoint2.Part1=Missile
  2037. Missile.Parent = noob
  2038.  
  2039.  
  2040. coroutine.resume(coroutine.create(function()
  2041. Missile["Rocket Thrust Loop"]:Play()
  2042. end))
  2043. if mememode == false then
  2044. if math.random(1,30) == 1 then
  2045. so(347713881,Missile,8,1)
  2046. else
  2047. so(509177476,Missile,4,1)
  2048. end
  2049. else
  2050. so(347713881,Missile,6,1)
  2051. end
  2052. wait()
  2053. SpawnBullet(CF(Head.CFrame.p,Target.p),12.5,20,12.5,Stone,{Homing=true,Bounce=false,BounceTimes=1,tail = StoneTrail,BounceHitEffect = "SmashRing",HitEffect = "Smash" })
  2054.  
  2055. end
  2056. function Attack5()
  2057. if MTARGET.Parent:FindFirstChildOfClass("Humanoid") then
  2058. if ZT == false then
  2059. ZT = true
  2060. lockon_OnOff()
  2061. lockon(MTARGET.Parent)
  2062. end
  2063. if ZT == true then
  2064. lockon(MTARGET.Parent)
  2065. end
  2066. else
  2067. if ZT == true then
  2068. ZT = false end
  2069. --lockon(MTARGET)
  2070. end
  2071. end
  2072. function Attack6()
  2073.  
  2074. for i, v in pairs(GatherAllInstances(Effects)) do
  2075. if v.Name == "Zombie" then
  2076. v.Parent:Destroy()
  2077. end
  2078. end
  2079. end
  2080. function ClickCombo()
  2081. if Anim == "Fall" or Anim == "Jump" then
  2082. if Combo == 0 then
  2083. --DownAT()
  2084. end
  2085. else
  2086. if Combo == 0 then
  2087. AT1()
  2088. Combo = 1
  2089. elseif Combo == 1 then
  2090. AT2()
  2091. Combo = 2
  2092. elseif Combo == 2 then
  2093. AT3()
  2094. Combo = 0
  2095. end
  2096. end
  2097. end
  2098. local Hold = false
  2099. Button1DownF=function()
  2100. end
  2101. Button1UpF=function()
  2102. if Hold==true then
  2103. Hold = false
  2104. end
  2105.  
  2106. end
  2107. KeyUpF=function(key)
  2108.  
  2109. end
  2110. KeyDownF=function(key)
  2111. if key == "z" and attack == false then
  2112. Attack1()
  2113. end
  2114. if key == "x" and attack == false then
  2115. Attack2()
  2116. end
  2117. if key == "c" and attack == false and isUsingHammer == false then
  2118. Attack3()
  2119. end
  2120. if key == "v" and attack == false then
  2121. Attack4()
  2122. end
  2123. if key == "f" and attack == false then
  2124. Attack5()
  2125. end
  2126. if key == "g" and attack == false then
  2127. --Attack6()
  2128. end
  2129. if key == "t" and attack == false then
  2130. --Tuant()
  2131. end
  2132. if key == "p" and attack == false and Player.Name=="123jl123" then
  2133. if mememode == false then
  2134. mememode=true
  2135.  
  2136. --so("1499015636", Character,3, 1)
  2137. lastid= "http://www.roblox.com/asset/?id=1033438052"
  2138.  
  2139. lastsongpos = 0
  2140. s2.TimePosition = lastsongpos
  2141.  
  2142.  
  2143. else
  2144. mememode=false
  2145. CurId=CurId-1
  2146. KeyDownF("n")
  2147.  
  2148. end
  2149. end
  2150. if key == "0" then
  2151. if isruning == false then
  2152. isruning=true
  2153. end
  2154. end
  2155. if key == "m" then
  2156.  
  2157. if playsong == true then
  2158. playsong = false
  2159. s2:stop()
  2160. elseif playsong == false then
  2161. playsong = true
  2162.  
  2163. s2:play()
  2164. end
  2165.  
  2166. end
  2167. if key == "n" and mememode == false then
  2168. CurId = CurId + 1
  2169.  
  2170. if CurId > 7 then
  2171. CurId = 1
  2172. end
  2173. warn("now playing song Nr"..CurId)
  2174. if CurId == 1 then
  2175. lastid= "http://www.roblox.com/asset/?id=2677904658"
  2176. elseif CurId == 2 then
  2177. lastid= "http://www.roblox.com/asset/?id=2662923013"
  2178. elseif CurId == 3 then
  2179. lastid= "http://www.roblox.com/asset/?id=2662841570"
  2180. elseif CurId == 4 then
  2181. lastid= "http://www.roblox.com/asset/?id=2677907201"
  2182. elseif CurId == 5 then
  2183. lastid= "http://www.roblox.com/asset/?id=2650469795"
  2184. elseif CurId == 6 then
  2185. lastid= "http://www.roblox.com/asset/?id=2650468875"
  2186. elseif CurId == 7 then
  2187. lastid= "http://www.roblox.com/asset/?id=1494393623"
  2188. end
  2189. lastsongpos = 0
  2190. s2.TimePosition = lastsongpos
  2191.  
  2192.  
  2193. end
  2194. end
  2195. coroutine.resume(coroutine.create(function()
  2196. while Humanoid.Health>0.001 do
  2197. sine = sine + change
  2198. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2199. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2200. local velderp = RootPart.Velocity.y
  2201. if RootPart.Velocity.y > 1 and hitfloor == nil then
  2202. Anim = "Jump"
  2203. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  2204. Anim = "Fall"
  2205. elseif Humanoid.Sit == true then
  2206. Anim = "Sit"
  2207. elseif torvel < 1 and hitfloor ~= nil then
  2208. Anim = "Idle"
  2209. elseif torvel > 2 and hitfloor ~= nil then
  2210. Anim = "Walk"
  2211. else
  2212. Anim = ""
  2213.  
  2214. end
  2215. local Ccf=RootPart.CFrame
  2216. --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector)
  2217. local Walktest1 = workspace[PNAME].Humanoid.MoveDirection*Ccf.LookVector
  2218. local Walktest2 = workspace[PNAME].Humanoid.MoveDirection*Ccf.RightVector
  2219. --warn(Walktest1.Z.."/"..Walktest1.X)
  2220. --warn(Walktest2.Z.."/"..Walktest2.X)
  2221. forWFB = Walktest1.X+Walktest1.Z
  2222. forWRL = Walktest2.X+Walktest2.Z
  2223. --print(Humanoid.MoveDirection)
  2224. --warn(Torso.CFrame.lookVector)
  2225. coroutine.resume(coroutine.create(function()
  2226.  
  2227. if s2.Parent == nil or s2 == nil then
  2228. s2 = s2c:Clone()
  2229. s2.Parent = Torso
  2230. s2.Name = "BGMusic"
  2231. -- s2.SoundId = lastid
  2232. s2.Pitch = 1
  2233. s2.Volume = 1.5
  2234. s2.Looped = true
  2235. s2.archivable = false
  2236. s2.TimePosition = lastsongpos
  2237. if playsong == true then
  2238. s2:play()
  2239. elseif playsong == false then
  2240. s2:stop()
  2241. end
  2242.  
  2243.  
  2244. else
  2245. lastsongpos=s2.TimePosition
  2246. s2.Pitch = 1
  2247.  
  2248. s2.Volume = 1.5
  2249. s2.Looped = true
  2250. s2.SoundId = lastid
  2251. s2.EmitterSize = 30
  2252. end
  2253.  
  2254.  
  2255.  
  2256. end))
  2257. inairvel=torvel*1
  2258. --forWRL
  2259. if inairvel > 30 then
  2260. inairvel=30
  2261. end
  2262. inairvel=inairvel/50*2
  2263. if attack == false then
  2264. if Anim == "Jump" then
  2265. change = 0.60*2
  2266. SetTween(RJW,{C0=RootCF* cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(-6.5 - 1.5 * math.cos(sine / 8))+(inairvel*forWFB)/2, math.rad(0)-(inairvel*forWRL)/2, math.rad(0))},"Quad","Out",0.25)
  2267. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25)
  2268. SetTween(RW,{C0=cf(1.4 + .05 * math.cos(sine / 8) , 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(140 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(8 + 4 * math.cos(sine / 8)))},"Quad","Out",0.2)
  2269. SetTween(LW,{C0=cf(-1.4 + .05 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(140 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-8 - 4 * math.cos(sine / 8 )))},"Quad","Out",0.2)
  2270. SetTween(RH,{C0=CFrame.new(.5, -0.85+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075)
  2271. SetTween(LH,{C0=CFrame.new(-.5, -0.35+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075)
  2272.  
  2273. elseif Anim == "Fall" then
  2274. change = 0.60*2
  2275. SetTween(RJW,{C0=RootCF*cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.5 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(5.5 - 1.5 * math.cos(sine / 8))-(inairvel*forWFB)/2, math.rad(0)+(inairvel*forWRL)/2, math.rad(0))},"Quad","Out",0.35)
  2276. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25)
  2277. SetTween(RW,{C0=cf(1.4 + .05 * math.cos(sine / 8) , 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(105 - 2 * math.cos(sine / 8 )), math.rad(-15), math.rad(80 + 4 * math.cos(sine / 8)))},"Quad","Out",0.2)
  2278. SetTween(LW,{C0=cf(-1.4 + .05 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(105 - 2 * math.cos(sine / 8 )), math.rad(15), math.rad(-80 - 4 * math.cos(sine / 8 )))},"Quad","Out",0.2)
  2279. SetTween(RH,{C0=CFrame.new(.5, -0.15+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2280. SetTween(LH,{C0=CFrame.new(-.5, -0.55+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-0 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2281.  
  2282.  
  2283. elseif Anim == "Idle" then
  2284.  
  2285.  
  2286. local dahspeed=1
  2287. if attack == true and mememode == true then
  2288. dahspeed=5
  2289. end
  2290. change = (0.60*2)*dahspeed
  2291. Humanoid.JumpPower = 60
  2292. Humanoid.WalkSpeed=16
  2293.  
  2294.  
  2295.  
  2296. local ADNum = .5
  2297. SetTween(RJW,{C0=RootCF*cn(0, 0, -0.08 + 0.08 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(0 - 1 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1)
  2298. SetTween(NeckW,{C0=NeckCF*angles(math.rad(13.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 6.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1)
  2299. SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(13 + 4 * math.cos(sine / 8)))},"Quad","Out",0.2)
  2300. SetTween(LW,{C0=cf(-1.35 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(150 - 2 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(15+ 6.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))), math.rad(26 - 0 * math.cos(sine / 8 )))},"Quad","Out",0.2)
  2301. SetTween(RH,{C0=CFrame.new(.5, -0.92- .08 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -.2) * CFrame.Angles(math.rad(-2 - 1 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.1)
  2302. SetTween(LH,{C0=CFrame.new(-.5, -0.92- .08 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -.2) * CFrame.Angles(math.rad(-2 - 1 * math.cos(sine / 8)),math.rad(20),math.rad(-2.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.1)
  2303.  
  2304. elseif Anim == "Walk" then
  2305. local speed=1
  2306. if mememode == true then
  2307. speed=4
  2308. end
  2309. change = 2.6*speed
  2310. Humanoid.JumpPower = 60*speed
  2311. Humanoid.WalkSpeed=16*speed
  2312. local RH2 = cf(-forWRL/7 * math.cos(sine / 8 ),0,forWFB/7 * math.cos(sine / 8 ))*angles((math.sin(-forWFB)*1.1) * math.cos(sine / 8 ),0,(math.sin(-forWRL)*1.1) * math.cos(sine / 8 ))
  2313. local LH2 = cf(forWRL/7 * math.cos(sine / 8 ),0,-forWFB/7 * math.cos(sine / 8 ))*angles((math.sin(forWFB)*1.1) * math.cos(sine / 8 ) ,0,(math.sin(forWRL)*1.1) * math.cos(sine / 8 ))
  2314. SetTween(RJW,{C0=RootCF*CFrame.new( 0 , 0 , -0.185 + 0.055 * math.cos(sine / 4 ) + -math.sin(sine / 4 ) / 8 ) * angles(math.rad( 10 +(forWFB - forWFB* 2 * math.cos(sine / 4 ))* 10 ), math.rad(((forWFB* math.cos(sine / 8 ))* 5 )+(-forWRL - -forWRL * math.cos(sine / 4 ))* 5 ) , math.rad( 8 * math.cos(sine / 8 )))},"Linear","InOut",WalkAnimMove/speed)
  2315. SetTween(NeckW,{C0=NeckCF*CFrame.new( 0 , 0 , 0 + 0.025 * math.cos(sine / 4 )) * angles(math.rad((-forWFB - -forWFB * math.cos(sine / 4 ))* 8 ), math.rad((forWRL - forWRL * math.cos(sine / 4 ))* 5 ), math.rad(-forWRL* 45 +- 8 * math.cos(sine / 8 )))},"Linear","InOut",WalkAnimMove/speed)
  2316. SetTween(RW,{C0=cf( 1.45 + .0 * math.cos(sine / 8 ) , 0.65 + forWRL/ 50 * math.cos(sine / 8 ), 0 ) * angles(math.rad( 0 + forWFB* 25 * math.cos(sine / 8 )), math.rad( 0 ), math.rad( 28 + forWRL* 5 * math.cos(sine / 8 )))},"Quad","Out",WalkAnimMove/speed)
  2317. SetTween(LW,{C0=cf( -1.45 + .0 * math.cos(sine / 8 ), 0.65 + forWRL/ 50 * math.cos(sine / 8 ), 0 ) * angles(math.rad( 0 - forWFB* 25 * math.cos(sine / 8 )), math.rad( 0 ), math.rad( -28 - forWRL* 5 * math.cos(sine / 8 )))},"Quad","Out",WalkAnimMove/speed)
  2318. SetTween(RH,{C0=CFrame.new( .5 , -0.75 + .35 * math.sin(sine / 8 ), -.15 + .15 * math.cos(sine / 8 ))*RH2 * CFrame.Angles(math.rad( 10 - 5 * math.cos(sine / 8 )),math.rad( 0 ),math.rad( 2.5 - 0.0 * math.cos(sine / 8 )))},"Quad","InOut",WalkAnimMove/speed)
  2319. SetTween(LH,{C0=CFrame.new( -.5 , -0.75 - .35 * math.sin(sine / 8 ), -.15 - .15 * math.cos(sine / 8 ))*LH2 * CFrame.Angles(math.rad( 10 + 5 * math.cos(sine / 8 )),math.rad( 0 ),math.rad( -2.5 - 0.0 * math.cos(sine / 8 )))},"Quad","InOut",WalkAnimMove/speed)
  2320. elseif Anim == "Sit" then
  2321. SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2322. SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2323. SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  2324. SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1)
  2325. SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2326. SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1)
  2327.  
  2328. end
  2329. end
  2330. swait(Animstep)
  2331. end
  2332. end))
  2333. coroutine.resume(coroutine.create(function()
  2334. local remote = Instance.new 'RemoteFunction';
  2335. remote.Parent = Character;
  2336. remote.OnServerInvoke = function (player, request, ...)
  2337. if (player ~= Player) then
  2338. return error ('You cannot invoke this remote', 0);
  2339. end;
  2340.  
  2341. if (request == 1) then
  2342. local k = ...;
  2343.  
  2344. KeyDownF(k)
  2345. end;
  2346. if (request == 2) then
  2347. local k = ...;
  2348.  
  2349. KeyUpF(k)
  2350. end;
  2351. if (request == 3) then
  2352. local k = ...;
  2353. if k == "Down" then
  2354. Button1DownF(k)
  2355. elseif k == "Up" then
  2356. Button1UpF(k)
  2357. end
  2358. end;
  2359.  
  2360.  
  2361. if (request == 4) then
  2362. local k=...;
  2363. MTARGET=k
  2364. end
  2365. if (request == 5) then
  2366. local k=...;
  2367. Target=k
  2368.  
  2369. end
  2370. end;
  2371. remote.Name = 'ServerRemote';
  2372. --local remote = NLS ([=[
  2373. local localscript = script.Keys
  2374. localscript.Name = Player.Name
  2375. localscript.Parent = Character
  2376. --]=], Player.Character)
  2377. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement