Advertisement
meninodapacocaII

Untitled

Mar 2nd, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has convert to FE by who i don't know?
  2.  
  3. -----------------------------------------------------
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147. --------------------------------------------------------------------------------
  148. --A Really Mad Guy with a Knife, a Tec-9 and a Sawed-Off! THOSE KIDS WILL PAY!--
  149. --------------------------------------------------------------------------------
  150. --By CKbackup (Sugarie Saffron) --
  151. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  152. --Discord: Sugarie Saffron#4705 --
  153. ----------------------------------------------------------------
  154.  
  155. wait(1/60)
  156. Effects = { }
  157. local Player = game:service'Players'.localPlayer
  158. local chara = Player.Character
  159. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  160. local Mouse = Player:GetMouse()
  161. local LeftArm = chara["Left Arm"]
  162. local RightArm = chara["Right Arm"]
  163. local LeftLeg = chara["Left Leg"]
  164. local RightLeg = chara["Right Leg"]
  165. local Head = chara.Head
  166. local Torso = chara.Torso
  167. local Camera = workspace.CurrentCamera
  168. local RootPart = chara.HumanoidRootPart
  169. local RootJoint = RootPart.RootJoint
  170. local attack = false
  171. local Anim = 'Idle'
  172. local attacktype = 1
  173. local delays = false
  174. local play = true
  175. local targetted = nil
  176. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  177. local velocity = RootPart.Velocity.y
  178. local sine = 0
  179. local change = 1
  180. local doe = 0
  181. local Create = LoadLibrary("RbxUtility").Create
  182. local debby = game:GetService("Debris")
  183. Humanoid.WalkSpeed = 8
  184.  
  185. Humanoid.Animator.Parent = nil
  186. chara.Animate.Parent = nil
  187.  
  188. local newMotor = function(part0, part1, c0, c1)
  189. local w = Create('Motor'){
  190. Parent = part0,
  191. Part0 = part0,
  192. Part1 = part1,
  193. C0 = c0,
  194. C1 = c1,
  195. }
  196. return w
  197. end
  198.  
  199. function clerp(a, b, t)
  200. return a:lerp(b, t)
  201. end
  202.  
  203. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  204. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  205.  
  206. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  207. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  208. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  209. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  210. RootJoint.C1 = CFrame.new(0, 0, 0)
  211. RootJoint.C0 = CFrame.new(0, 0, 0)
  212. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  213. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  214.  
  215. local rarmc1 = RW.C1
  216. local larmc1 = LW.C1
  217. local rlegc1 = RH.C1
  218. local llegc1 = LH.C1
  219.  
  220. local resetc1 = false
  221.  
  222. function PlayAnimationFromTable(table, speed, bool)
  223. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  224. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  225. RW.C0 = clerp(RW.C0, table[3], speed)
  226. LW.C0 = clerp(LW.C0, table[4], speed)
  227. RH.C0 = clerp(RH.C0, table[5], speed)
  228. LH.C0 = clerp(LH.C0, table[6], speed)
  229. if bool == true then
  230. if resetc1 == false then
  231. resetc1 = true
  232. RootJoint.C1 = RootJoint.C1
  233. Torso.Neck.C1 = Torso.Neck.C1
  234. RW.C1 = rarmc1
  235. LW.C1 = larmc1
  236. RH.C1 = rlegc1
  237. LH.C1 = llegc1
  238. end
  239. end
  240. end
  241.  
  242. ArtificialHB = Instance.new("BindableEvent", script)
  243. ArtificialHB.Name = "Heartbeat"
  244. script:WaitForChild("Heartbeat")
  245. frame = 0.03333333333333
  246. tf = 0
  247. allowframeloss = false
  248. tossremainder = false
  249. lastframe = tick()
  250. script.Heartbeat:Fire()
  251. game:GetService("RunService").Heartbeat:connect(function(s, p)
  252. tf = tf + s
  253. if tf >= frame then
  254. if allowframeloss then
  255. script.Heartbeat:Fire()
  256. lastframe = tick()
  257. else
  258. for i = 1, math.floor(tf / frame) do
  259. script.Heartbeat:Fire()
  260. end
  261. lastframe = tick()
  262. end
  263. if tossremainder then
  264. tf = 0
  265. else
  266. tf = tf - frame * math.floor(tf / frame)
  267. end
  268. end
  269. end)
  270. function swait(num)
  271. if num == 0 or num == nil then
  272. ArtificialHB.Event:wait()
  273. else
  274. for i = 0, num do
  275. ArtificialHB.Event:wait()
  276. end
  277. end
  278. end
  279.  
  280. function RemoveOutlines(part)
  281. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  282. end
  283.  
  284. function so(id,par,pit,vol)
  285. local sou = Instance.new("Sound", par or workspace)
  286. if par == chara then
  287. sou.Parent = chara.Torso
  288. end
  289. sou.Volume = vol
  290. sou.Pitch = pit or 1
  291. sou.SoundId = "rbxassetid://" .. id
  292. sou.PlayOnRemove = true
  293. sou:Destroy()
  294. end
  295.  
  296. --This is just for builds--
  297. New = function(Object, Parent, Name, Data)
  298. local Object = Instance.new(Object)
  299. for Index, Value in pairs(Data or {}) do
  300. Object[Index] = Value
  301. end
  302. Object.Parent = Parent
  303. Object.Name = Name
  304. return Object
  305. end
  306. Naifu = New("Part",chara,"Naifu",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 0.200000003, 2.09999967),CFrame = CFrame.new(-46.1688423, 1.71234488, -46.3381615, -0.556669891, -0.663414657, 0.499999702, -0.766044796, 0.642787278, 7.3450633e-07, -0.321393907, -0.383021802, -0.866025567),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  307. Mesh = New("SpecialMesh",Naifu,"Mesh",{Scale = Vector3.new(0.5, 0.699999988, 0.5),VertexColor = Vector3.new(0.5, 0.5, 0.5),MeshId = "rbxassetid://54430772",TextureId = "rbxassetid://54430066",MeshType = Enum.MeshType.FileMesh,})
  308. Weld = New("ManualWeld",Naifu,"Weld",{Part0 = Naifu,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, -0.556669891, -0.766044796, -0.321393907, -0.663414657, 0.642787278, -0.383021802, 0.499999702, 7.3450633e-07, -0.866025567),C1 = CFrame.new(-0.0408859253, -1.28767514, 0.650009155, -0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, -0.866025388),})
  309. TEC9 = New("Part",chara,"TEC9",{BrickColor = BrickColor.new("Dark stone grey"),Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 1.20000005, 1.79999959),CFrame = CFrame.new(-56.3000031, 1.29999971, -46.6999931, -1, -1.00172471e-07, -1.61844298e-08, 5.16190539e-08, -8.19882651e-09, 1, -1.29974794e-07, 1, -4.67569983e-08),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  310. Mesh = New("SpecialMesh",TEC9,"Mesh",{Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012),MeshId = "rbxassetid://742046473",TextureId = "rbxassetid://742046691",MeshType = Enum.MeshType.FileMesh,})
  311. Weld = New("ManualWeld",TEC9,"Weld",{Part0 = TEC9,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, -1, 5.16190539e-08, -1.29974794e-07, -1.00172471e-07, -8.19882651e-09, 1, -1.61844298e-08, 1, -4.67569983e-08),C1 = CFrame.new(-0.0999984741, -1.70001817, -7.62939453e-06, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  312. DBarrel = New("Part",chara,"DBarrel",{BrickColor = BrickColor.new("Dark stone grey"),Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 0.799999952, 2.09999967),CFrame = CFrame.new(-42.2655792, 3.62635231, -28.7166176, 0.99998486, 0.00129485771, -0.00535738515, -0.00132099993, 0.999987245, -0.0048789978, 0.00535099953, 0.00488600042, 0.999973774),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  313. Mesh = New("SpecialMesh",DBarrel,"Mesh",{Scale = Vector3.new(0.00700000022, 0.00700000022, 0.00700000022),MeshId = "rbxassetid://438826329",TextureId = "rbxassetid://438826340",MeshType = Enum.MeshType.FileMesh,})
  314. Weld = New("ManualWeld",DBarrel,"Weld",{Part0 = DBarrel,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 0.99998486, -0.00132099993, 0.00535099953, 0.00129485771, 0.999987245, 0.00488600042, -0.00535738515, -0.0048789978, 0.999973774),C1 = CFrame.new(0.00952529907, -1.46699142, -0.100050688, -0.868691146, -0.00176300027, 0.495351046, -0.495353371, 0.00488599995, -0.868677914, -0.000888805604, -0.999986589, -0.00511773303),})
  315.  
  316. local att1 = Instance.new("Attachment",Naifu)
  317. att1.Position = Vector3.new(0,.2,-.2)
  318. local att2 = Instance.new("Attachment",Naifu)
  319. att2.Position = Vector3.new(0,.1,1.5)
  320. local tr1 = Instance.new("Trail",Naifu)
  321. tr1.Color = ColorSequence.new(Color3.new(.5,.5,.5),Color3.new(1,1,1))
  322. tr1.Transparency = NumberSequence.new(0,1)
  323. tr1.Lifetime = .5
  324. tr1.Enabled = false
  325. tr1.Attachment0 = att1
  326. tr1.Attachment1 = att2
  327.  
  328. if chara:FindFirstChild("FakeHeadM") then
  329. local CorruptFace = New("Decal",chara.FakeHeadM.FakeHead,"Corrupt",{Texture = "rbxassetid://1000657824",})
  330. chara.FakeHeadM.FakeHead.Normal:Destroy()
  331. chara.FakeHeadM.FakeHead.Lood:Destroy()
  332. chara.FakeHeadM.FakeHead.Rooped:Destroy()
  333. chara.FaysG:Destroy()
  334. chara.FakeHeadM.Ahoge:Destroy()
  335. for i,v in pairs(chara:GetDescendants()) do
  336. if v.Name == "SpecPart" or v.Name == "Ears1Part" then
  337. v:Destroy()
  338. elseif v.Name == "Ears2Part" then
  339. v.Transparency = 0
  340. end
  341. end
  342. end
  343. for i, v in pairs(chara:children()) do
  344. if v:IsA("Shirt") or v:IsA("Pants") then
  345. v:Destroy()
  346. elseif v.Name == "Chest" then
  347. for a, b in pairs(v:children()) do
  348. if b.Name ~= "Tail" then
  349. b.Transparency = 1
  350. end
  351. end
  352. end
  353. end
  354. local sh = Instance.new("Shirt",chara)
  355. local pn = Instance.new("Pants",chara)
  356. sh.ShirtTemplate = "rbxassetid://567462542"
  357. pn.PantsTemplate = "rbxassetid://1521666087"
  358. ---------------------------
  359.  
  360. function rayCast(Position, Direction, Range, Ignore)
  361. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  362. end
  363.  
  364. function FindNearestTorso(Position, Distance, SinglePlayer)
  365. if SinglePlayer then
  366. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  367. end
  368. local List = {}
  369. for i, v in pairs(workspace:GetDescendants()) do
  370. if v:IsA("Model") then
  371. if v:findFirstChild("Head") then
  372. if v ~= chara then
  373. if (v.Head.Position - Position).magnitude <= Distance then
  374. table.insert(List, v)
  375. end
  376. end
  377. end
  378. end
  379. end
  380. return List
  381. end
  382.  
  383. EffectModel = Create("Model"){
  384. Parent = chara,
  385. Name = "Effects",
  386. }
  387.  
  388. --Effect Functions--
  389. Effects = {
  390.  
  391. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  392. local p = Instance.new("Part",EffectModel)
  393. p.BrickColor = BrickColor.new(colour)
  394. p.Size = partsize
  395. p.Anchored = true
  396. p.CanCollide = false
  397. p.Material = matr
  398. p.CFrame = cf
  399. if inverse == true then
  400. p.Transparency = 1
  401. else
  402. p.Transparency = 0
  403. end
  404. local m = Instance.new("BlockMesh",p)
  405. m.Scale = meshstart
  406. coroutine.wrap(function()
  407. for i=0,1,factor do
  408. swait()
  409. if inverse == true then
  410. p.Transparency = 1-i
  411. else
  412. p.Transparency = i
  413. end
  414. m.Scale = m.Scale + meshadd
  415. if spin == true then
  416. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  417. end
  418. end
  419. p:Destroy()
  420. end)()
  421. return p
  422. end,
  423.  
  424. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  425. local p = Instance.new("Part",EffectModel)
  426. p.BrickColor = BrickColor.new(colour)
  427. p.Size = partsize
  428. p.Anchored = true
  429. p.CanCollide = false
  430. p.Material = matr
  431. p.CFrame = cf
  432. if inverse == true then
  433. p.Transparency = 1
  434. else
  435. p.Transparency = 0
  436. end
  437. local m = Instance.new("SpecialMesh",p)
  438. m.MeshType = "Sphere"
  439. m.Scale = meshstart
  440. coroutine.wrap(function()
  441. for i=0,1,factor do
  442. swait()
  443. if inverse == true then
  444. p.Transparency = 1-i
  445. else
  446. p.Transparency = i
  447. end
  448. m.Scale = m.Scale + meshadd
  449. end
  450. p:Destroy()
  451. end)()
  452. return p
  453. end,
  454.  
  455. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  456. local p = Instance.new("Part",EffectModel)
  457. p.BrickColor = BrickColor.new(colour)
  458. p.Size = partsize
  459. p.Anchored = true
  460. p.CanCollide = false
  461. p.Material = matr
  462. p.CFrame = cf
  463. if inverse == true then
  464. p.Transparency = 1
  465. else
  466. p.Transparency = 0
  467. end
  468. local m = Instance.new("CylinderMesh",p)
  469. m.Scale = meshstart
  470. coroutine.wrap(function()
  471. for i=0,1,factor do
  472. swait()
  473. if inverse == true then
  474. p.Transparency = 1-i
  475. else
  476. p.Transparency = i
  477. end
  478. m.Scale = m.Scale + meshadd
  479. end
  480. p:Destroy()
  481. end)()
  482. return p
  483. end,
  484.  
  485. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  486. local p = Instance.new("Part",EffectModel)
  487. p.BrickColor = BrickColor.new(colour)
  488. p.Size = Vector3.new()
  489. p.Anchored = true
  490. p.CanCollide = false
  491. p.CFrame = cf
  492. if inverse == true then
  493. p.Transparency = 1
  494. else
  495. p.Transparency = 0
  496. end
  497. local m = Instance.new("SpecialMesh",p)
  498. m.MeshId = "rbxassetid://20329976"
  499. m.Scale = meshstart
  500. coroutine.wrap(function()
  501. for i=0,1,factor do
  502. swait()
  503. if inverse == true then
  504. p.Transparency = 1-i
  505. else
  506. p.Transparency = i
  507. end
  508. m.Scale = m.Scale + meshadd
  509. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  510. end
  511. p:Destroy()
  512. end)()
  513. return p
  514. end,
  515.  
  516. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  517. local p = Instance.new("Part",EffectModel)
  518. p.BrickColor = BrickColor.new(colour)
  519. p.Size = Vector3.new()
  520. p.Anchored = true
  521. p.CanCollide = false
  522. p.CFrame = cf
  523. if inverse == true then
  524. p.Transparency = 1
  525. else
  526. p.Transparency = 0
  527. end
  528. local m = Instance.new("SpecialMesh",p)
  529. m.MeshId = "rbxassetid://3270017"
  530. m.Scale = meshstart
  531. coroutine.wrap(function()
  532. for i=0,1,factor do
  533. swait()
  534. if inverse == true then
  535. p.Transparency = 1-i
  536. else
  537. p.Transparency = i
  538. end
  539. m.Scale = m.Scale + meshadd
  540. end
  541. p:Destroy()
  542. end)()
  543. return p
  544. end,
  545.  
  546. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  547. local p = Instance.new("Part",EffectModel)
  548. p.BrickColor = BrickColor.new(colour)
  549. p.Size = Vector3.new()
  550. p.Anchored = true
  551. p.CanCollide = false
  552. p.CFrame = cf
  553. if inverse == true then
  554. p.Transparency = 1
  555. else
  556. p.Transparency = 0
  557. end
  558. local m = Instance.new("SpecialMesh",p)
  559. m.MeshId = meshid
  560. m.TextureId = textid
  561. m.Scale = meshstart
  562. coroutine.wrap(function()
  563. for i=0,1,factor do
  564. swait()
  565. if inverse == true then
  566. p.Transparency = 1-i
  567. else
  568. p.Transparency = i
  569. end
  570. m.Scale = m.Scale + meshadd
  571. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  572. end
  573. p:Destroy()
  574. end)()
  575. return p
  576. end,
  577.  
  578. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  579. local p = Instance.new("Part",EffectModel)
  580. p.BrickColor = BrickColor.new(colour)
  581. p.Size = partsize
  582. p.Anchored = true
  583. p.CanCollide = false
  584. p.Material = matr
  585. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  586. if inverse == true then
  587. p.Transparency = 1
  588. else
  589. p.Transparency = 0
  590. end
  591. local m = Instance.new("SpecialMesh",p)
  592. m.MeshType = "Sphere"
  593. m.Scale = meshstart
  594. coroutine.wrap(function()
  595. for i=0,1,factor do
  596. swait()
  597. if inverse == true then
  598. p.Transparency = 1-i
  599. else
  600. p.Transparency = i
  601. end
  602. m.Scale = m.Scale + meshadd
  603. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  604. end
  605. p:Destroy()
  606. end)()
  607. return p
  608. end,
  609.  
  610. }
  611.  
  612. function chatfunc(text)
  613. coroutine.wrap(function()
  614. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  615. chara:FindFirstChild("TalkingBillBoard"):destroy()
  616. end
  617. local naeeym2 = Instance.new("BillboardGui",chara)
  618. naeeym2.Size = UDim2.new(0,100,0,40)
  619. naeeym2.StudsOffset = Vector3.new(0,3,0)
  620. naeeym2.Adornee = chara.Head
  621. naeeym2.Name = "BLABLABLA"
  622. local tecks2 = Instance.new("TextLabel",naeeym2)
  623. tecks2.BackgroundTransparency = 1
  624. tecks2.BorderSizePixel = 0
  625. tecks2.Text = ""
  626. tecks2.Font = "Antique"
  627. tecks2.FontSize = "Size24"
  628. tecks2.TextStrokeTransparency = 0
  629. tecks2.TextColor3 = Color3.new(0,0,0)
  630. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  631. tecks2.Size = UDim2.new(1,0,0.5,0)coroutine.wrap(function()
  632. while tecks2 ~= nil do
  633. swait()
  634. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  635. end
  636. end)()
  637. for i = 1,string.len(text),1 do
  638. tecks2.Text = string.sub(text,1,i)
  639. swait()
  640. end
  641. swait(30)
  642. for i = 1, 5 do
  643. swait()
  644. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  645. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  646. tecks2.TextTransparency = tecks2.TextTransparency + .2
  647. end
  648. naeeym2:Destroy()
  649. end)()
  650. end
  651.  
  652. function GetDudesTorso(c)
  653. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  654. if torsy ~= nil then
  655. return torsy
  656. end
  657. end
  658.  
  659. function BodyVel(part,faws)
  660. local bodyvel = Instance.new("BodyVelocity",part)
  661. local pep = 10000000
  662. bodyvel.P = pep
  663. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  664. bodyvel.Velocity = faws
  665. debby:AddItem(bodyvel,.2)
  666. end
  667.  
  668. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  669. if dude and dude ~= chara and dude.Name ~= "CKbackup" and dude.Name ~= "Nebula_Zorua" and dude.Name ~= "Salvo_Starly" then
  670. if dude:FindFirstChild("HITO") then return end
  671. local debounce = Instance.new("BoolValue",dude)
  672. debounce.Name = "HITO"
  673. debby:AddItem(debounce,toim)
  674. local hum = dude:FindFirstChildOfClass("Humanoid")
  675. local dam = dmg+math.random(-env,env)
  676. local teksu = "-"..dam
  677. if hum then
  678. local finhel = hum.Health - dam
  679. if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
  680. Instance.new("BoolValue",dude).Name = "DEATHED"
  681. local soaa = Instance.new("Sound",dude.Head)
  682. local cho = math.random(1,5)
  683. if cho == 1 then
  684. soaa.SoundId = "rbxassetid://111896685"
  685. elseif cho == 2 then
  686. soaa.SoundId = "rbxassetid://535528169"
  687. elseif cho == 3 then
  688. soaa.SoundId = "rbxassetid://1080363252"
  689. elseif cho == 4 then
  690. soaa.SoundId = "rbxassetid://147758746"
  691. elseif cho == 5 then
  692. soaa.SoundId = "rbxassetid://626777433"
  693. soaa.Volume = .2
  694. soaa.TimePosition = 1
  695. end
  696. game:service'Debris':AddItem(soaa,6)
  697. soaa:Play()
  698. end
  699. hum.Health = hum.Health - dam
  700. end
  701. coroutine.wrap(function()
  702. local naeeym2 = Instance.new("BillboardGui",dude)
  703. naeeym2.Size = UDim2.new(0,100,0,40)
  704. naeeym2.StudsOffset = Vector3.new(0,3,0)
  705. naeeym2.Adornee = dude:FindFirstChild("Head")
  706. naeeym2.Name = "TalkingBillBoard"
  707. local tecks2 = Instance.new("TextLabel",naeeym2)
  708. tecks2.BackgroundTransparency = 1
  709. tecks2.BorderSizePixel = 0
  710. tecks2.Text = teksu
  711. tecks2.Font = "Antique"
  712. tecks2.TextSize = 24
  713. tecks2.TextStrokeTransparency = 0
  714. tecks2.TextColor3 = Color3.new(0,0,0)
  715. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  716. tecks2.Size = UDim2.new(1,0,0.5,0)
  717. swait(10)
  718. for i = 0,1,.05 do
  719. swait()
  720. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  721. tecks2.TextStrokeTransparency = i
  722. tecks2.TextTransparency = i
  723. end
  724. naeeym2:Destroy()
  725. end)()
  726. local torsy = GetDudesTorso(dude)
  727. if torsy then
  728. for i=1,dam/5 do
  729. local blp = Instance.new("Part",EffectModel)
  730. blp.Size = Vector3.new(.3,.3,.3)
  731. blp.BrickColor = BrickColor.new("Crimson")
  732. blp.CFrame = torsy.CFrame
  733. blp.Velocity = torsy.CFrame.lookVector*5
  734. coroutine.wrap(function()
  735. swait(10)
  736. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  737. for i=0,1,.1 do
  738. swait()
  739. blp.Transparency = i
  740. blp.Size = blp.Size + Vector3.new(.02,-.02,.02)
  741. end
  742. blp:Destroy()
  743. end)()
  744. end
  745. if efftyp == "Blunt" then
  746. puncheff(torsy)
  747. elseif efftyp == "Sharp" then
  748. slasheff(torsy)
  749. end
  750. if faws ~= 0 then
  751. BodyVel(torsy,faws)
  752. end
  753. if trip == true then
  754. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  755. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  756. end
  757. end
  758. end
  759. end
  760.  
  761. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  762. for _, c in pairs(workspace:GetDescendants()) do
  763. local hum = c:FindFirstChildOfClass("Humanoid")
  764. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil and c.Name ~= "CKbackup" and c.Name ~= "Nebula_Zorua" and c.Name ~= "Salvo_Starly" then
  765. local head = GetDudesTorso(c)
  766. if head ~= nil then
  767. local targ = head.Position - par.Position
  768. local mag = targ.magnitude
  769. if magni >= mag and c ~= chara then
  770. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  771. end
  772. end
  773. end
  774. end
  775. end
  776.  
  777. function puncheff(par)
  778. if par.Parent:FindFirstChild("DebounceHit")==nil then
  779. so(386946017,par,math.random(80,120)/100,1)
  780. Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(2,2,2),"Neon","White",false,.1)
  781. end
  782. end
  783.  
  784. function slasheff(par)
  785. if par.Parent:FindFirstChild("DebounceHit")==nil then
  786. local cho = math.random(1,3)
  787. if cho == 1 then
  788. so(444667824,par,1,1)
  789. elseif cho == 2 then
  790. so(444667844,par,1,1)
  791. elseif cho == 3 then
  792. so(444667859,par,1,1)
  793. end
  794. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  795. Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(0,5,0),"Neon","Really red",false,.1)
  796. end
  797. end
  798.  
  799. local mus = Instance.new("Sound",Head)
  800. mus.Name = "mus"
  801. mus.SoundId = "rbxassetid://581195737"
  802. mus.Looped = true
  803. mus.Volume = 1
  804. mus:Play()
  805.  
  806. coroutine.wrap(function()
  807. chatfunc("I'm tired of all of this crap..")
  808. swait(90)
  809. chatfunc("Now the day of reckoning has begun..")
  810. swait(90)
  811. chatfunc("This shall be my finest hour..")
  812. swait(90)
  813. chatfunc("ICH BIN GOTT! BERZERKER!")
  814. end)()
  815.  
  816. function smek()
  817. attack = true
  818. Humanoid.WalkSpeed = 16
  819. for i=0,1,.1 do
  820. swait()
  821. PlayAnimationFromTable({
  822. CFrame.new(0.0506498702, -5.11459177e-07, -0.0829713419, 0.76604414, 0, 0.642788053, -2.68192082e-07, 1.00000834, 3.19618522e-07, -0.642793417, -4.17232513e-07, 0.766050518),
  823. CFrame.new(0.0446723551, 1.46553934, 0.0211830139, 0.735023618, 0.242944986, -0.633023083, -0.171009988, 0.969846427, 0.173647657, 0.656122029, -0.0193818808, 0.754406095),
  824. CFrame.new(1.40946591, -0.0135071278, 0, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  825. CFrame.new(-1.55299187, 0.416839302, -0.457236975, 0.68952775, 0.492403448, -0.53112185, -0.633021951, 0.766044736, -0.11161866, 0.35190171, 0.413175911, 0.839911342),
  826. CFrame.new(0.499983132, -2.00001597, -9.13441181e-06, 0.76604414, 0, -0.642788053, 0, 1, 0, 0.642788053, 0, 0.76604414),
  827. CFrame.new(-0.500005186, -2.00001597, -1.22189522e-06, 0.98480773, 0, 0.173648447, 0, 1, 0, -0.173648447, 0, 0.98480773),
  828. }, .3, false)
  829. end
  830. Humanoid.WalkSpeed = 2
  831. tr1.Enabled = true
  832. so(536642316,Naifu,1,1)
  833. for i=0,1.4,.2 do
  834. swait()
  835. PlayAnimationFromTable({
  836. CFrame.new(0.0327370502, 1.24810251e-09, 0.00299140904, 0.64278698, 0, -0.766044974, 3.19616191e-07, 1, 2.68189382e-07, 0.766044974, -4.17229018e-07, 0.64278698),
  837. CFrame.new(-0.0331632644, 1.46557713, -0.11364907, 0.656121135, -0.0193833038, 0.754413188, -0.171011418, 0.969854534, 0.173649102, -0.735024333, -0.24294585, 0.633027315),
  838. CFrame.new(1.24921072, -0.104290992, 0.29409039, 0.93969059, 0.26200676, 0.21985054, -0.342026025, 0.719844162, 0.604022086, -2.68220901e-07, -0.642788291, 0.766043901),
  839. CFrame.new(-0.663761616, 0.985711455, -0.487553686, 0.383021712, -0.64278698, -0.663414836, -0.866025984, 0, -0.499998987, 0.321392834, 0.766044974, -0.556670249),
  840. CFrame.new(0.500005841, -2.00003386, -4.52250242e-06, 0.984807551, 0, -0.173649341, 0, 1, 0, 0.173649341, 0, 0.984807551),
  841. CFrame.new(-0.499993563, -2.00003386, -1.44541264e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  842. }, .5, false)
  843. MagnitudeDmg(Naifu,3,40,3,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
  844. end
  845. swait(5)
  846. Humanoid.WalkSpeed = 8
  847. tr1.Enabled = false
  848. attack = false
  849. end
  850.  
  851. zhold = true
  852. function shoot()
  853. attack = true
  854. so(169799883,TEC9,1,1)
  855. for i=0,1,.1 do
  856. swait()
  857. PlayAnimationFromTable({
  858. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  859. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  860. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  861. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  862. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  863. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  864. }, .3, false)
  865. end
  866. Humanoid.WalkSpeed = 2
  867. local ref = Instance.new("Part",chara)
  868. ref.Size = Vector3.new(0,0,0)
  869. ref.Anchored = true
  870. ref.CanCollide = false
  871. ref.Transparency = 1
  872. TEC9.Transparency = 0
  873. for i=0,1,.1 do
  874. swait()
  875. PlayAnimationFromTable({
  876. CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  877. CFrame.new(0.0674266815, 1.48262143, -0.0571227223, 0.939692736, 0.0593910702, -0.33682391, 0, 0.984807849, 0.173647985, 0.342019886, -0.163175747, 0.925416768),
  878. CFrame.new(1.62663007, 0.722141325, -0.273156077, 0.883022428, -0.342019916, 0.321393609, 0.342019916, 0, -0.939692736, 0.321393609, 0.939692736, 0.116977602),
  879. CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
  880. CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  881. CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
  882. }, .3, false)
  883. end
  884. swait(5)
  885. local shots = 20
  886. repeat
  887. so(745308042,TEC9,1,1)
  888. ref.CFrame = Mouse.Hit
  889. MagnitudeDmg(ref,2,12,2,RootPart.CFrame.lookVector*3,false,"Shot",.1)
  890. local hitpt = Instance.new("Part",EffectModel)
  891. hitpt.Size = Vector3.new(0,0,.3)
  892. hitpt.CFrame = TEC9.CFrame * CFrame.new(0,.465,.1)-- * CFrame.Angles(math.rad(90),0,0)
  893. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  894. local hitm = Instance.new("SpecialMesh",hitpt)
  895. hitm.MeshId = "rbxassetid://94295100"
  896. hitm.TextureId = "rbxassetid://94287792"
  897. hitm.Scale = Vector3.new(3,3,3.5)
  898. coroutine.wrap(function()
  899. swait(30)
  900. for i = 0,1,.1 do
  901. swait()
  902. hitpt.Transparency = i
  903. end
  904. hitpt:Destroy()
  905. end)()
  906. Effects.Block(TEC9.CFrame*CFrame.new(-.05,.465,-.9),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  907. shots = shots - 1
  908. for i=0,1 do
  909. swait()
  910. PlayAnimationFromTable({
  911. CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  912. CFrame.new(0.0674266815, 1.48262143, -0.0571227223, 0.939692736, 0.0593910702, -0.33682391, 0, 0.984807849, 0.173647985, 0.342019886, -0.163175747, 0.925416768),
  913. CFrame.new(1.62663007, 0.722141325, -0.273156077, 0.883022428, -0.342019916, 0.321393609, 0.342019916, 0, -0.939692736, 0.321393609, 0.939692736, 0.116977602)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),
  914. CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
  915. CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  916. CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
  917. }, .3, false)
  918. end
  919. until zhold == false or shots == 0
  920. swait(5)
  921. ref:Destroy()
  922. for i=0,1,.25 do
  923. swait()
  924. PlayAnimationFromTable({
  925. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  926. CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  927. CFrame.new(1.39502811, 0.908103704, 0.515749812, -0.213331953, -0.84539932, -0.489683062, 0.875778735, 0.056671422, -0.479374528, 0.433013916, -0.531119943, 0.728292942),
  928. CFrame.new(-1.5091548, 0.323206276, -0.384231716, 0.750000238, 0.433013409, -0.499999136, -0.500000179, 0.866025388, 6.10661004e-07, 0.433012158, 0.249999225, 0.866025925),
  929. CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  930. CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  931. }, .4, false)
  932. end
  933. so(1159825801,TEC9,1,1)
  934. swait(15)
  935. so(211134014,TEC9,1,1)
  936. for i=0,1,.1 do
  937. swait()
  938. PlayAnimationFromTable({
  939. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  940. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  941. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  942. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  943. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  944. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  945. }, .3, false)
  946. end
  947. TEC9.Transparency = 1
  948. Humanoid.WalkSpeed = 8
  949. attack = false
  950. end
  951.  
  952. function dbshoot()
  953. attack = true
  954. so(169799883,DBarrel,1,1)
  955. for i=0,1,.1 do
  956. swait()
  957. PlayAnimationFromTable({
  958. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  959. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  960. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  961. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  962. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  963. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  964. }, .3, false)
  965. end
  966. Humanoid.WalkSpeed = 2
  967. DBarrel.Transparency = 0
  968. for i=0,1,.1 do
  969. swait()
  970. PlayAnimationFromTable({
  971. CFrame.new(0, 0.0149096567, 0.133909225, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  972. CFrame.new(0, 1.43158329, -0.187937319, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  973. CFrame.new(1.0840646, 0.399937928, -0.718070745, 0.868691146, 0.495353371, 0.000888805604, -0.0877529308, 0.15565595, -0.983905911, -0.487519473, 0.854632378, 0.17868565),
  974. CFrame.new(-1.35562694, -0.0255649146, 0.396688521, 0.939692378, -0.116977789, 0.321394831, -2.60770321e-07, 0.939692855, 0.342019856, -0.342021167, -0.321393549, 0.883021951),
  975. CFrame.new(0.499995321, -2.00755072, 0.218008161, 0.939692736, 0, -0.342019886, 0.0593910702, 0.984807849, 0.163175747, 0.33682391, -0.173647985, 0.925416768),
  976. CFrame.new(-0.499996126, -2.00755, 0.218011439, 0.939692736, 0, 0.342019886, -0.0593910702, 0.984807849, 0.163175747, -0.33682391, -0.173647985, 0.925416768),
  977. }, .3, false)
  978. end
  979. swait(5)
  980. so(132455829,DBarrel,1,1)
  981. local ref = Instance.new("Part",chara)
  982. ref.Size = Vector3.new(0,0,0)
  983. ref.Anchored = true
  984. ref.CanCollide = false
  985. ref.Transparency = 1
  986. ref.CFrame = RootPart.CFrame*CFrame.new(0,0,-6)
  987. MagnitudeDmg(ref,4,100,0,RootPart.CFrame.lookVector*12,true,"Shot",.1)
  988. Effects.Block(DBarrel.CFrame*CFrame.new(.1,.3,1.1),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.05)
  989. Effects.Block(DBarrel.CFrame*CFrame.new(-.1,.3,1.1),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.05)
  990. ref:Destroy()
  991. for i=0,1,.1 do
  992. swait()
  993. PlayAnimationFromTable({
  994. CFrame.new(0, 0.0149102025, 0.133909985, 1, 0, 0, 0, 0.984812796, -0.173648849, 0, 0.173648849, 0.984812796),
  995. CFrame.new(0, 1.43158948, 0.0120660895, 1, 0, 0, 0, 1.00000262, -1.1920929e-07, 0, 1.1920929e-07, 1.00000262),
  996. CFrame.new(1.20370889, 0.765974879, -0.570772648, 0.868689418, 0.319091678, -0.378892303, -0.0877506882, -0.653664529, -0.751683295, -0.48752436, 0.686227262, -0.539830863),
  997. CFrame.new(-1.49794042, 0.21531868, 0.355185598, 0.923031092, 0.211469814, 0.321394384, -0.321394086, 0.883024752, 0.342021078, -0.211472049, -0.418990374, 0.883024335),
  998. CFrame.new(0.499998927, -2.00757003, 0.218012124, 0.939692736, 0, -0.342019886, 0.0593913682, 0.984812796, 0.163176581, 0.336825609, -0.173648849, 0.925421476),
  999. CFrame.new(-0.500004649, -2.00756979, 0.218013197, 0.939692736, 0, 0.342019886, -0.0593913682, 0.984812796, 0.163176581, -0.336825609, -0.173648849, 0.925421476),
  1000. }, .3, false)
  1001. end
  1002. swait(10)
  1003. for i=0,1,.25 do
  1004. swait()
  1005. PlayAnimationFromTable({
  1006. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1007. CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1008. CFrame.new(1.39502811, 0.908103704, 0.515749812, -0.213331953, -0.84539932, -0.489683062, 0.875778735, 0.056671422, -0.479374528, 0.433013916, -0.531119943, 0.728292942),
  1009. CFrame.new(-1.5091548, 0.323206276, -0.384231716, 0.750000238, 0.433013409, -0.499999136, -0.500000179, 0.866025388, 6.10661004e-07, 0.433012158, 0.249999225, 0.866025925),
  1010. CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1011. CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1012. }, .4, false)
  1013. end
  1014. for i=1,2 do
  1015. so(1159825801,DBarrel,1,1)
  1016. local hitpt = Instance.new("Part",EffectModel)
  1017. hitpt.Size = Vector3.new(0,0,.3)
  1018. hitpt.CFrame = TEC9.CFrame * CFrame.Angles(math.rad(90),0,0)
  1019. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1020. local hitm = Instance.new("SpecialMesh",hitpt)
  1021. hitm.MeshId = "rbxassetid://94248124"
  1022. hitm.TextureId = "rbxassetid://94219470"
  1023. hitm.Scale = Vector3.new(1.2,1.2,1.2)
  1024. coroutine.wrap(function()
  1025. swait(30)
  1026. for i = 0,1,.1 do
  1027. swait()
  1028. hitpt.Transparency = i
  1029. end
  1030. hitpt:Destroy()
  1031. end)()
  1032. swait()
  1033. end
  1034. swait(15)
  1035. so(211134014,DBarrel,1,1)
  1036. for i=0,1,.1 do
  1037. swait()
  1038. PlayAnimationFromTable({
  1039. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1040. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  1041. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  1042. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1043. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  1044. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1045. }, .3, false)
  1046. end
  1047. DBarrel.Transparency = 1
  1048. Humanoid.WalkSpeed = 8
  1049. attack = false
  1050. end
  1051.  
  1052. Mouse.Button1Down:connect(function()
  1053. if attack == false then
  1054. smek()
  1055. end
  1056. end)
  1057.  
  1058. local sprintt = 0
  1059. Mouse.KeyDown:connect(function(k)
  1060. k = k:lower()
  1061. if k=='m' then
  1062. if mus.IsPlaying == true then
  1063. mus:Stop()
  1064. elseif mus.IsPaused == true then
  1065. mus:Play()
  1066. end
  1067. end
  1068. if attack == false then
  1069. if k == 'z' then
  1070. zhold = true
  1071. shoot()
  1072. elseif k == 'x' then
  1073. dbshoot()
  1074. end
  1075. end
  1076. end)
  1077.  
  1078. Mouse.KeyUp:connect(function(k)
  1079. k = k:lower()
  1080. if k == 'z' then
  1081. zhold = false
  1082. end
  1083. end)
  1084.  
  1085. coroutine.wrap(function()
  1086. while 1 do
  1087. swait()
  1088. if doe <= 360 then
  1089. doe = doe + 2
  1090. else
  1091. doe = 0
  1092. end
  1093. end
  1094. end)()
  1095. while true do
  1096. swait()
  1097. while true do
  1098. swait()
  1099. if Head:FindFirstChild("mus")==nil then
  1100. mus = Instance.new("Sound",Head)
  1101. mus.Name = "mus"
  1102. mus.SoundId = "rbxassetid://581195737"
  1103. mus.Looped = true
  1104. mus.Volume = 1
  1105. mus:Play()
  1106. end
  1107. if sprintt >= 1 then
  1108. sprintt = sprintt - 1
  1109. end
  1110. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1111. velocity = RootPart.Velocity.y
  1112. sine = sine + change
  1113. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  1114. if RootPart.Velocity.y > 1 and hit == nil then
  1115. Anim = "Jump"
  1116. if attack == false then
  1117. PlayAnimationFromTable({
  1118. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1119. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  1120. 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),
  1121. 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),
  1122. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1123. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1124. }, .3, false)
  1125. end
  1126. elseif RootPart.Velocity.y < -1 and hit == nil then
  1127. Anim = "Fall"
  1128. if attack == false then
  1129. PlayAnimationFromTable({
  1130. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1131. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1132. 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),
  1133. 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),
  1134. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1135. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1136. }, .3, false)
  1137. end
  1138. elseif Torsovelocity < 1 and hit ~= nil then
  1139. Anim = "Idle"
  1140. if attack == false then
  1141. change = 1
  1142. PlayAnimationFromTable({
  1143. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1144. CFrame.new(0, 1.48262823, -0.0984786302, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1145. CFrame.new(1.20945334, -0.213505104, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1146. CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1147. CFrame.new(0.499997705, -2, -2.77906656e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1148. CFrame.new(-0.50000149, -2, -2.11596489e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1149. }, .3, false)
  1150. end
  1151. elseif Torsovelocity > 2 and hit ~= nil then
  1152. Anim = "Walk"
  1153. if attack == false then
  1154. Humanoid.WalkSpeed = 8
  1155. PlayAnimationFromTable({
  1156. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0),
  1157. CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1158. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, -.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0),
  1159. CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1160. 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) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0),
  1161. 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) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0),
  1162. }, .3, false)
  1163. end
  1164. end
  1165. end
  1166. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement