Advertisement
lafur

Untitled

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