Advertisement
Awooslayer699

gan

Apr 17th, 2019
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. warn("Made by Subaru112")
  2.  
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. script.Parent = Player.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  74. local h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. ArtificialHB = Instance.new("BindableEvent", script)
  87. ArtificialHB.Name = "Heartbeat"
  88. script:WaitForChild("Heartbeat")
  89. frame = 0.03333333333333
  90. tf = 0
  91. allowframeloss = false
  92. tossremainder = false
  93. lastframe = tick()
  94. script.Heartbeat:Fire()
  95. game:GetService("RunService").Heartbeat:connect(function(s, p)
  96. tf = tf + s
  97. if tf >= frame then
  98. if allowframeloss then
  99. script.Heartbeat:Fire()
  100. lastframe = tick()
  101. else
  102. for i = 1, math.floor(tf / frame) do
  103. script.Heartbeat:Fire()
  104. end
  105. lastframe = tick()
  106. end
  107. if tossremainder then
  108. tf = 0
  109. else
  110. tf = tf - frame * math.floor(tf / frame)
  111. end
  112. end
  113. end)
  114.  
  115. function swait(num)
  116. if num == 0 or num == nil then
  117. ArtificialHB.Event:wait()
  118. else
  119. for i = 0, num do
  120. ArtificialHB.Event:wait()
  121. end
  122. end
  123. end
  124.  
  125.  
  126. function rayCast(Position, Direction, Range, Ignore)
  127. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  128. end
  129.  
  130. local sine = 0
  131. local change = 1
  132.  
  133. --Effect Functions--
  134. Effects = {
  135.  
  136. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  137. local p = Instance.new("Part",EffectModel)
  138. p.BrickColor = BrickColor.new(colour)
  139. p.Size = partsize
  140. p.Anchored = true
  141. p.CanCollide = false
  142. p.Material = matr
  143. p.CFrame = cf
  144. if inverse == true then
  145. p.Transparency = 1
  146. else
  147. p.Transparency = 0
  148. end
  149. local m = Instance.new("BlockMesh",p)
  150. m.Scale = meshstart
  151. coroutine.wrap(function()
  152. for i=0,1,factor do
  153. swait()
  154. if inverse == true then
  155. p.Transparency = 1-i
  156. else
  157. p.Transparency = i
  158. end
  159. m.Scale = m.Scale + meshadd
  160. if spin == true then
  161. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  162. end
  163. end
  164. p:Destroy()
  165. end)()
  166. return p
  167. end,
  168.  
  169. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  170. local p = Instance.new("Part",EffectModel)
  171. p.BrickColor = BrickColor.new(colour)
  172. p.Size = partsize
  173. p.Anchored = true
  174. p.CanCollide = false
  175. p.Material = matr
  176. p.CFrame = cf
  177. if inverse == true then
  178. p.Transparency = 1
  179. else
  180. p.Transparency = 0
  181. end
  182. local m = Instance.new("SpecialMesh",p)
  183. m.MeshType = "Sphere"
  184. m.Scale = meshstart
  185. coroutine.wrap(function()
  186. for i=0,1,factor do
  187. swait()
  188. if inverse == true then
  189. p.Transparency = 1-i
  190. else
  191. p.Transparency = i
  192. end
  193. m.Scale = m.Scale + meshadd
  194. end
  195. p:Destroy()
  196. end)()
  197. return p
  198. end,
  199.  
  200. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  201. local p = Instance.new("Part",EffectModel)
  202. p.BrickColor = BrickColor.new(colour)
  203. p.Size = partsize
  204. p.Anchored = true
  205. p.CanCollide = false
  206. p.Material = matr
  207. p.CFrame = cf
  208. if inverse == true then
  209. p.Transparency = 1
  210. else
  211. p.Transparency = 0
  212. end
  213. local m = Instance.new("CylinderMesh",p)
  214. m.Scale = meshstart
  215. coroutine.wrap(function()
  216. for i=0,1,factor do
  217. swait()
  218. if inverse == true then
  219. p.Transparency = 1-i
  220. else
  221. p.Transparency = i
  222. end
  223. m.Scale = m.Scale + meshadd
  224. end
  225. p:Destroy()
  226. end)()
  227. return p
  228. end,
  229.  
  230. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  231. local p = Instance.new("Part",EffectModel)
  232. p.BrickColor = BrickColor.new(colour)
  233. p.Size = Vector3.new()
  234. p.Anchored = true
  235. p.CanCollide = false
  236. p.CFrame = cf
  237. if inverse == true then
  238. p.Transparency = 1
  239. else
  240. p.Transparency = 0
  241. end
  242. local m = Instance.new("SpecialMesh",p)
  243. m.MeshId = "rbxassetid://20329976"
  244. m.Scale = meshstart
  245. coroutine.wrap(function()
  246. for i=0,1,factor do
  247. swait()
  248. if inverse == true then
  249. p.Transparency = 1-i
  250. else
  251. p.Transparency = i
  252. end
  253. m.Scale = m.Scale + meshadd
  254. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  255. end
  256. p:Destroy()
  257. end)()
  258. return p
  259. end,
  260.  
  261. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  262. local p = Instance.new("Part",EffectModel)
  263. p.BrickColor = BrickColor.new(colour)
  264. p.Size = Vector3.new()
  265. p.Anchored = true
  266. p.CanCollide = false
  267. p.CFrame = cf
  268. if inverse == true then
  269. p.Transparency = 1
  270. else
  271. p.Transparency = 0
  272. end
  273. local m = Instance.new("SpecialMesh",p)
  274. m.MeshId = "rbxassetid://3270017"
  275. m.Scale = meshstart
  276. coroutine.wrap(function()
  277. for i=0,1,factor do
  278. swait()
  279. if inverse == true then
  280. p.Transparency = 1-i
  281. else
  282. p.Transparency = i
  283. end
  284. m.Scale = m.Scale + meshadd
  285. end
  286. p:Destroy()
  287. end)()
  288. return p
  289. end,
  290.  
  291. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  292. local p = Instance.new("Part",EffectModel)
  293. p.BrickColor = BrickColor.new(colour)
  294. p.Size = Vector3.new()
  295. p.Anchored = true
  296. p.CanCollide = false
  297. p.CFrame = cf
  298. if inverse == true then
  299. p.Transparency = 1
  300. else
  301. p.Transparency = 0
  302. end
  303. local m = Instance.new("SpecialMesh",p)
  304. m.MeshId = meshid
  305. m.TextureId = textid
  306. m.Scale = meshstart
  307. coroutine.wrap(function()
  308. for i=0,1,factor do
  309. swait()
  310. if inverse == true then
  311. p.Transparency = 1-i
  312. else
  313. p.Transparency = i
  314. end
  315. m.Scale = m.Scale + meshadd
  316. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  317. end
  318. p:Destroy()
  319. end)()
  320. return p
  321. end,
  322.  
  323. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  324. local p = Instance.new("Part",EffectModel)
  325. p.BrickColor = BrickColor.new(colour)
  326. p.Size = partsize
  327. p.Anchored = true
  328. p.CanCollide = false
  329. p.Material = matr
  330. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  331. if inverse == true then
  332. p.Transparency = 1
  333. else
  334. p.Transparency = 0
  335. end
  336. local m = Instance.new("SpecialMesh",p)
  337. m.MeshType = "Sphere"
  338. m.Scale = meshstart
  339. coroutine.wrap(function()
  340. for i=0,1,factor do
  341. swait()
  342. if inverse == true then
  343. p.Transparency = 1-i
  344. else
  345. p.Transparency = i
  346. end
  347. m.Scale = m.Scale + meshadd
  348. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  349. end
  350. p:Destroy()
  351. end)()
  352. return p
  353. end,
  354.  
  355. }
  356.  
  357. function GetDudesTorso(c)
  358. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  359. if torsy ~= nil then
  360. return torsy
  361. end
  362. end
  363.  
  364. local plr = owner
  365. local char = plr.Character
  366. local chara = plr.Character
  367. local RootPart = chara.HumanoidRootPart
  368. local RootJoint = RootPart.RootJoint
  369. local Create = LoadLibrary("RbxUtility").Create
  370. local debby = game:GetService("Debris")
  371.  
  372. EffectModel = Create("Model"){
  373. Parent = chara,
  374. Name = "Effects",
  375. }
  376.  
  377. function so(id,par,pit,vol)
  378. if par == chara then
  379.  
  380. end
  381.  
  382. end
  383.  
  384. local Humanoid = char:FindFirstChildOfClass("Humanoid")
  385.  
  386. local Torso,Head,LeftArm,RightArm,LeftLeg,RightLeg,Root = char.Torso,char.Head,char["Left Arm"],char["Right Arm"],char["Left Leg"],char["Right Leg"],char.HumanoidRootPart
  387.  
  388. local neck,RH,LH,rootj,RS,LS = Torso.Neck,Torso["Right Hip"],Torso["Left Hip"],Root.RootJoint,Torso["Right Shoulder"],Torso["Left Shoulder"]
  389.  
  390. local rootjn,neckn,RHn,LHn,LSn,RSn = rootj.C0,neck.C0,RH.C0,LH.C0,LS.C0,RS.C0
  391.  
  392. local mus = Instance.new("Sound",char)
  393. local timepos = nil
  394.  
  395. Humanoid.WalkSpeed = 16
  396. Humanoid.Animator.Parent = nil
  397. chara.Animate.Parent = nil
  398.  
  399. local attack = false
  400. local Anim = 'Idle'
  401. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  402. local velocity = RootPart.Velocity.y
  403.  
  404. local newMotor = function(part0, part1, c0, c1)
  405. local w = Create('Motor'){
  406. Parent = part0,
  407. Part0 = part0,
  408. Part1 = part1,
  409. C0 = c0,
  410. C1 = c1,
  411. }
  412. return w
  413. end
  414.  
  415. function clerp(a, b, t)
  416. return a:lerp(b, t)
  417. end
  418.  
  419. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  420. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  421.  
  422. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  423. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  424. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  425. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  426. RootJoint.C1 = CFrame.new(0, 0, 0)
  427. RootJoint.C0 = CFrame.new(0, 0, 0)
  428. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  429. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  430.  
  431. local rarmc1 = RW.C1
  432. local larmc1 = LW.C1
  433. local rlegc1 = RH.C1
  434. local llegc1 = LH.C1
  435.  
  436. local resetc1 = false
  437.  
  438. function PlayAnimationFromTable(table, speed, bool)
  439. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  440. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  441. RW.C0 = clerp(RW.C0, table[3], speed)
  442. LW.C0 = clerp(LW.C0, table[4], speed)
  443. RH.C0 = clerp(RH.C0, table[5], speed)
  444. LH.C0 = clerp(LH.C0, table[6], speed)
  445. if bool == true then
  446. if resetc1 == false then
  447. resetc1 = true
  448. RootJoint.C1 = RootJoint.C1
  449. Torso.Neck.C1 = Torso.Neck.C1
  450. RW.C1 = rarmc1
  451. LW.C1 = larmc1
  452. RH.C1 = rlegc1
  453. LH.C1 = llegc1
  454. end
  455. end
  456. end
  457.  
  458. local gun = Instance.new("Part",char)
  459. gun.Size = Vector3.new(0.409, 1.641, 4.462)
  460. gun.Name = "MUSIC"
  461. gun.CanCollide = false
  462. local m = Instance.new("SpecialMesh",gun)
  463. m.MeshType = "FileMesh"
  464. m.Scale = Vector3.new(0.012, 0.012, 0.012)
  465. m.MeshId = "rbxassetid://623102664"
  466. m.TextureId = "rbxassetid://623102879"
  467. local w1 = Instance.new("Weld",char)
  468. w1.Part0 = RightArm
  469. w1.Part1 = gun
  470. w1.C0 = CFrame.new(12.3645887, 0, -1.1920929e-06, 0.939692497, 0, 0.342019767, -3.55271368e-15, 1, 0, -0.342020035, 0, 0.939692438)
  471. w1.C1 = CFrame.new(-3.99362731, 0.0831095576, 12.0897989, -0.163175926, -0.98480773, -0.0593911298, 0.342020124, -4.37113883e-08, -0.939692616, 0.92541647, -0.173648193, 0.33682403)
  472. local ShotPt = Instance.new("Part",char)
  473. ShotPt.Size = Vector3.new(1, 1, 1)
  474. ShotPt.Name = "MUSIC"
  475. ShotPt.CanCollide = false
  476. ShotPt.Transparency = 1
  477.  
  478. local w2 = Instance.new("Weld",char)
  479. w2.Part0 = gun
  480. w2.Part1 = ShotPt
  481. w2.C0 = CFrame.new(-0.900000095, 0.700000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  482. w2.C1 = CFrame.new(-1.52383852, 0.265500069, -0.012091063, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  483.  
  484. function Dmg(dude)
  485. if dude and dude ~= chara and dude.Name ~= "CKbackup" then
  486. if dude:FindFirstChild("TURAPPU") then return end
  487. local debounce = Instance.new("BoolValue",dude)
  488. debounce.Name = "TURAPPU"
  489. coroutine.wrap(function()
  490. local torsy = GetDudesTorso(dude)
  491. if torsy then
  492. local b = Instance.new("Part",dude)
  493. b.BrickColor = BrickColor.new("New Yeller")
  494. b.Size = Vector3.new(.1,.1,.1)
  495. b.CanCollide = false
  496. b.Transparency = 1
  497. b.Material = "Neon"
  498. b:BreakJoints()
  499. so(113952851,b,1,3)
  500. local bw = Instance.new("Weld",b)
  501. bw.Part0 = b
  502. bw.Part1 = torsy
  503. local bm = Instance.new("SpecialMesh",b)
  504. bm.MeshType = "Sphere"
  505. bm.Scale = Vector3.new()
  506. for i=0,1,.05 do
  507. swait()
  508. b.Transparency = 1-i
  509. bm.Scale = Vector3.new(65*i,65*i,65*i)
  510. end
  511. coroutine.wrap(function()
  512. swait(20)
  513. for i=0,1,.05 do
  514. swait()
  515. b.Transparency = i
  516. bm.Scale = Vector3.new(65+100*i,65+100*i,65+100*i)
  517. end
  518. b:Destroy()
  519. end)()
  520. end
  521. for i,v in pairs(dude:children()) do
  522. if v.ClassName == "CharacterMesh" or v.ClassName == "ShirtGraphic" then
  523. v:Destroy()
  524. end
  525.  
  526. if v:IsA("Clothing") or v:IsA("BodyColors") or v:IsA("Accoutrement") then v:Destroy() end
  527. end
  528.  
  529. local color = {"Really red","Really blue","Magenta","White","Cool yellow"}
  530.  
  531. local hedcol = BrickColor.new("Really blue")
  532. local bcols = Instance.new("BodyColors",dude)
  533. bcols.Name = "NeoCols"
  534. bcols.HeadColor = BrickColor.new(color[math.random(1,#color)])
  535. bcols.LeftArmColor = BrickColor.new(color[math.random(1,#color)])
  536. bcols.RightArmColor = BrickColor.new(color[math.random(1,#color)])
  537. bcols.TorsoColor = BrickColor.new(color[math.random(1,#color)])
  538. bcols.LeftLegColor = BrickColor.new(color[math.random(1,#color)])
  539. bcols.RightLegColor = BrickColor.new(color[math.random(1,#color)])
  540.  
  541. for i,v in pairs(dude:children()) do
  542. if v.ClassName == "MeshPart" or v.ClassName == "Part" then
  543. v.Material = "Neon"
  544. end
  545. end
  546.  
  547. if dude:FindFirstChild("Head") then
  548. for i,v in pairs(dude:FindFirstChild("Head"):GetChildren()) do
  549. if v.ClassName == "Decal" then
  550. v:Destroy()
  551. end
  552. end
  553. end
  554.  
  555. local enemy = dude:FindFirstChildOfClass("Humanoid")
  556. enemy.MaxHealth = 1
  557. enemy.Health = 1
  558.  
  559. coroutine.wrap(function()
  560. swait(40)
  561. local naeeym2 = Instance.new("BillboardGui")
  562. naeeym2.Size = UDim2.new(0,100,0,40)
  563. naeeym2.StudsOffset = Vector3.new(0,3,0)
  564. naeeym2.Adornee = dude:FindFirstChild("Head")
  565. naeeym2.Name = "TalkingBillBoard"
  566. local tecks2 = Instance.new("TextLabel",naeeym2)
  567. tecks2.BackgroundTransparency = 1
  568. tecks2.BorderSizePixel = 0
  569. tecks2.Text = ""
  570. tecks2.Font = "Cartoon"
  571. tecks2.TextSize = 24
  572. tecks2.TextStrokeTransparency = 0
  573. tecks2.TextColor3 = Color3.new(1,.6,.7)
  574. tecks2.TextStrokeColor3 = Color3.new(1,1,1)
  575. tecks2.Size = UDim2.new(1,0,0.5,0)
  576. swait(10)
  577. for i = 0,1,.05 do
  578. swait()
  579. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  580. tecks2.TextStrokeTransparency = i
  581. tecks2.TextTransparency = i
  582. end
  583. naeeym2:Destroy()
  584. end)()
  585. end)()
  586. end
  587. end
  588.  
  589. function Dmg4(dude)
  590. if dude and dude ~= chara and dude.Name ~= "CKbackup" then
  591. coroutine.wrap(function()
  592. local torsy = GetDudesTorso(dude)
  593. if torsy then
  594. coroutine.wrap(function()
  595. swait(20)
  596. for i=0,1,.05 do
  597. swait()
  598. end
  599. end)()
  600. end
  601.  
  602. local enemy = dude:FindFirstChildOfClass("Humanoid")
  603. enemy.Health = enemy.Health - 10
  604.  
  605.  
  606. coroutine.wrap(function()
  607. swait(40)
  608. local naeeym2 = Instance.new("BillboardGui")
  609. naeeym2.Size = UDim2.new(0,100,0,40)
  610. naeeym2.StudsOffset = Vector3.new(0,3,0)
  611. naeeym2.Adornee = dude:FindFirstChild("Head")
  612. naeeym2.Name = "TalkingBillBoard"
  613. local tecks2 = Instance.new("TextLabel",naeeym2)
  614. tecks2.BackgroundTransparency = 1
  615. tecks2.BorderSizePixel = 0
  616. tecks2.Text = "OOF"
  617. tecks2.Font = "Cartoon"
  618. tecks2.TextSize = 24
  619. tecks2.TextStrokeTransparency = 0
  620. tecks2.TextColor3 = Color3.new(1,.6,.7)
  621. tecks2.TextStrokeColor3 = Color3.new(1,1,1)
  622. tecks2.Size = UDim2.new(1,0,0.5,0)
  623. swait(10)
  624. for i = 0,1,.05 do
  625. swait()
  626. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  627. tecks2.TextStrokeTransparency = i
  628. tecks2.TextTransparency = i
  629. end
  630. naeeym2:Destroy()
  631. end)()
  632. end)()
  633. end
  634. end
  635.  
  636.  
  637. function Dmg3(dude)
  638. if dude and dude ~= chara and dude.Name ~= "CKbackup" then
  639. coroutine.wrap(function()
  640. local torsy = GetDudesTorso(dude)
  641. if torsy then
  642. coroutine.wrap(function()
  643. swait(20)
  644. for i=0,1,.05 do
  645. swait()
  646. end
  647. end)()
  648. end
  649.  
  650. local enemy = dude:FindFirstChildOfClass("Humanoid")
  651. enemy.Health = enemy.Health - 20
  652.  
  653.  
  654. coroutine.wrap(function()
  655. swait(40)
  656. local naeeym2 = Instance.new("BillboardGui")
  657. naeeym2.Size = UDim2.new(0,100,0,40)
  658. naeeym2.StudsOffset = Vector3.new(0,3,0)
  659. naeeym2.Adornee = dude:FindFirstChild("Head")
  660. naeeym2.Name = "TalkingBillBoard"
  661. local tecks2 = Instance.new("TextLabel",naeeym2)
  662. tecks2.BackgroundTransparency = 1
  663. tecks2.BorderSizePixel = 0
  664. tecks2.Text = "Oof"
  665. tecks2.Font = "Cartoon"
  666. tecks2.TextSize = 24
  667. tecks2.TextStrokeTransparency = 0
  668. tecks2.TextColor3 = Color3.new(1,.6,.7)
  669. tecks2.TextStrokeColor3 = Color3.new(1,1,1)
  670. tecks2.Size = UDim2.new(1,0,0.5,0)
  671. swait(10)
  672. for i = 0,1,.05 do
  673. swait()
  674. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  675. tecks2.TextStrokeTransparency = i
  676. tecks2.TextTransparency = i
  677. end
  678. naeeym2:Destroy()
  679. end)()
  680. end)()
  681. end
  682. end
  683.  
  684. function Dmg2(dude)
  685. if dude and dude ~= chara and dude.Name ~= "CKbackup" then
  686. if dude:FindFirstChild("MUSIClol") then return end
  687. local debounce = Instance.new("BoolValue",dude)
  688. debounce.Name = "MUSIClol"
  689. coroutine.wrap(function()
  690. local torsy = GetDudesTorso(dude)
  691. if torsy then
  692. coroutine.wrap(function()
  693. swait(20)
  694. for i=0,1,.05 do
  695. swait()
  696. end
  697. end)()
  698. end
  699.  
  700. local tors = (dude:findFirstChild("Torso") or dude:findFirstChild("UpperTorso"))
  701.  
  702. for i,v in pairs(dude:children()) do
  703. if v.ClassName == "CharacterMesh" then
  704. v:Destroy()
  705. end
  706. end
  707.  
  708. local rop = Instance.new("Part",dude)
  709. rop.Name = "Rope"
  710. rop.Material = "DiamondPlate"
  711. rop.BrickColor = BrickColor.new("New Yeller")
  712. rop.Size = Vector3.new(4.2,0.5,1.1)
  713. local w = Instance.new("Weld",dude)
  714. w.Part1 = rop
  715. if tors then
  716. w.Part0 = tors
  717. end
  718.  
  719. local enemy = dude:FindFirstChildOfClass("Humanoid")
  720. for i,v in pairs(enemy:GetPlayingAnimationTracks()) do
  721. v:Stop()
  722. end
  723. if enemy:FindFirstChildOfClass("Animator") then
  724. enemy:FindFirstChildOfClass("Animator").Parent = nil
  725. end
  726. for i,v in pairs(dude:children()) do
  727. if v.ClassName == "Script" or v.ClassName == "ModuleScript" or v.ClassName == "LocalScript" then
  728. v:Destroy()
  729. end
  730. end
  731.  
  732. local RA,LA,RL,LL = dude:FindFirstChild("Right Arm"),dude:FindFirstChild("Left Arm"),dude:FindFirstChild("Right Leg"),dude:FindFirstChild("Left Leg")
  733.  
  734. local w = Instance.new("Weld",tors)
  735. w.Part0 = tors
  736. w.Part1 = dude:FindFirstChild("Head")
  737. w.C0 = CFrame.new(0,1.5,0)
  738.  
  739. if RA then
  740. local w = Instance.new("Weld",tors)
  741. w.Part0 = tors
  742. w.Part1 = RA
  743. w.C0 = CFrame.new(1.5,0,0)
  744. end
  745.  
  746. if LA then
  747. local w = Instance.new("Weld",tors)
  748. w.Part0 = tors
  749. w.Part1 = LA
  750. w.C0 = CFrame.new(-1.5,0,0)
  751. end
  752.  
  753. if RL then
  754. local w = Instance.new("Weld",tors)
  755. w.Part0 = tors
  756. w.Part1 = RL
  757. w.C0 = CFrame.new(-0.5,-2,0)
  758. end
  759.  
  760. if LL then
  761. local w = Instance.new("Weld",tors)
  762. w.Part0 = tors
  763. w.Part1 = LL
  764. w.C0 = CFrame.new(0.5,-2,0)
  765. end
  766.  
  767. enemy.MaxHealth = 1
  768. enemy.Health = 1
  769. enemy.PlatformStand = true
  770.  
  771.  
  772. coroutine.wrap(function()
  773. swait(40)
  774. local naeeym2 = Instance.new("BillboardGui")
  775. naeeym2.Size = UDim2.new(0,100,0,40)
  776. naeeym2.StudsOffset = Vector3.new(0,3,0)
  777. naeeym2.Adornee = dude:FindFirstChild("Head")
  778. naeeym2.Name = "TalkingBillBoard"
  779. local tecks2 = Instance.new("TextLabel",naeeym2)
  780. tecks2.BackgroundTransparency = 1
  781. tecks2.BorderSizePixel = 0
  782. tecks2.Text = "Rope"
  783. tecks2.Font = "Cartoon"
  784. tecks2.TextSize = 24
  785. tecks2.TextStrokeTransparency = 0
  786. tecks2.TextColor3 = Color3.new(1,.6,.7)
  787. tecks2.TextStrokeColor3 = Color3.new(1,1,1)
  788. tecks2.Size = UDim2.new(1,0,0.5,0)
  789. swait(10)
  790. for i = 0,1,.05 do
  791. swait()
  792. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  793. tecks2.TextStrokeTransparency = i
  794. tecks2.TextTransparency = i
  795. end
  796. naeeym2:Destroy()
  797. end)()
  798. end)()
  799. end
  800. end
  801.  
  802. function MagnitudeDmg4(par,magni)
  803. for _, c in pairs(workspace:GetDescendants()) do
  804. local hum = c:FindFirstChildOfClass("Humanoid")
  805. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  806. local head = GetDudesTorso(c)
  807. if head ~= nil then
  808. local targ = head.Position - par.Position
  809. local mag = targ.magnitude
  810. if magni >= mag and c ~= chara then
  811. Dmg4(c)
  812. end
  813. end
  814. end
  815. end
  816. end
  817.  
  818. function MagnitudeDmg3(par,magni)
  819. for _, c in pairs(workspace:GetDescendants()) do
  820. local hum = c:FindFirstChildOfClass("Humanoid")
  821. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  822. local head = GetDudesTorso(c)
  823. if head ~= nil then
  824. local targ = head.Position - par.Position
  825. local mag = targ.magnitude
  826. if magni >= mag and c ~= chara then
  827. Dmg3(c)
  828. end
  829. end
  830. end
  831. end
  832. end
  833.  
  834.  
  835. function MagnitudeDmg2(par,magni)
  836. for _, c in pairs(workspace:GetDescendants()) do
  837. local hum = c:FindFirstChildOfClass("Humanoid")
  838. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  839. local head = GetDudesTorso(c)
  840. if head ~= nil then
  841. local targ = head.Position - par.Position
  842. local mag = targ.magnitude
  843. if magni >= mag and c ~= chara then
  844. Dmg2(c)
  845. end
  846. end
  847. end
  848. end
  849. end
  850.  
  851. function MagnitudeDmg(par,magni)
  852. for _, c in pairs(workspace:GetDescendants()) do
  853. local hum = c:FindFirstChildOfClass("Humanoid")
  854. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  855. local head = GetDudesTorso(c)
  856. if head ~= nil then
  857. local targ = head.Position - par.Position
  858. local mag = targ.magnitude
  859. if magni >= mag and c ~= chara then
  860. Dmg(c)
  861. end
  862. end
  863. end
  864. end
  865. end
  866.  
  867. Mouse.Button1Down:connect(function()
  868. shoot()
  869. end)
  870.  
  871. zhold = false
  872. function shoot()
  873. attack = true
  874.  
  875. for i=0,1,.3 do
  876. swait()
  877. PlayAnimationFromTable({
  878. CFrame.new(0, 0, 0),
  879. CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
  880. CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
  881. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  882. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  883. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  884. }, .6, true)
  885. end
  886. Humanoid.WalkSpeed = 2
  887. local ref = Instance.new("Part",chara)
  888. ref.Size = Vector3.new(0,0,0)
  889. ref.Anchored = true
  890. ref.CanCollide = false
  891. ref.Transparency = 1
  892. repeat
  893. so(1145251796,ShotPt,math.random(95,105)/100,3)
  894. ref.CFrame = Mouse.Hit
  895. MagnitudeDmg(ref,2)
  896. Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
  897. Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","New Yeller",false,false,.1)
  898. Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
  899. for i=0,1,.5 do
  900. swait()
  901. PlayAnimationFromTable({
  902. CFrame.new(0, 0, 0),
  903. CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
  904. CFrame.new(1.39410496, 0.938311577, -0.609809875, 0.984807611, 0.0868242383, 0.15038389, 0.173648372, -0.492404044, -0.852868378, 0, 0.866025269, -0.500000179),
  905. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  906. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  907. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  908. }, .3, true)
  909. end
  910. wait(0.5)
  911. for i=0,1,.5 do
  912. swait()
  913. PlayAnimationFromTable({
  914. CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  915. CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
  916. CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
  917. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  918. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  919. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  920. }, .3, true)
  921. end
  922. until zhold == false
  923. ref:Destroy()
  924. Humanoid.WalkSpeed = 16
  925. attack = false
  926. end
  927.  
  928. Mouse.KeyDown:connect(function(k)
  929. k = k:lower()
  930. if k=='e' then
  931. if attack == false then
  932. shoot3()
  933. end
  934. elseif k=='q' then
  935. shoot2()
  936. elseif k=='f' then
  937. shoot4()
  938. end
  939. end)
  940.  
  941. function shoot2()
  942. attack = true
  943.  
  944. for i=0,1,.3 do
  945. swait()
  946. PlayAnimationFromTable({
  947. CFrame.new(0, 0, 0),
  948. CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
  949. CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
  950. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  951. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  952. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  953. }, .6, true)
  954. end
  955. Humanoid.WalkSpeed = 2
  956. local ref = Instance.new("Part",chara)
  957. ref.Size = Vector3.new(0,0,0)
  958. ref.Anchored = true
  959. ref.CanCollide = false
  960. ref.Transparency = 1
  961. repeat
  962. so(1145251796,ShotPt,math.random(95,105)/100,3)
  963. ref.CFrame = Mouse.Hit
  964. MagnitudeDmg2(ref,5)
  965. Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
  966. Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","New Yeller",false,false,.1)
  967. Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
  968. for i=0,1,.5 do
  969. swait()
  970. PlayAnimationFromTable({
  971. CFrame.new(0, 0, 0),
  972. CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
  973. CFrame.new(1.39410496, 0.938311577, -0.609809875, 0.984807611, 0.0868242383, 0.15038389, 0.173648372, -0.492404044, -0.852868378, 0, 0.866025269, -0.500000179),
  974. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  975. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  976. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  977. }, .3, true)
  978. end
  979. wait(0.5)
  980. for i=0,1,.5 do
  981. swait()
  982. PlayAnimationFromTable({
  983. CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  984. CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
  985. CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
  986. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  987. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  988. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  989. }, .3, true)
  990. end
  991. until zhold == false
  992. ref:Destroy()
  993. Humanoid.WalkSpeed = 16
  994. attack = false
  995. end
  996.  
  997.  
  998. function shoot3()
  999. attack = true
  1000.  
  1001. for i=0,1,.3 do
  1002. swait()
  1003. PlayAnimationFromTable({
  1004. CFrame.new(0, 0, 0),
  1005. CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
  1006. CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
  1007. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  1008. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  1009. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1010. }, .6, true)
  1011. end
  1012. Humanoid.WalkSpeed = 2
  1013. local ref = Instance.new("Part",chara)
  1014. ref.Size = Vector3.new(0,0,0)
  1015. ref.Anchored = true
  1016. ref.CanCollide = false
  1017. ref.Transparency = 1
  1018. repeat
  1019. so(1145251796,ShotPt,math.random(95,105)/100,3)
  1020. ref.CFrame = Mouse.Hit
  1021. MagnitudeDmg3(ref,2)
  1022. Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
  1023. Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","New Yeller",false,false,.1)
  1024. Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
  1025. for i=0,1,.5 do
  1026. swait()
  1027. PlayAnimationFromTable({
  1028. CFrame.new(0, 0, 0),
  1029. CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
  1030. CFrame.new(1.39410496, 0.938311577, -0.609809875, 0.984807611, 0.0868242383, 0.15038389, 0.173648372, -0.492404044, -0.852868378, 0, 0.866025269, -0.500000179),
  1031. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  1032. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  1033. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1034. }, .3, true)
  1035. end
  1036. wait(0.5)
  1037. for i=0,1,.5 do
  1038. swait()
  1039. PlayAnimationFromTable({
  1040. CFrame.new(0, 0, 0),
  1041. CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
  1042. CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
  1043. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  1044. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  1045. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1046. }, .3, true)
  1047. end
  1048. until zhold == false
  1049. ref:Destroy()
  1050. Humanoid.WalkSpeed = 16
  1051. attack = false
  1052. end
  1053.  
  1054. function shoot4()
  1055. attack = true
  1056.  
  1057. for i=0,1,.3 do
  1058. swait()
  1059. PlayAnimationFromTable({
  1060. CFrame.new(0, 0, 0),
  1061. CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
  1062. CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
  1063. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  1064. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  1065. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1066. }, .6, true)
  1067. end
  1068. Humanoid.WalkSpeed = 2
  1069. local ref = Instance.new("Part",chara)
  1070. ref.Size = Vector3.new(0,0,0)
  1071. ref.Anchored = true
  1072. ref.CanCollide = false
  1073. ref.Transparency = 1
  1074. repeat
  1075. so(1145251796,ShotPt,math.random(95,105)/100,3)
  1076. ref.CFrame = Mouse.Hit
  1077. for i = 1,5 do
  1078. MagnitudeDmg4(ref,5)
  1079. Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
  1080. Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p + Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","New Yeller",false,false,.1)
  1081. Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Plastic","New Yeller",true,false,.1)
  1082. end
  1083. for i=0,1,.5 do
  1084. swait()
  1085. PlayAnimationFromTable({
  1086. CFrame.new(0, 0, 0),
  1087. CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
  1088. CFrame.new(1.39410496, 0.938311577, -0.609809875, 0.984807611, 0.0868242383, 0.15038389, 0.173648372, -0.492404044, -0.852868378, 0, 0.866025269, -0.500000179),
  1089. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  1090. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  1091. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1092. }, .3, true)
  1093. end
  1094. wait(0.5)
  1095. for i=0,1,.5 do
  1096. swait()
  1097. PlayAnimationFromTable({
  1098. CFrame.new(0, 0, 0),
  1099. CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698),
  1100. CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
  1101. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  1102. CFrame.new(0.69093132, -1.93106842, -0.196962357, 0.98480773, -0.171010062, 0.0301536918, 0.173648179, 0.969846249, -0.171010062, 0, 0.173648179, 0.98480773),
  1103. CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1104. }, .3, true)
  1105. end
  1106. until zhold == false
  1107. ref:Destroy()
  1108. Humanoid.WalkSpeed = 16
  1109. attack = false
  1110. end
  1111.  
  1112.  
  1113. while game:GetService("RunService").Heartbeat:Wait() do
  1114. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1115. velocity = RootPart.Velocity.y
  1116. sine = sine + change
  1117. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  1118. if RootPart.Velocity.y > 1 and hit == nil then
  1119. Anim = "Jump"
  1120. if attack == false then
  1121. PlayAnimationFromTable({
  1122. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1123. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  1124. CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
  1125. CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
  1126. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1127. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1128. }, .3, false)
  1129. end
  1130. elseif RootPart.Velocity.y < -1 and hit == nil then
  1131. Anim = "Fall"
  1132. if attack == false then
  1133. PlayAnimationFromTable({
  1134. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1135. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1136. CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
  1137. CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
  1138. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1139. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1140. }, .3, false)
  1141. end
  1142. elseif Torsovelocity < 1 and hit ~= nil then
  1143. Anim = "Idle"
  1144. if attack == false then
  1145. change = 1
  1146. PlayAnimationFromTable({
  1147. CFrame.new(-0.0769465268, -7.7815578e-08, -0.031559173, 0.939695537, 1.01607293e-06, 0.342021346, 7.9855522e-07, 1.00000191, 5.12654879e-07, -0.342019558, 2.16066837e-07, 0.939692855) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1148. CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855),
  1149. CFrame.new(1.57336235, 0.919147968, -0.523208618, 0.896280468, -0.417211801, 0.15038389, -0.0958181247, -0.513258576, -0.852868378, 0.433012635, 0.749999881, -0.500000179),
  1150. CFrame.new(-1.54149628, 0.128171444, 0.108856201, 0.925416529, 0.336824089, 0.173648179, -0.342020094, 0.939692557, 6.25277607e-13, -0.163175896, -0.0593911633, 0.98480773),
  1151. CFrame.new(0.500003159, -2.00000715, -1.98185444e-06, 0.939692736, 0, -0.342019916, 0, 1, 0, 0.342019886, 0, 0.939692736) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1152. CFrame.new(-0.500018835, -2.0000062, 2.08616257e-07, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1153. }, .3, false)
  1154. end
  1155. elseif Torsovelocity > 2 and hit ~= nil then
  1156. Anim = "Walk"
  1157. if attack == false then
  1158. Humanoid.WalkSpeed = 16
  1159. PlayAnimationFromTable({
  1160. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 2.5), 0) * CFrame.Angles(0, 0, 0),
  1161. CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1162. CFrame.new(1.46526718, 0.534729958, -0.500003815, 0.984807611, 0, 0.173648372, 0.173648372, -4.37107488e-08, -0.98480767, 7.4505806e-09, 1, -4.09781933e-08),
  1163. CFrame.new(-1.4826355, 0, 0.0984783173, 0.969846249, 0.171010062, 0.173648179, -0.173648179, 0.98480773, 3.12638804e-13, -0.171010077, -0.030153688, 0.98480773),
  1164. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  1165. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  1166. }, .3, false)
  1167. end
  1168. end
  1169.  
  1170. if mus.Parent == char then
  1171. mus.SoundId = "rbxassetid://171914461"
  1172. mus.Volume = 2
  1173. mus.Pitch = 1
  1174. mus.Playing = true
  1175. mus.Looped = true
  1176. timepos = mus.TimePosition
  1177. else
  1178. mus = Instance.new("Sound",char)
  1179. mus.TimePosition = timepos
  1180. end
  1181. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement