kaualima12

llllllllllllllllllllllllllllllllllllllllll

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