daily pastebin goal
5%
SHARE
TWEET

Untitled

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