Advertisement
zXzGamePROzXz

Really mad guy

Jan 15th, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.37 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. --------------------------------------------------------------------------------
  7. --A Really Mad Guy with a Knife, a Tec-9 and a Sawed-Off! THOSE KIDS WILL PAY!--
  8. --------------------------------------------------------------------------------
  9. --By CKbackup (Sugarie Saffron) --
  10. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  11. --Discord: Sugarie Saffron#4705 --
  12. ----------------------------------------------------------------
  13.  
  14. wait(1/60)
  15. Effects = { }
  16. local Player = game:service'Players'.localPlayer
  17. local chara = Player.Character
  18. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  19. local Mouse = Player:GetMouse()
  20. local LeftArm = chara["Left Arm"]
  21. local RightArm = chara["Right Arm"]
  22. local LeftLeg = chara["Left Leg"]
  23. local RightLeg = chara["Right Leg"]
  24. local Head = chara.Head
  25. local Torso = chara.Torso
  26. local Camera = workspace.CurrentCamera
  27. local RootPart = chara.HumanoidRootPart
  28. local RootJoint = RootPart.RootJoint
  29. local attack = false
  30. local Anim = 'Idle'
  31. local attacktype = 1
  32. local delays = false
  33. local play = true
  34. local targetted = nil
  35. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  36. local velocity = RootPart.Velocity.y
  37. local sine = 0
  38. local change = 1
  39. local doe = 0
  40. local Create = LoadLibrary("RbxUtility").Create
  41. local debby = game:GetService("Debris")
  42. Humanoid.WalkSpeed = 8
  43.  
  44. Humanoid.Animator.Parent = nil
  45. chara.Animate.Parent = nil
  46.  
  47. local newMotor = function(part0, part1, c0, c1)
  48. local w = Create('Motor'){
  49. Parent = part0,
  50. Part0 = part0,
  51. Part1 = part1,
  52. C0 = c0,
  53. C1 = c1,
  54. }
  55. return w
  56. end
  57.  
  58. function clerp(a, b, t)
  59. return a:lerp(b, t)
  60. end
  61.  
  62. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  63. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  64.  
  65. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  66. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  67. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  68. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  69. RootJoint.C1 = CFrame.new(0, 0, 0)
  70. RootJoint.C0 = CFrame.new(0, 0, 0)
  71. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  72. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  73.  
  74. local rarmc1 = RW.C1
  75. local larmc1 = LW.C1
  76. local rlegc1 = RH.C1
  77. local llegc1 = LH.C1
  78.  
  79. local resetc1 = false
  80.  
  81. function PlayAnimationFromTable(table, speed, bool)
  82. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  83. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  84. RW.C0 = clerp(RW.C0, table[3], speed)
  85. LW.C0 = clerp(LW.C0, table[4], speed)
  86. RH.C0 = clerp(RH.C0, table[5], speed)
  87. LH.C0 = clerp(LH.C0, table[6], speed)
  88. if bool == true then
  89. if resetc1 == false then
  90. resetc1 = true
  91. RootJoint.C1 = RootJoint.C1
  92. Torso.Neck.C1 = Torso.Neck.C1
  93. RW.C1 = rarmc1
  94. LW.C1 = larmc1
  95. RH.C1 = rlegc1
  96. LH.C1 = llegc1
  97. end
  98. end
  99. end
  100.  
  101. ArtificialHB = Instance.new("BindableEvent", script)
  102. ArtificialHB.Name = "Heartbeat"
  103. script:WaitForChild("Heartbeat")
  104. frame = 0.03333333333333
  105. tf = 0
  106. allowframeloss = false
  107. tossremainder = false
  108. lastframe = tick()
  109. script.Heartbeat:Fire()
  110. game:GetService("RunService").Heartbeat:connect(function(s, p)
  111. tf = tf + s
  112. if tf >= frame then
  113. if allowframeloss then
  114. script.Heartbeat:Fire()
  115. lastframe = tick()
  116. else
  117. for i = 1, math.floor(tf / frame) do
  118. script.Heartbeat:Fire()
  119. end
  120. lastframe = tick()
  121. end
  122. if tossremainder then
  123. tf = 0
  124. else
  125. tf = tf - frame * math.floor(tf / frame)
  126. end
  127. end
  128. end)
  129. function swait(num)
  130. if num == 0 or num == nil then
  131. ArtificialHB.Event:wait()
  132. else
  133. for i = 0, num do
  134. ArtificialHB.Event:wait()
  135. end
  136. end
  137. end
  138.  
  139. function RemoveOutlines(part)
  140. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  141. end
  142.  
  143. function so(id,par,pit,vol)
  144. local sou = Instance.new("Sound", par or workspace)
  145. if par == chara then
  146. sou.Parent = chara.Torso
  147. end
  148. sou.Volume = vol
  149. sou.Pitch = pit or 1
  150. sou.SoundId = "rbxassetid://" .. id
  151. sou.PlayOnRemove = true
  152. sou:Destroy()
  153. end
  154.  
  155. --This is just for builds--
  156. New = function(Object, Parent, Name, Data)
  157. local Object = Instance.new(Object)
  158. for Index, Value in pairs(Data or {}) do
  159. Object[Index] = Value
  160. end
  161. Object.Parent = Parent
  162. Object.Name = Name
  163. return Object
  164. end
  165. 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),})
  166. 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,})
  167. 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),})
  168. 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),})
  169. Mesh = New("SpecialMesh",TEC9,"Mesh",{Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012),MeshId = "rbxassetid://742046473",TextureId = "rbxassetid://742046691",MeshType = Enum.MeshType.FileMesh,})
  170. 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),})
  171. 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),})
  172. Mesh = New("SpecialMesh",DBarrel,"Mesh",{Scale = Vector3.new(0.00700000022, 0.00700000022, 0.00700000022),MeshId = "rbxassetid://438826329",TextureId = "rbxassetid://438826340",MeshType = Enum.MeshType.FileMesh,})
  173. 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),})
  174.  
  175. local att1 = Instance.new("Attachment",Naifu)
  176. att1.Position = Vector3.new(0,.2,-.2)
  177. local att2 = Instance.new("Attachment",Naifu)
  178. att2.Position = Vector3.new(0,.1,1.5)
  179. local tr1 = Instance.new("Trail",Naifu)
  180. tr1.Color = ColorSequence.new(Color3.new(.5,.5,.5),Color3.new(1,1,1))
  181. tr1.Transparency = NumberSequence.new(0,1)
  182. tr1.Lifetime = .5
  183. tr1.Enabled = false
  184. tr1.Attachment0 = att1
  185. tr1.Attachment1 = att2
  186.  
  187. if chara:FindFirstChild("FakeHeadM") then
  188. local CorruptFace = New("Decal",chara.FakeHeadM.FakeHead,"Corrupt",{Texture = "rbxassetid://1000657824",})
  189. chara.FakeHeadM.FakeHead.Normal:Destroy()
  190. chara.FakeHeadM.FakeHead.Lood:Destroy()
  191. chara.FakeHeadM.FakeHead.Rooped:Destroy()
  192. chara.FaysG:Destroy()
  193. chara.FakeHeadM.Ahoge:Destroy()
  194. for i,v in pairs(chara:GetDescendants()) do
  195. if v.Name == "SpecPart" or v.Name == "Ears1Part" then
  196. v:Destroy()
  197. elseif v.Name == "Ears2Part" then
  198. v.Transparency = 0
  199. end
  200. end
  201. end
  202. for i, v in pairs(chara:children()) do
  203. if v:IsA("Shirt") or v:IsA("Pants") then
  204. v:Destroy()
  205. elseif v.Name == "Chest" then
  206. for a, b in pairs(v:children()) do
  207. if b.Name ~= "Tail" then
  208. b.Transparency = 1
  209. end
  210. end
  211. end
  212. end
  213. local sh = Instance.new("Shirt",chara)
  214. local pn = Instance.new("Pants",chara)
  215. sh.ShirtTemplate = "rbxassetid://567462542"
  216. pn.PantsTemplate = "rbxassetid://1521666087"
  217. ---------------------------
  218.  
  219. function rayCast(Position, Direction, Range, Ignore)
  220. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  221. end
  222.  
  223. function FindNearestTorso(Position, Distance, SinglePlayer)
  224. if SinglePlayer then
  225. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  226. end
  227. local List = {}
  228. for i, v in pairs(workspace:GetDescendants()) do
  229. if v:IsA("Model") then
  230. if v:findFirstChild("Head") then
  231. if v ~= chara then
  232. if (v.Head.Position - Position).magnitude <= Distance then
  233. table.insert(List, v)
  234. end
  235. end
  236. end
  237. end
  238. end
  239. return List
  240. end
  241.  
  242. EffectModel = Create("Model"){
  243. Parent = chara,
  244. Name = "Effects",
  245. }
  246.  
  247. --Effect Functions--
  248. Effects = {
  249.  
  250. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  251. local p = Instance.new("Part",EffectModel)
  252. p.BrickColor = BrickColor.new(colour)
  253. p.Size = partsize
  254. p.Anchored = true
  255. p.CanCollide = false
  256. p.Material = matr
  257. p.CFrame = cf
  258. if inverse == true then
  259. p.Transparency = 1
  260. else
  261. p.Transparency = 0
  262. end
  263. local m = Instance.new("BlockMesh",p)
  264. m.Scale = meshstart
  265. coroutine.wrap(function()
  266. for i=0,1,factor do
  267. swait()
  268. if inverse == true then
  269. p.Transparency = 1-i
  270. else
  271. p.Transparency = i
  272. end
  273. m.Scale = m.Scale + meshadd
  274. if spin == true then
  275. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  276. end
  277. end
  278. p:Destroy()
  279. end)()
  280. return p
  281. end,
  282.  
  283. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  284. local p = Instance.new("Part",EffectModel)
  285. p.BrickColor = BrickColor.new(colour)
  286. p.Size = partsize
  287. p.Anchored = true
  288. p.CanCollide = false
  289. p.Material = matr
  290. p.CFrame = cf
  291. if inverse == true then
  292. p.Transparency = 1
  293. else
  294. p.Transparency = 0
  295. end
  296. local m = Instance.new("SpecialMesh",p)
  297. m.MeshType = "Sphere"
  298. m.Scale = meshstart
  299. coroutine.wrap(function()
  300. for i=0,1,factor do
  301. swait()
  302. if inverse == true then
  303. p.Transparency = 1-i
  304. else
  305. p.Transparency = i
  306. end
  307. m.Scale = m.Scale + meshadd
  308. end
  309. p:Destroy()
  310. end)()
  311. return p
  312. end,
  313.  
  314. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  315. local p = Instance.new("Part",EffectModel)
  316. p.BrickColor = BrickColor.new(colour)
  317. p.Size = partsize
  318. p.Anchored = true
  319. p.CanCollide = false
  320. p.Material = matr
  321. p.CFrame = cf
  322. if inverse == true then
  323. p.Transparency = 1
  324. else
  325. p.Transparency = 0
  326. end
  327. local m = Instance.new("CylinderMesh",p)
  328. m.Scale = meshstart
  329. coroutine.wrap(function()
  330. for i=0,1,factor do
  331. swait()
  332. if inverse == true then
  333. p.Transparency = 1-i
  334. else
  335. p.Transparency = i
  336. end
  337. m.Scale = m.Scale + meshadd
  338. end
  339. p:Destroy()
  340. end)()
  341. return p
  342. end,
  343.  
  344. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  345. local p = Instance.new("Part",EffectModel)
  346. p.BrickColor = BrickColor.new(colour)
  347. p.Size = Vector3.new()
  348. p.Anchored = true
  349. p.CanCollide = false
  350. p.CFrame = cf
  351. if inverse == true then
  352. p.Transparency = 1
  353. else
  354. p.Transparency = 0
  355. end
  356. local m = Instance.new("SpecialMesh",p)
  357. m.MeshId = "rbxassetid://20329976"
  358. m.Scale = meshstart
  359. coroutine.wrap(function()
  360. for i=0,1,factor do
  361. swait()
  362. if inverse == true then
  363. p.Transparency = 1-i
  364. else
  365. p.Transparency = i
  366. end
  367. m.Scale = m.Scale + meshadd
  368. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  369. end
  370. p:Destroy()
  371. end)()
  372. return p
  373. end,
  374.  
  375. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  376. local p = Instance.new("Part",EffectModel)
  377. p.BrickColor = BrickColor.new(colour)
  378. p.Size = Vector3.new()
  379. p.Anchored = true
  380. p.CanCollide = false
  381. p.CFrame = cf
  382. if inverse == true then
  383. p.Transparency = 1
  384. else
  385. p.Transparency = 0
  386. end
  387. local m = Instance.new("SpecialMesh",p)
  388. m.MeshId = "rbxassetid://3270017"
  389. m.Scale = meshstart
  390. coroutine.wrap(function()
  391. for i=0,1,factor do
  392. swait()
  393. if inverse == true then
  394. p.Transparency = 1-i
  395. else
  396. p.Transparency = i
  397. end
  398. m.Scale = m.Scale + meshadd
  399. end
  400. p:Destroy()
  401. end)()
  402. return p
  403. end,
  404.  
  405. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  406. local p = Instance.new("Part",EffectModel)
  407. p.BrickColor = BrickColor.new(colour)
  408. p.Size = Vector3.new()
  409. p.Anchored = true
  410. p.CanCollide = false
  411. p.CFrame = cf
  412. if inverse == true then
  413. p.Transparency = 1
  414. else
  415. p.Transparency = 0
  416. end
  417. local m = Instance.new("SpecialMesh",p)
  418. m.MeshId = meshid
  419. m.TextureId = textid
  420. m.Scale = meshstart
  421. coroutine.wrap(function()
  422. for i=0,1,factor do
  423. swait()
  424. if inverse == true then
  425. p.Transparency = 1-i
  426. else
  427. p.Transparency = i
  428. end
  429. m.Scale = m.Scale + meshadd
  430. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  431. end
  432. p:Destroy()
  433. end)()
  434. return p
  435. end,
  436.  
  437. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  438. local p = Instance.new("Part",EffectModel)
  439. p.BrickColor = BrickColor.new(colour)
  440. p.Size = partsize
  441. p.Anchored = true
  442. p.CanCollide = false
  443. p.Material = matr
  444. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  445. if inverse == true then
  446. p.Transparency = 1
  447. else
  448. p.Transparency = 0
  449. end
  450. local m = Instance.new("SpecialMesh",p)
  451. m.MeshType = "Sphere"
  452. m.Scale = meshstart
  453. coroutine.wrap(function()
  454. for i=0,1,factor do
  455. swait()
  456. if inverse == true then
  457. p.Transparency = 1-i
  458. else
  459. p.Transparency = i
  460. end
  461. m.Scale = m.Scale + meshadd
  462. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  463. end
  464. p:Destroy()
  465. end)()
  466. return p
  467. end,
  468.  
  469. }
  470.  
  471. function chatfunc(text)
  472. coroutine.wrap(function()
  473. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  474. chara:FindFirstChild("TalkingBillBoard"):destroy()
  475. end
  476. local naeeym2 = Instance.new("BillboardGui",chara)
  477. naeeym2.Size = UDim2.new(0,100,0,40)
  478. naeeym2.StudsOffset = Vector3.new(0,3,0)
  479. naeeym2.Adornee = chara.Head
  480. naeeym2.Name = "BLABLABLA"
  481. local tecks2 = Instance.new("TextLabel",naeeym2)
  482. tecks2.BackgroundTransparency = 1
  483. tecks2.BorderSizePixel = 0
  484. tecks2.Text = ""
  485. tecks2.Font = "Antique"
  486. tecks2.FontSize = "Size24"
  487. tecks2.TextStrokeTransparency = 0
  488. tecks2.TextColor3 = Color3.new(0,0,0)
  489. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  490. tecks2.Size = UDim2.new(1,0,0.5,0)coroutine.wrap(function()
  491. while tecks2 ~= nil do
  492. swait()
  493. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  494. end
  495. end)()
  496. for i = 1,string.len(text),1 do
  497. tecks2.Text = string.sub(text,1,i)
  498. swait()
  499. end
  500. swait(30)
  501. for i = 1, 5 do
  502. swait()
  503. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  504. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  505. tecks2.TextTransparency = tecks2.TextTransparency + .2
  506. end
  507. naeeym2:Destroy()
  508. end)()
  509. end
  510.  
  511. function GetDudesTorso(c)
  512. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  513. if torsy ~= nil then
  514. return torsy
  515. end
  516. end
  517.  
  518. function BodyVel(part,faws)
  519. local bodyvel = Instance.new("BodyVelocity",part)
  520. local pep = 10000000
  521. bodyvel.P = pep
  522. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  523. bodyvel.Velocity = faws
  524. debby:AddItem(bodyvel,.2)
  525. end
  526.  
  527. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  528. if dude and dude ~= chara and dude.Name ~= "CKbackup" and dude.Name ~= "Nebula_Zorua" and dude.Name ~= "Salvo_Starly" then
  529. if dude:FindFirstChild("HITO") then return end
  530. local debounce = Instance.new("BoolValue",dude)
  531. debounce.Name = "HITO"
  532. debby:AddItem(debounce,toim)
  533. local hum = dude:FindFirstChildOfClass("Humanoid")
  534. local dam = dmg+math.random(-env,env)
  535. local teksu = "-"..dam
  536. if hum then
  537. local finhel = hum.Health - dam
  538. if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
  539. Instance.new("BoolValue",dude).Name = "DEATHED"
  540. local soaa = Instance.new("Sound",dude.Head)
  541. local cho = math.random(1,5)
  542. if cho == 1 then
  543. soaa.SoundId = "rbxassetid://111896685"
  544. elseif cho == 2 then
  545. soaa.SoundId = "rbxassetid://535528169"
  546. elseif cho == 3 then
  547. soaa.SoundId = "rbxassetid://1080363252"
  548. elseif cho == 4 then
  549. soaa.SoundId = "rbxassetid://147758746"
  550. elseif cho == 5 then
  551. soaa.SoundId = "rbxassetid://626777433"
  552. soaa.Volume = .2
  553. soaa.TimePosition = 1
  554. end
  555. game:service'Debris':AddItem(soaa,6)
  556. soaa:Play()
  557. end
  558. hum.Health = hum.Health - dam
  559. end
  560. coroutine.wrap(function()
  561. local naeeym2 = Instance.new("BillboardGui",dude)
  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 = teksu
  570. tecks2.Font = "Antique"
  571. tecks2.TextSize = 24
  572. tecks2.TextStrokeTransparency = 0
  573. tecks2.TextColor3 = Color3.new(0,0,0)
  574. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  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. local torsy = GetDudesTorso(dude)
  586. if torsy then
  587. for i=1,dam/5 do
  588. local blp = Instance.new("Part",EffectModel)
  589. blp.Size = Vector3.new(.3,.3,.3)
  590. blp.BrickColor = BrickColor.new("Crimson")
  591. blp.CFrame = torsy.CFrame
  592. blp.Velocity = torsy.CFrame.lookVector*5
  593. coroutine.wrap(function()
  594. swait(10)
  595. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  596. for i=0,1,.1 do
  597. swait()
  598. blp.Transparency = i
  599. blp.Size = blp.Size + Vector3.new(.02,-.02,.02)
  600. end
  601. blp:Destroy()
  602. end)()
  603. end
  604. if efftyp == "Blunt" then
  605. puncheff(torsy)
  606. elseif efftyp == "Sharp" then
  607. slasheff(torsy)
  608. end
  609. if faws ~= 0 then
  610. BodyVel(torsy,faws)
  611. end
  612. if trip == true then
  613. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  614. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  615. end
  616. end
  617. end
  618. end
  619.  
  620. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  621. for _, c in pairs(workspace:GetDescendants()) do
  622. local hum = c:FindFirstChildOfClass("Humanoid")
  623. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil and c.Name ~= "CKbackup" and c.Name ~= "Nebula_Zorua" and c.Name ~= "Salvo_Starly" then
  624. local head = GetDudesTorso(c)
  625. if head ~= nil then
  626. local targ = head.Position - par.Position
  627. local mag = targ.magnitude
  628. if magni >= mag and c ~= chara then
  629. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  630. end
  631. end
  632. end
  633. end
  634. end
  635.  
  636. function puncheff(par)
  637. if par.Parent:FindFirstChild("DebounceHit")==nil then
  638. so(386946017,par,math.random(80,120)/100,1)
  639. Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(2,2,2),"Neon","White",false,.1)
  640. end
  641. end
  642.  
  643. function slasheff(par)
  644. if par.Parent:FindFirstChild("DebounceHit")==nil then
  645. local cho = math.random(1,3)
  646. if cho == 1 then
  647. so(444667824,par,1,1)
  648. elseif cho == 2 then
  649. so(444667844,par,1,1)
  650. elseif cho == 3 then
  651. so(444667859,par,1,1)
  652. end
  653. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  654. 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)
  655. end
  656. end
  657.  
  658. local mus = Instance.new("Sound",Head)
  659. mus.Name = "mus"
  660. mus.SoundId = "rbxassetid://581195737"
  661. mus.Looped = true
  662. mus.Volume = 1
  663. mus:Play()
  664.  
  665. coroutine.wrap(function()
  666. chatfunc("I'm tired of all of this crap..")
  667. swait(90)
  668. chatfunc("Now the day of reckoning has begun..")
  669. swait(90)
  670. chatfunc("This shall be my finest hour..")
  671. swait(90)
  672. chatfunc("ICH BIN GOTT! BERZERKER!")
  673. end)()
  674.  
  675. function smek()
  676. attack = true
  677. Humanoid.WalkSpeed = 16
  678. for i=0,1,.1 do
  679. swait()
  680. PlayAnimationFromTable({
  681. 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),
  682. 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),
  683. CFrame.new(1.40946591, -0.0135071278, 0, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  684. 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),
  685. CFrame.new(0.499983132, -2.00001597, -9.13441181e-06, 0.76604414, 0, -0.642788053, 0, 1, 0, 0.642788053, 0, 0.76604414),
  686. CFrame.new(-0.500005186, -2.00001597, -1.22189522e-06, 0.98480773, 0, 0.173648447, 0, 1, 0, -0.173648447, 0, 0.98480773),
  687. }, .3, false)
  688. end
  689. Humanoid.WalkSpeed = 2
  690. tr1.Enabled = true
  691. so(536642316,Naifu,1,1)
  692. for i=0,1.4,.2 do
  693. swait()
  694. PlayAnimationFromTable({
  695. 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),
  696. 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),
  697. 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),
  698. 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),
  699. CFrame.new(0.500005841, -2.00003386, -4.52250242e-06, 0.984807551, 0, -0.173649341, 0, 1, 0, 0.173649341, 0, 0.984807551),
  700. CFrame.new(-0.499993563, -2.00003386, -1.44541264e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  701. }, .5, false)
  702. MagnitudeDmg(Naifu,3,40,3,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
  703. end
  704. swait(5)
  705. Humanoid.WalkSpeed = 8
  706. tr1.Enabled = false
  707. attack = false
  708. end
  709.  
  710. zhold = true
  711. function shoot()
  712. attack = true
  713. so(169799883,TEC9,1,1)
  714. for i=0,1,.1 do
  715. swait()
  716. PlayAnimationFromTable({
  717. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  718. 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),
  719. 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),
  720. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  721. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  722. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  723. }, .3, false)
  724. end
  725. Humanoid.WalkSpeed = 2
  726. local ref = Instance.new("Part",chara)
  727. ref.Size = Vector3.new(0,0,0)
  728. ref.Anchored = true
  729. ref.CanCollide = false
  730. ref.Transparency = 1
  731. TEC9.Transparency = 0
  732. for i=0,1,.1 do
  733. swait()
  734. PlayAnimationFromTable({
  735. CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  736. 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),
  737. 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),
  738. CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
  739. CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  740. CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
  741. }, .3, false)
  742. end
  743. swait(5)
  744. local shots = 20
  745. repeat
  746. so(745308042,TEC9,1,1)
  747. ref.CFrame = Mouse.Hit
  748. MagnitudeDmg(ref,2,12,2,RootPart.CFrame.lookVector*3,false,"Shot",.1)
  749. local hitpt = Instance.new("Part",EffectModel)
  750. hitpt.Size = Vector3.new(0,0,.3)
  751. hitpt.CFrame = TEC9.CFrame * CFrame.new(0,.465,.1)-- * CFrame.Angles(math.rad(90),0,0)
  752. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  753. local hitm = Instance.new("SpecialMesh",hitpt)
  754. hitm.MeshId = "rbxassetid://94295100"
  755. hitm.TextureId = "rbxassetid://94287792"
  756. hitm.Scale = Vector3.new(3,3,3.5)
  757. coroutine.wrap(function()
  758. swait(30)
  759. for i = 0,1,.1 do
  760. swait()
  761. hitpt.Transparency = i
  762. end
  763. hitpt:Destroy()
  764. end)()
  765. 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)
  766. shots = shots - 1
  767. for i=0,1 do
  768. swait()
  769. PlayAnimationFromTable({
  770. CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  771. 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),
  772. 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))),
  773. CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
  774. CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  775. CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
  776. }, .3, false)
  777. end
  778. until zhold == false or shots == 0
  779. swait(5)
  780. ref:Destroy()
  781. for i=0,1,.25 do
  782. swait()
  783. PlayAnimationFromTable({
  784. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  785. CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  786. 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),
  787. 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),
  788. CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  789. CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  790. }, .4, false)
  791. end
  792. so(1159825801,TEC9,1,1)
  793. swait(15)
  794. so(211134014,TEC9,1,1)
  795. for i=0,1,.1 do
  796. swait()
  797. PlayAnimationFromTable({
  798. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  799. 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),
  800. 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),
  801. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  802. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  803. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  804. }, .3, false)
  805. end
  806. TEC9.Transparency = 1
  807. Humanoid.WalkSpeed = 8
  808. attack = false
  809. end
  810.  
  811. function dbshoot()
  812. attack = true
  813. so(169799883,DBarrel,1,1)
  814. for i=0,1,.1 do
  815. swait()
  816. PlayAnimationFromTable({
  817. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  818. 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),
  819. 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),
  820. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  821. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  822. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  823. }, .3, false)
  824. end
  825. Humanoid.WalkSpeed = 2
  826. DBarrel.Transparency = 0
  827. for i=0,1,.1 do
  828. swait()
  829. PlayAnimationFromTable({
  830. CFrame.new(0, 0.0149096567, 0.133909225, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  831. CFrame.new(0, 1.43158329, -0.187937319, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  832. 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),
  833. 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),
  834. 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),
  835. 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),
  836. }, .3, false)
  837. end
  838. swait(5)
  839. so(132455829,DBarrel,1,1)
  840. local ref = Instance.new("Part",chara)
  841. ref.Size = Vector3.new(0,0,0)
  842. ref.Anchored = true
  843. ref.CanCollide = false
  844. ref.Transparency = 1
  845. ref.CFrame = RootPart.CFrame*CFrame.new(0,0,-6)
  846. MagnitudeDmg(ref,4,100,0,RootPart.CFrame.lookVector*12,true,"Shot",.1)
  847. 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)
  848. 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)
  849. ref:Destroy()
  850. for i=0,1,.1 do
  851. swait()
  852. PlayAnimationFromTable({
  853. CFrame.new(0, 0.0149102025, 0.133909985, 1, 0, 0, 0, 0.984812796, -0.173648849, 0, 0.173648849, 0.984812796),
  854. CFrame.new(0, 1.43158948, 0.0120660895, 1, 0, 0, 0, 1.00000262, -1.1920929e-07, 0, 1.1920929e-07, 1.00000262),
  855. 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),
  856. 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),
  857. 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),
  858. 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),
  859. }, .3, false)
  860. end
  861. swait(10)
  862. for i=0,1,.25 do
  863. swait()
  864. PlayAnimationFromTable({
  865. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  866. CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  867. 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),
  868. 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),
  869. CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  870. CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  871. }, .4, false)
  872. end
  873. for i=1,2 do
  874. so(1159825801,DBarrel,1,1)
  875. local hitpt = Instance.new("Part",EffectModel)
  876. hitpt.Size = Vector3.new(0,0,.3)
  877. hitpt.CFrame = TEC9.CFrame * CFrame.Angles(math.rad(90),0,0)
  878. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  879. local hitm = Instance.new("SpecialMesh",hitpt)
  880. hitm.MeshId = "rbxassetid://94248124"
  881. hitm.TextureId = "rbxassetid://94219470"
  882. hitm.Scale = Vector3.new(1.2,1.2,1.2)
  883. coroutine.wrap(function()
  884. swait(30)
  885. for i = 0,1,.1 do
  886. swait()
  887. hitpt.Transparency = i
  888. end
  889. hitpt:Destroy()
  890. end)()
  891. swait()
  892. end
  893. swait(15)
  894. so(211134014,DBarrel,1,1)
  895. for i=0,1,.1 do
  896. swait()
  897. PlayAnimationFromTable({
  898. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  899. 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),
  900. 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),
  901. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  902. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  903. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  904. }, .3, false)
  905. end
  906. DBarrel.Transparency = 1
  907. Humanoid.WalkSpeed = 8
  908. attack = false
  909. end
  910.  
  911. Mouse.Button1Down:connect(function()
  912. if attack == false then
  913. smek()
  914. end
  915. end)
  916.  
  917. local sprintt = 0
  918. Mouse.KeyDown:connect(function(k)
  919. k = k:lower()
  920. if k=='m' then
  921. if mus.IsPlaying == true then
  922. mus:Stop()
  923. elseif mus.IsPaused == true then
  924. mus:Play()
  925. end
  926. end
  927. if attack == false then
  928. if k == 'z' then
  929. zhold = true
  930. shoot()
  931. elseif k == 'x' then
  932. dbshoot()
  933. end
  934. end
  935. end)
  936.  
  937. Mouse.KeyUp:connect(function(k)
  938. k = k:lower()
  939. if k == 'z' then
  940. zhold = false
  941. end
  942. end)
  943.  
  944. coroutine.wrap(function()
  945. while 1 do
  946. swait()
  947. if doe <= 360 then
  948. doe = doe + 2
  949. else
  950. doe = 0
  951. end
  952. end
  953. end)()
  954. while true do
  955. swait()
  956. while true do
  957. swait()
  958. if Head:FindFirstChild("mus")==nil then
  959. mus = Instance.new("Sound",Head)
  960. mus.Name = "mus"
  961. mus.SoundId = "rbxassetid://581195737"
  962. mus.Looped = true
  963. mus.Volume = 1
  964. mus:Play()
  965. end
  966. if sprintt >= 1 then
  967. sprintt = sprintt - 1
  968. end
  969. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  970. velocity = RootPart.Velocity.y
  971. sine = sine + change
  972. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  973. if RootPart.Velocity.y > 1 and hit == nil then
  974. Anim = "Jump"
  975. if attack == false then
  976. PlayAnimationFromTable({
  977. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  978. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  979. 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),
  980. 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),
  981. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  982. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  983. }, .3, false)
  984. end
  985. elseif RootPart.Velocity.y < -1 and hit == nil then
  986. Anim = "Fall"
  987. if attack == false then
  988. PlayAnimationFromTable({
  989. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  990. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  991. 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),
  992. 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),
  993. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  994. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  995. }, .3, false)
  996. end
  997. elseif Torsovelocity < 1 and hit ~= nil then
  998. Anim = "Idle"
  999. if attack == false then
  1000. change = 1
  1001. PlayAnimationFromTable({
  1002. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1003. CFrame.new(0, 1.48262823, -0.0984786302, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1004. CFrame.new(1.20945334, -0.213505104, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1005. CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1006. 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),
  1007. 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),
  1008. }, .3, false)
  1009. end
  1010. elseif Torsovelocity > 2 and hit ~= nil then
  1011. Anim = "Walk"
  1012. if attack == false then
  1013. Humanoid.WalkSpeed = 8
  1014. PlayAnimationFromTable({
  1015. 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),
  1016. CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1017. 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),
  1018. CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1019. 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),
  1020. 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),
  1021. }, .3, false)
  1022. end
  1023. end
  1024. end
  1025. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement