Advertisement
5sdfsadgaq5465

big daddy edit

Mar 12th, 2019
678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. -------------
  89. --Big Daddy--
  90. ----------------------------------------------------------------
  91. --By CKbackup (Sugarie Saffron) --
  92. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  93. --Discord: Sugarie Saffron#4705 --
  94. ----------------------------------------------------------------
  95.  
  96. wait(.1)
  97. local Player = owner
  98. local chara = Player.Character
  99. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  100. local LeftArm = chara["Left Arm"]
  101. local RightArm = chara["Right Arm"]
  102. local LeftLeg = chara["Left Leg"]
  103. local RightLeg = chara["Right Leg"]
  104. local Head = chara.Head
  105. local Torso = chara.Torso
  106. local RootPart = chara.HumanoidRootPart
  107. local RootJoint = RootPart.RootJoint
  108. local attack = false
  109. local Anim = 'Idle'
  110. local attacktype = 1
  111. local delays = false
  112. local play = true
  113. local targetted = nil
  114. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  115. local velocity = RootPart.Velocity.y
  116. local sine = 0
  117. local change = 1
  118. local doe = 0
  119. local Create = LoadLibrary("RbxUtility").Create
  120. Humanoid.WalkSpeed = 16
  121. debby = game:GetService("Debris")
  122.  
  123. Humanoid.MaxHealth = 800
  124. Humanoid.Health = 800
  125.  
  126. Humanoid.Animator.Parent = nil
  127. chara.Animate.Parent = nil
  128.  
  129.  
  130. local newMotor = function(part0, part1, c0, c1)
  131. local w = Create('Motor'){
  132. Parent = part0,
  133. Part0 = part0,
  134. Part1 = part1,
  135. C0 = c0,
  136. C1 = c1,
  137. }
  138. return w
  139. end
  140.  
  141. function clerp(a, b, t)
  142. return a:lerp(b, t)
  143. end
  144.  
  145. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  146. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  147.  
  148. LeftArm.Size = LeftArm.Size * 1.3
  149. RightArm.Size = RightArm.Size * 1.3
  150. LeftLeg.Size = LeftLeg.Size * 1.3
  151. RightLeg.Size = RightLeg.Size * 1.3
  152. Torso.Size = Torso.Size * 1.3
  153. Head.Size = Head.Size * 1.3
  154. RootPart.Size = RootPart.Size * 1.3
  155.  
  156. local RW = newMotor(Torso, RightArm, CFrame.new(1.95, 0, 0), CFrame.new(0, 0, 0))
  157. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.95, 0, 0), CFrame.new(0, 0, 0))
  158. local Neck = newMotor(Torso, Head, CFrame.new(0,1.95,0), CFrame.new())
  159. local RH = newMotor(Torso, RightLeg, CFrame.new(.65, -2.6, 0), CFrame.new(0, 0, 0))
  160. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.65, -2.6, 0), CFrame.new(0, 0, 0))
  161. local RootJoint = newMotor(RootPart, Torso, CFrame.new(0,-1.3,0), CFrame.new(0,0,0))
  162.  
  163. local rarmc1 = RW.C1
  164. local larmc1 = LW.C1
  165. local rlegc1 = RH.C1
  166. local llegc1 = LH.C1
  167.  
  168. local resetc1 = false
  169.  
  170. function PlayAnimationFromTable(table, speed, bool)
  171. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  172. Neck.C0 = clerp(Neck.C0, table[2], speed)
  173. RW.C0 = clerp(RW.C0, table[3], speed)
  174. LW.C0 = clerp(LW.C0, table[4], speed)
  175. RH.C0 = clerp(RH.C0, table[5], speed)
  176. LH.C0 = clerp(LH.C0, table[6], speed)
  177. if bool == true then
  178. if resetc1 == false then
  179. resetc1 = true
  180. RootJoint.C1 = RootJoint.C1
  181. Neck.C1 = Neck.C1
  182. RW.C1 = rarmc1
  183. LW.C1 = larmc1
  184. RH.C1 = rlegc1
  185. LH.C1 = llegc1
  186. end
  187. end
  188. end
  189.  
  190. function so(id,par,pit,vol)
  191. local sou = Instance.new("Sound", par or workspace)
  192. if par == chara then
  193. sou.Parent = chara.Torso
  194. end
  195. sou.Volume = vol
  196. sou.Pitch = pit or 1
  197. sou.SoundId = "rbxassetid://" .. id
  198. sou.PlayOnRemove = true
  199. sou:Destroy()
  200. end
  201.  
  202. --This is just for builds--
  203. New = function(Object, Parent, Name, Data)
  204. local Object = Instance.new(Object)
  205. for Index, Value in pairs(Data or {}) do
  206. Object[Index] = Value
  207. end
  208. Object.Parent = Parent
  209. Object.Name = Name
  210. return Object
  211. end
  212.  
  213. local mus = Instance.new("Sound",Head)
  214. mus.Name = "mus"
  215. mus.SoundId = "rbxassetid://969583926"
  216. mus.Looped = true
  217. mus.Volume = 1
  218. mus:Play()
  219.  
  220. for i,v in pairs(chara:children'') do
  221. if v:IsA("CharacterMesh") or v:IsA("Clothing") or v:IsA("Accoutrement") or v:IsA("BodyColors") then v:Destroy() end
  222. end
  223.  
  224. local sh = Instance.new("Shirt",chara)
  225. local pn = Instance.new("Pants",chara)
  226. sh.ShirtTemplate = "rbxassetid://230449737"
  227. pn.PantsTemplate = "rbxassetid://676428351"
  228. if chara:FindFirstChild("FaysG") then chara:FindFirstChild("FaysG"):Destroy() end
  229.  
  230. skincol = {"Bright yellow","Cool yellow","Pastel yellow","Pastel brown","Br. yellowish orange","White","Bright violet","Medium green","Medium stone grey","Dark stone grey"}
  231.  
  232. FHead = New("Part",chara,"FHead",{BrickColor = BrickColor.new(skincol[math.random(1,#skincol)]),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2.5999999, 1.29999995, 1.29999995),CFrame = CFrame.new(18.8000259, 5.85002184, -11.199934, -1, 0, 0, 0, 0.999997139, -9.36714151e-10, 0, -9.36711486e-10, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  233. Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
  234. Decal = New("Decal",FHead,"Decal",{Texture = "http://www.roblox.com/asset/?id=46078492",})
  235. Weld = New("ManualWeld",FHead,"Weld",{Part0 = FHead,Part1 = Head,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.999999046, -9.36713263e-10, 0, -9.36714151e-10, -1),C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.999999046, -9.36713263e-10, 0, -9.36714151e-10, -1),})
  236. Shotii = New("Model",chara,"Shotii",{})
  237. SHandaru = New("Part",Shotii,"SHandaru",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(82.7000122, 8.4184885, -48.6482887, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  238. Mesh = New("SpecialMesh",SHandaru,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://450250994",TextureId = "rbxassetid://450251128",MeshType = Enum.MeshType.FileMesh,})
  239. Weld = New("ManualWeld",SHandaru,"Weld",{Part0 = SHandaru,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(0.292991638, -7.6862278, -0.349998474, 0.984807849, -0.030152997, -0.171009988, 0.173647955, 0.17100893, 0.969846547, 4.55671426e-07, -0.984807968, 0.173646942),})
  240. SShot = New("Part",Shotii,"SShot",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(82.7000122, 8.3150301, -54.4179688, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  241. Weld = New("ManualWeld",SShot,"Weld",{Part0 = SShot,Part1 = SHandaru,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(5.69999313, 0.900001526, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),})
  242. SSExit = New("Part",Shotii,"SSExit",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(83.0000076, 9.67517471, -46.1282616, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  243. Weld = New("ManualWeld",SSExit,"Weld",{Part0 = SSExit,Part1 = SHandaru,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(-2.69996262, 0.799999237, 0.299995422, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),})
  244.  
  245. HolShot = New("Part",chara,"HolShot",{Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(52.4309196, 10.2762518, -23.0499916, -0.499998987, -0.866025984, 0, -0.866025984, 0.499998987, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  246. Mesh = New("SpecialMesh",HolShot,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://450250994",TextureId = "rbxassetid://450251128",MeshType = Enum.MeshType.FileMesh,})
  247. Weld = New("ManualWeld",HolShot,"Weld",{Part0 = HolShot,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.499998987, -0.866025984, 0, -0.866025984, 0.499998987, 0, 0, 0, -1),C1 = CFrame.new(1.33091354, 1.2762394, 1.65000534, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  248.  
  249. Head:ClearAllChildren()
  250. Instance.new("BlockMesh",Head).Scale = Vector3.new(0,0,0)
  251.  
  252. local hedcol = FHead.BrickColor
  253. local bcols = Instance.new("BodyColors",chara)
  254. bcols.Name = "NeoCols"
  255. bcols.HeadColor = hedcol
  256. bcols.LeftArmColor = hedcol
  257. bcols.RightArmColor = hedcol
  258. bcols.TorsoColor = hedcol
  259. bcols.LeftLegColor = hedcol
  260. bcols.RightLegColor = hedcol
  261.  
  262. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  263. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  264. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  265. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  266. return TEff
  267. end
  268.  
  269. LLTr = CreateTrailObj(LeftLeg,"White","White",0,0)
  270. RLTr = CreateTrailObj(RightLeg,"White","White",0,0)
  271. LATr = CreateTrailObj(LeftArm,"White","White",0,0)
  272. RATr = CreateTrailObj(RightArm,"White","White",0,0)
  273.  
  274.  
  275. function rayCast(Position, Direction, Range, Ignore)
  276. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  277. end
  278.  
  279. function FindNearestTorso(Position, Distance, SinglePlayer)
  280. if SinglePlayer then
  281. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  282. end
  283. local List = {}
  284. for i, v in pairs(workspace:GetDescendants()) do
  285. if v:IsA("Model") then
  286. if v:findFirstChild("Head") then
  287. if v ~= chara then
  288. if (v.Head.Position - Position).magnitude <= Distance then
  289. table.insert(List, v)
  290. end
  291. end
  292. end
  293. end
  294. end
  295. return List
  296. end
  297.  
  298. ArtificialHB = Instance.new("BindableEvent", script)
  299. ArtificialHB.Name = "Heartbeat"
  300. script:waitForChild("Heartbeat")
  301. frame = 0.03333333333333
  302. tf = 0
  303. allowframeloss = false
  304. tossremainder = false
  305. lastframe = tick()
  306. script.Heartbeat:Fire()
  307. game:GetService("RunService").Heartbeat:connect(function(s, p)
  308. tf = tf + s
  309. if tf >= frame then
  310. if allowframeloss then
  311. script.Heartbeat:Fire()
  312. lastframe = tick()
  313. else
  314. for i = 1, math.floor(tf / frame) do
  315. script.Heartbeat:Fire()
  316. end
  317. lastframe = tick()
  318. end
  319. if tossremainder then
  320. tf = 0
  321. else
  322. tf = tf - frame * math.floor(tf / frame)
  323. end
  324. end
  325. end)
  326. function swait(num)
  327. if num == 0 or num == nil then
  328. ArtificialHB.Event:wait()
  329. else
  330. for i = 0, num*30 do
  331. ArtificialHB.Event:wait()
  332. end
  333. end
  334. end
  335.  
  336. EffectModel = Create("Model"){
  337. Parent = chara,
  338. Name = "Effects",
  339. }
  340.  
  341. --Effect Functions--
  342. Effects = {
  343.  
  344. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  345. local p = Instance.new("Part",EffectModel)
  346. p.BrickColor = BrickColor.new(colour)
  347. p.Size = partsize
  348. p.Anchored = true
  349. p.CanCollide = false
  350. p.Material = matr
  351. p.CFrame = cf
  352. if inverse == true then
  353. p.Transparency = 1
  354. else
  355. p.Transparency = 0
  356. end
  357. local m = Instance.new("BlockMesh",p)
  358. m.Scale = meshstart
  359. coroutine.wrap(function()
  360. for i=0,1,factor do
  361. swait()
  362. if inverse == true then
  363. p.Transparency = 1-i
  364. else
  365. p.Transparency = i
  366. end
  367. m.Scale = m.Scale + meshadd
  368. if spin == true then
  369. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  370. end
  371. end
  372. p:Destroy()
  373. end)()
  374. return p
  375. end,
  376.  
  377. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  378. local p = Instance.new("Part",EffectModel)
  379. p.BrickColor = BrickColor.new(colour)
  380. p.Size = partsize
  381. p.Anchored = true
  382. p.CanCollide = false
  383. p.Material = matr
  384. p.CFrame = cf
  385. if inverse == true then
  386. p.Transparency = 1
  387. else
  388. p.Transparency = 0
  389. end
  390. local m = Instance.new("SpecialMesh",p)
  391. m.MeshType = "Sphere"
  392. m.Scale = meshstart
  393. coroutine.wrap(function()
  394. for i=0,1,factor do
  395. swait()
  396. if inverse == true then
  397. p.Transparency = 1-i
  398. else
  399. p.Transparency = i
  400. end
  401. m.Scale = m.Scale + meshadd
  402. end
  403. p:Destroy()
  404. end)()
  405. return p
  406. end,
  407.  
  408. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  409. local p = Instance.new("Part",EffectModel)
  410. p.BrickColor = BrickColor.new(colour)
  411. p.Size = partsize
  412. p.Anchored = true
  413. p.CanCollide = false
  414. p.Material = matr
  415. p.CFrame = cf
  416. if inverse == true then
  417. p.Transparency = 1
  418. else
  419. p.Transparency = 0
  420. end
  421. local m = Instance.new("CylinderMesh",p)
  422. m.Scale = meshstart
  423. coroutine.wrap(function()
  424. for i=0,1,factor do
  425. swait()
  426. if inverse == true then
  427. p.Transparency = 1-i
  428. else
  429. p.Transparency = i
  430. end
  431. m.Scale = m.Scale + meshadd
  432. end
  433. p:Destroy()
  434. end)()
  435. return p
  436. end,
  437.  
  438. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  439. local p = Instance.new("Part",EffectModel)
  440. p.BrickColor = BrickColor.new(colour)
  441. p.Size = Vector3.new()
  442. p.Anchored = true
  443. p.CanCollide = false
  444. p.CFrame = cf
  445. if inverse == true then
  446. p.Transparency = 1
  447. else
  448. p.Transparency = 0
  449. end
  450. local m = Instance.new("SpecialMesh",p)
  451. m.MeshId = "rbxassetid://20329976"
  452. m.Scale = meshstart
  453. coroutine.wrap(function()
  454. for i=0,1,factor do
  455. swait()
  456. if inverse == true then
  457. p.Transparency = 1-i
  458. else
  459. p.Transparency = i
  460. end
  461. m.Scale = m.Scale + meshadd
  462. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  463. end
  464. p:Destroy()
  465. end)()
  466. return p
  467. end,
  468.  
  469. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  470. local p = Instance.new("Part",EffectModel)
  471. p.BrickColor = BrickColor.new(colour)
  472. p.Size = Vector3.new()
  473. p.Anchored = true
  474. p.CanCollide = false
  475. p.CFrame = cf
  476. if inverse == true then
  477. p.Transparency = 1
  478. else
  479. p.Transparency = 0
  480. end
  481. local m = Instance.new("SpecialMesh",p)
  482. m.MeshId = "rbxassetid://3270017"
  483. m.Scale = meshstart
  484. coroutine.wrap(function()
  485. for i=0,1,factor do
  486. swait()
  487. if inverse == true then
  488. p.Transparency = 1-i
  489. else
  490. p.Transparency = i
  491. end
  492. m.Scale = m.Scale + meshadd
  493. end
  494. p:Destroy()
  495. end)()
  496. return p
  497. end,
  498.  
  499. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  500. local p = Instance.new("Part",EffectModel)
  501. p.BrickColor = BrickColor.new(colour)
  502. p.Size = Vector3.new()
  503. p.Anchored = true
  504. p.CanCollide = false
  505. p.CFrame = cf
  506. if inverse == true then
  507. p.Transparency = 1
  508. else
  509. p.Transparency = 0
  510. end
  511. local m = Instance.new("SpecialMesh",p)
  512. m.MeshId = meshid
  513. m.TextureId = textid
  514. m.Scale = meshstart
  515. coroutine.wrap(function()
  516. for i=0,1,factor do
  517. swait()
  518. if inverse == true then
  519. p.Transparency = 1-i
  520. else
  521. p.Transparency = i
  522. end
  523. m.Scale = m.Scale + meshadd
  524. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  525. end
  526. p:Destroy()
  527. end)()
  528. return p
  529. end,
  530.  
  531. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  532. local p = Instance.new("Part",EffectModel)
  533. p.BrickColor = BrickColor.new(colour)
  534. p.Size = partsize
  535. p.Anchored = true
  536. p.CanCollide = false
  537. p.Material = matr
  538. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  539. if inverse == true then
  540. p.Transparency = 1
  541. else
  542. p.Transparency = 0
  543. end
  544. local m = Instance.new("SpecialMesh",p)
  545. m.MeshType = "Sphere"
  546. m.Scale = meshstart
  547. coroutine.wrap(function()
  548. for i=0,1,factor do
  549. swait()
  550. if inverse == true then
  551. p.Transparency = 1-i
  552. else
  553. p.Transparency = i
  554. end
  555. m.Scale = m.Scale + meshadd
  556. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  557. end
  558. p:Destroy()
  559. end)()
  560. return p
  561. end,
  562.  
  563. }
  564.  
  565. function GetDudesTorso(c)
  566. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  567. if torsy ~= nil then
  568. return torsy
  569. end
  570. end
  571.  
  572. function BodyVel(part,faws)
  573. local bodyvel = Instance.new("BodyVelocity",part)
  574. local pep = 10000000
  575. bodyvel.P = pep
  576. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  577. bodyvel.Velocity = faws
  578. debby:AddItem(bodyvel,.2)
  579. end
  580.  
  581. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  582. if dude and dude ~= chara then
  583. if dude:FindFirstChild("HITO") then return end
  584. local debounce = Instance.new("BoolValue",dude)
  585. debounce.Name = "HITO"
  586. debby:AddItem(debounce,toim)
  587. local hum = dude:FindFirstChildOfClass("Humanoid")
  588. local dam = dmg+math.random(-env,env)
  589. local teksu = "-"..dam
  590. if hum then
  591. local finhel = hum.Health - dam
  592. if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
  593. Instance.new("BoolValue",dude).Name = "DEATHED"
  594. end
  595. hum.Health = hum.Health - dam
  596. end
  597. coroutine.wrap(function()
  598. local naeeym2 = Instance.new("BillboardGui",dude)
  599. naeeym2.Size = UDim2.new(0,100,0,40)
  600. naeeym2.StudsOffset = Vector3.new(0,3,0)
  601. naeeym2.Adornee = dude:FindFirstChild("Head")
  602. naeeym2.Name = "TalkingBillBoard"
  603. local tecks2 = Instance.new("TextLabel",naeeym2)
  604. tecks2.BackgroundTransparency = 1
  605. tecks2.BorderSizePixel = 0
  606. tecks2.Text = teksu
  607. tecks2.Font = "Fantasy"
  608. tecks2.TextSize = 24
  609. tecks2.TextStrokeTransparency = 0
  610. tecks2.TextColor3 = Color3.new(1,1,1)
  611. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  612. tecks2.Size = UDim2.new(1,0,0.5,0)
  613. swait(.2)
  614. for i = 0,1,.05 do
  615. swait()
  616. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  617. tecks2.TextStrokeTransparency = i
  618. tecks2.TextTransparency = i
  619. end
  620. naeeym2:Destroy()
  621. end)()
  622. local torsy = GetDudesTorso(dude)
  623. if torsy then
  624. for i=1,dam/5 do
  625. local blp = Instance.new("Part",EffectModel)
  626. blp.Size = Vector3.new(.3,.3,.3)
  627. blp.BrickColor = BrickColor.new("Crimson")
  628. blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  629. blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0)
  630. blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  631. --local blm = Instance.new("SpecialMesh",blp)
  632. --blm.MeshType = "Sphere"
  633. coroutine.wrap(function()
  634. swait(.2)
  635. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  636. for i=0,1,.1 do
  637. swait()
  638. blp.Transparency = i
  639. blp.Size = blp.Size + Vector3.new(.05,-.05,.05)
  640. end
  641. blp:Destroy()
  642. end)()
  643. end
  644. if efftyp == "Blunt" then
  645. puncheff(torsy)
  646. elseif efftyp == "Sharp" then
  647. slasheff(torsy)
  648. elseif efftyp == "Shot" then
  649. so(144884872,torsy,.9,1)
  650. end
  651. if faws ~= 0 then
  652. BodyVel(torsy,faws)
  653. end
  654. if trip == true then
  655. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  656. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  657. end
  658. end
  659. end
  660. end
  661.  
  662. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  663. for _, c in pairs(workspace:GetDescendants()) do
  664. local hum = c:FindFirstChildOfClass("Humanoid")
  665. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  666. local head = GetDudesTorso(c)
  667. if head ~= nil then
  668. local targ = head.Position - par.Position
  669. local mag = targ.magnitude
  670. if magni >= mag and c ~= chara then
  671. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  672. end
  673. end
  674. end
  675. end
  676. end
  677.  
  678. function CamShake(par,magni,env,dur)
  679. coroutine.wrap(function()
  680. for i=0,dur*60 do
  681. swait()
  682. Humanoid.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10)
  683. end
  684. Humanoid.CameraOffset = Vector3.new(0,0,0)
  685. end)()
  686. end
  687.  
  688. function puncheff(par)
  689. if par.Parent:FindFirstChild("DebounceHit")==nil then
  690. so(386946017,par,math.random(6,8)/10,1)
  691. local bla = Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(1,1,1),"Neon","White",false,.1)
  692. CamShake(bla,30,.5,.5)
  693. end
  694. end
  695.  
  696. function slasheff(par)
  697. if par.Parent:FindFirstChild("DebounceHit")==nil then
  698. local cho = math.random(1,3)
  699. if cho == 1 then
  700. so(444667824,par,1,1)
  701. elseif cho == 2 then
  702. so(444667844,par,1,1)
  703. elseif cho == 3 then
  704. so(444667859,par,1,1)
  705. end
  706. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  707. 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)
  708. end
  709. end
  710.  
  711. function smasheff(pos,projsiz,projnum,grousiz,grono,grospr,projfor)
  712. local hit,hitpos = rayCast(pos,Vector3.new(0,-1,0),4,chara)
  713. if hit ~= nil then
  714. for i = 1, projnum do
  715. local p = Instance.new("Part",EffectModel)
  716. p.BrickColor = hit.BrickColor
  717. p.Material = hit.Material
  718. p.Size = Vector3.new(projsiz,projsiz,projsiz)
  719. p.CFrame = CFrame.new(hitpos+Vector3.new(math.random(-grospr,grospr),0,math.random(-grospr,grospr))) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  720. p.CanCollide = false
  721. p.Velocity = projfor
  722. CreateTrailObj(p,Color3.new(1,1,1),Color3.new(1,1,1),0,0).Enabled = true
  723. coroutine.resume(coroutine.create(function()
  724. swait(.2)
  725. p.CanCollide = true
  726. swait(3)
  727. for i = 0,1,.01 do
  728. swait()
  729. p.Transparency = i
  730. end
  731. p:Destroy()
  732. end))
  733. end
  734. for i = 1, grono do
  735. local size = math.random(4,6)
  736. local gtrace = Instance.new("Part",EffectModel)
  737. gtrace.BrickColor = hit.BrickColor
  738. gtrace.Material = hit.Material
  739. gtrace.Size = Vector3.new(grousiz,grousiz,grousiz)
  740. gtrace.Anchored = true
  741. gtrace.CanCollide = false
  742. gtrace.CFrame = CFrame.new(hitpos+Vector3.new(math.random(-grospr,grospr),0,math.random(-grospr,grospr))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  743. coroutine.wrap(function()
  744. swait(3)
  745. for i = 0,1,.01 do
  746. swait()
  747. gtrace.Transparency = i
  748. end
  749. gtrace:Destroy()
  750. end)()
  751. end
  752. end
  753. end
  754.  
  755. function attackone()
  756. attack = true
  757. Humanoid.WalkSpeed = 10
  758. for i=0,2,.1 do
  759. swait()
  760. PlayAnimationFromTable({
  761. CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  762. CFrame.new(-0.0638873279, 2.01559806, -0.402032375, 0.492402941, -0.214610398, 0.84349376, -0.173647985, 0.925416708, 0.336823881, -0.852869213, -0.312324047, 0.418411195),
  763. CFrame.new(1.10928118, 0.356215954, -1.26063514, 0.766042948, 0.642789483, 0, 0, 0, -1, -0.642789423, 0.766042948, 0),
  764. CFrame.new(-1.95000088, -9.79751348e-07, 8.32974911e-06, 0.766044021, 0.633022547, -0.111619651, -0.642788172, 0.754405975, -0.133022651, 1.49011612e-07, 0.173648953, 0.984807789),
  765. CFrame.new(0.650009155, -2.5999999, -1.52587891e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  766. CFrame.new(-0.650007129, -2.5999999, 1.07288361e-05, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  767. }, .3, false)
  768. end
  769. RATr.Enabled = true
  770. so(487907203,Head,1,3)
  771. so(200632136,RightArm,.6,1)
  772. Humanoid.WalkSpeed = 0
  773. BodyVel(RootPart,RootPart.CFrame.lookVector*70)
  774. for i=0,1,.1 do
  775. swait()
  776. PlayAnimationFromTable({
  777. CFrame.new(-0.222327977, -0.0760439336, -0.208909988, 0.604021907, -0.342020392, 0.719846964, -0.0554149859, 0.883022249, 0.46604827, -0.795038819, -0.321393698, 0.514411688),
  778. CFrame.new(7.34417608e-06, 2.0353117, -0.350306809, 1, -4.47034836e-07, 1.69873238e-06, -2.08616257e-07, 0.939692974, 0.342019647, -1.7285347e-06, -0.342019677, 0.939692795),
  779. CFrame.new(1.09530568, 0.103452325, -1.42083132, 0.766043782, 0.64278847, -1.9967556e-06, -0.321392238, 0.383016765, -0.866028547, -0.556672335, 0.663416266, 0.499994785),
  780. CFrame.new(-1.9499985, -4.95091081e-06, 1.11758709e-06, 0.766044378, 0.633022308, -0.111619204, -0.642787814, 0.754405975, -0.13302502, -1.57952309e-06, 0.173650473, 0.984807491),
  781. CFrame.new(0.75631088, -2.3547678, -0.864154458, 0.997292876, -0.0554149859, -0.0483326912, 0.0263557732, 0.883022249, -0.468590677, 0.0686457753, 0.46604827, 0.882092297),
  782. CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1),
  783. }, .3, false)
  784. MagnitudeDmg(RightArm,2.5,40,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5)
  785. end
  786. swait(.5)
  787. Humanoid.WalkSpeed = 16
  788. RATr.Enabled = false
  789. attack = false
  790. end
  791.  
  792. function dashattack()
  793. attack = true
  794. Humanoid.WalkSpeed = 2
  795. so(487911937,Head,1,3)
  796. for i=0,2,.1 do
  797. swait()
  798. PlayAnimationFromTable({
  799. CFrame.new(0, -0.260801345, 0.37769106, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  800. CFrame.new(0, 1.88156867, 0.187936544, 1, 0, 0, 0, 0.939692438, -0.342020929, 0, 0.342020959, 0.939692438),
  801. CFrame.new(2.54999161, 0.600001335, 9.71555778e-07, 0, -1, 0, 1, 0, 2.98023224e-08, 2.98023224e-08, 0, 1),
  802. CFrame.new(-2.54999542, 0.599999964, 3.99351336e-07, 0, 1, 0, -1.00000012, 0, 9.83476639e-07, 9.23871994e-07, 0, 1.00000012),
  803. CFrame.new(0.649994314, -2.32730556, 0.445138514, 0.939692736, 0, -0.342019886, 0.116977625, 0.939692736, 0.321393639, 0.321393639, -0.342019886, 0.883022428),
  804. CFrame.new(-0.649998546, -2.32730579, 0.445138097, 0.939692736, 0, 0.342019886, -0.116977625, 0.939692736, 0.321393639, -0.321393639, -0.342019886, 0.883022428),
  805. }, .4, false)
  806. end
  807. RATr.Enabled = true
  808. Humanoid.WalkSpeed = 0
  809. local bodyvel = Instance.new("BodyVelocity",RootPart)
  810. local pep = 10000000
  811. bodyvel.P = pep
  812. bodyvel.MaxForce = Vector3.new(pep,0,pep)
  813. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  814. local dasu = 0
  815. local par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara)
  816. repeat
  817. dasu = dasu + 1
  818. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  819. par = rayCast(RootPart.Position,RootPart.CFrame.lookVector*1,5,chara)
  820. so(10730819,Torso,1,2)
  821. CamShake(Torso,60,.4,.1)
  822. smasheff(Torso.Position,math.random(10,20)/10,math.random(2,3),math.random(10,20)/10,math.random(2,3),2,(RootPart.CFrame.lookVector*-math.random(30,50))+Vector3.new(math.random(-5,5),math.random(50,70),math.random(-5,5)))
  823. swait()
  824. Effects.Wave(RootPart.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(),Vector3.new(1,.2,1),"",10,false,.05)
  825. PlayAnimationFromTable({
  826. CFrame.new(-0.11852926, -0.0870857984, -0.16250591, 0.499998987, 0.433013916, -0.75, 0, 0.866024852, 0.500001073, 0.866025984, -0.25000003, 0.433011562),
  827. CFrame.new(1.67643725e-06, 1.94997621, -1.7765941e-06, 0.866025209, -8.34465027e-07, 0.500000358, 7.30156898e-07, 1.00000012, 3.57627869e-07, -0.500000417, 6.70552254e-08, 0.866025209),
  828. CFrame.new(2.30981135, 0.0232107639, -1.46663569e-05, 0.499999255, -0.866025925, 3.06963921e-06, 0.866025925, 0.499999285, -2.25007534e-06, 4.17232513e-07, 3.78489494e-06, 1),
  829. CFrame.new(-0.942220747, 0.533102334, -1.07246113, 0.173649132, -0.63302058, 0.754407704, 0.98480767, 0.11162056, -0.1330221, -1.62422657e-06, 0.76604557, 0.642786443),
  830. CFrame.new(0.650001526, -2.59999871, -7.62939544e-06, 1, 0, 2.98023224e-08, 0, 1.00000012, 7.4505806e-09, 2.98023224e-08, 7.4505806e-09, 1.00000012),
  831. CFrame.new(-0.957818449, -2.31074858, -0.794715047, 0.939692378, 1.1920929e-07, 0.342020839, 0.116977721, 0.939692855, -0.321393222, -0.321394473, 0.342019558, 0.883022189),
  832. }, .4, false)
  833. MagnitudeDmg(Torso,6,30,3,RootPart.CFrame.lookVector*60,true,"Blunt",.5)
  834. until par ~= nil or dasu >= 100
  835. bodyvel:Destroy()
  836. Humanoid.WalkSpeed = 16
  837. RATr.Enabled = false
  838. attack = false
  839. end
  840.  
  841. function thesurou()
  842. attack = true
  843. Humanoid.WalkSpeed = 0
  844. local grab = nil
  845. local torsy = nil
  846. local hum = nil
  847. for i, v in pairs(FindNearestTorso(Torso.Position, 6)) do
  848. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  849. hum = v:FindFirstChildOfClass("Humanoid")
  850. torsy = GetDudesTorso(v)
  851. grab = v
  852. end
  853. end
  854. so(200632136,RootPart,.8,1)
  855. for i = 0,1,.1 do
  856. swait()
  857. PlayAnimationFromTable({
  858. CFrame.new(0, -0.160800725, -0.377691686, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  859. CFrame.new(0, 2.01372528, -0.214328468, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789),
  860. CFrame.new(1.30359828, 0.346287906, -1.12627494, 0.866025269, 0.500000358, -4.18942193e-07, -0.0868241489, 0.150382817, -0.984807909, -0.492404312, 0.852868497, 0.173647434),
  861. CFrame.new(-1.30359876, 0.346286833, -1.12628198, 0.866025269, -0.500000358, 4.18942193e-07, 0.0868241489, 0.150382817, -0.984807909, 0.492404312, 0.852868497, 0.173647434),
  862. CFrame.new(0.65000087, -2.4212749, -0.479339659, 0.984807849, 0, -0.173647985, -0.0593910702, 0.939692736, -0.33682391, 0.163175747, 0.342019886, 0.925416768),
  863. CFrame.new(-0.649993539, -2.42127419, -0.479341805, 0.984807849, 0, 0.173647985, 0.0593910702, 0.939692736, -0.33682391, -0.163175747, 0.342019886, 0.925416768),
  864. }, .3, false)
  865. end
  866. if grab ~= nil and torsy ~= nil then
  867. so(487911937,Head,1,3)
  868. so(240429615,torsy,1,1)
  869. for i = 0,1,.1 do
  870. swait()
  871. PlayAnimationFromTable({
  872. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  873. CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648),
  874. CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968),
  875. CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  876. CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  877. CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  878. }, .3, false)
  879. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  880. hum.PlatformStand = true
  881. torsy.Velocity = Vector3.new()
  882. end
  883. for a=1,3 do
  884. for i = 0,1,.1 do
  885. swait()
  886. PlayAnimationFromTable({
  887. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  888. CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648),
  889. CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968),
  890. CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  891. CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  892. CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  893. }, .3, false)
  894. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  895. hum.PlatformStand = true
  896. torsy.Velocity = Vector3.new()
  897. end
  898. so(200632136,RootPart,.9,1)
  899. for i = 0,1,.2 do
  900. swait()
  901. PlayAnimationFromTable({
  902. CFrame.new(-0.102054864, -0.932198167, 9.983778e-07, 0, 0.766044974, -0.64278698, 0, 0.64278698, 0.766044974, 1, 0, 0),
  903. CFrame.new(0, 1.94997787, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  904. CFrame.new(1.70003557, 0.647316098, -1.51024413, 0.866025388, 0, 0.500000238, 0.383022666, 0.64278698, -0.663414419, -0.321393639, 0.766044974, 0.556669831),
  905. CFrame.new(-1.95000505, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  906. CFrame.new(0.650000989, -0.993868172, -1.34321105, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698),
  907. CFrame.new(-0.650000989, -2.59999466, 7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  908. }, .4, false)
  909. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  910. hum.PlatformStand = true
  911. torsy.Velocity = Vector3.new()
  912. end
  913. puncheff(torsy)
  914. smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30)))
  915. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05)
  916. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05)
  917. for i = 0,1,.1 do
  918. swait()
  919. PlayAnimationFromTable({
  920. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  921. CFrame.new(-0.034717761, 1.88260937, 0.18508473, 0.984807849, -1.54085157e-07, -0.173648179, -0.0593909919, 0.939692736, -0.336823851, 0.163175985, 0.342019886, 0.925416648),
  922. CFrame.new(1.95000458, 1.57569158, -0.277835488, 1, 0, 0, 0, -0.984807968, -0.173647001, 0, 0.173647001, -0.984807968),
  923. CFrame.new(-1.95000529, -2.02655792e-06, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  924. CFrame.new(0.650004029, -2.5999999, 7.15255737e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  925. CFrame.new(-0.649996519, -2.5999999, -6.10947609e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  926. }, .3, false)
  927. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  928. hum.PlatformStand = true
  929. torsy.Velocity = Vector3.new()
  930. end
  931. so(200632136,RootPart,.9,1)
  932. for i = 0,1,.2 do
  933. swait()
  934. PlayAnimationFromTable({
  935. CFrame.new(0.102049023, -0.932193279, 0, 0, -0.766044974, 0.64278698, 0, 0.64278698, 0.766044974, -1, 0, 0),
  936. CFrame.new(0, 1.94997406, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  937. CFrame.new(1.70003128, 0.647328019, -1.51025343, 0.866025388, 0, 0.500000238, 0.383022666, 0.64278698, -0.663414419, -0.321393639, 0.766044974, 0.556669831),
  938. CFrame.new(-1.95000458, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  939. CFrame.new(0.650002003, -0.993867934, -1.34321058, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698),
  940. CFrame.new(-0.650001049, -2.60001373, 1.14440918e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  941. }, .4, false)
  942. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  943. hum.PlatformStand = true
  944. torsy.Velocity = Vector3.new()
  945. end
  946. puncheff(torsy)
  947. smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30)))
  948. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05)
  949. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05)
  950. end
  951. so(200632136,RootPart,.9,1)
  952. for i = 0,1,.1 do
  953. swait()
  954. PlayAnimationFromTable({
  955. CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  956. CFrame.new(0.0492400974, 1.93260896, -0.0852866173, 0.492402941, 0.0868238136, 0.866025984, -0.173647985, 0.984807849, 0, -0.852869213, -0.150383666, 0.499998987),
  957. CFrame.new(2.25130796, 1.15621161, -0.521879852, 0.866025984, -0.43301183, 0.249999613, 0, -0.500000238, -0.866025388, 0.499998987, 0.750000477, -0.433013201),
  958. CFrame.new(-1.95000482, 3.33413482e-07, 2.38418579e-07, 0.76604408, 0.633022606, -0.111619651, -0.642788172, 0.754405975, -0.133022651, 1.78813934e-07, 0.173648968, 0.98480773),
  959. CFrame.new(0.650005341, -2.5999999, -7.62939453e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  960. CFrame.new(-0.650006175, -2.5999999, 2.44379044e-06, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  961. }, .4, false)
  962. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(-90),0,0)
  963. hum.PlatformStand = true
  964. torsy.Velocity = Vector3.new()
  965. end
  966. local pato = Instance.new("Part",torsy)
  967. pato.CFrame = torsy.CFrame
  968. pato.Size = Vector3.new(4.1,6.1,1.1)
  969. pato.Transparency = 1
  970. pato.CanCollide = false
  971. pato.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  972. local werudo = Instance.new("Weld",pato)
  973. werudo.Part0 = pato
  974. werudo.Part1 = torsy
  975. torsy.Velocity = RootPart.CFrame.lookVector*150+Vector3.new(0,30,0)
  976. torsy.RotVelocity = Vector3.new(10,10,10)
  977. pato.Touched:connect(function(hit)
  978. if hit:IsDescendantOf(chara)==false then
  979. pato:Destroy()
  980. Dmg(grab,70,3,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*50,true,"Blunt",.3)
  981. so(260430079,torsy,1,5)
  982. MagnitudeDmg(torsy,6,40,3,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2)
  983. smasheff(torsy.Position,math.random(10,20)/10,math.random(4,6),math.random(10,20)/10,math.random(4,6),5,Vector3.new(math.random(-30,30),math.random(70,90),math.random(-30,30)))
  984. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.5,.5,.5),"",10,false,.05)
  985. Effects.Wave(CFrame.new(torsy.Position),Vector3.new(),Vector3.new(.25,1,.25),"",-10,false,.05)
  986. end
  987. end)
  988. so(200632136,RootPart,.8,1)
  989. for i = 0,2,.1 do
  990. swait()
  991. PlayAnimationFromTable({
  992. CFrame.new(-0.222327977, -0.0760439336, -0.208909988, 0.604021907, -0.342020392, 0.719846964, -0.0554149859, 0.883022249, 0.46604827, -0.795038819, -0.321393698, 0.514411688),
  993. CFrame.new(7.34417608e-06, 2.0353117, -0.350306809, 1, -4.47034836e-07, 1.69873238e-06, -2.08616257e-07, 0.939692974, 0.342019647, -1.7285347e-06, -0.342019677, 0.939692795),
  994. CFrame.new(1.09530568, 0.103452325, -1.42083132, 0.766043782, 0.64278847, -1.9967556e-06, -0.321392238, 0.383016765, -0.866028547, -0.556672335, 0.663416266, 0.499994785),
  995. CFrame.new(-1.9499985, -4.95091081e-06, 1.11758709e-06, 0.766044378, 0.633022308, -0.111619204, -0.642787814, 0.754405975, -0.13302502, -1.57952309e-06, 0.173650473, 0.984807491),
  996. CFrame.new(0.75631088, -2.3547678, -0.864154458, 0.997292876, -0.0554149859, -0.0483326912, 0.0263557732, 0.883022249, -0.468590677, 0.0686457753, 0.46604827, 0.882092297),
  997. CFrame.new(-0.650001526, -2.59999871, 7.66813719e-06, 1, 0, 0, 0, 1.00000012, -1.49011612e-08, 0, -1.49011612e-08, 1),
  998. }, .3, false)
  999. end
  1000. end
  1001. attack = false
  1002. Humanoid.WalkSpeed = 8
  1003. end
  1004.  
  1005. function equipshot()
  1006. attack = true
  1007. Humanoid.WalkSpeed = 2
  1008. Humanoid.JumpPower = 0
  1009. if CurrentWep == "Pistol" then
  1010. for i=0,2,.1 do
  1011. swait()
  1012. PlayAnimationFromTable({
  1013. CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1014. CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1015. CFrame.new(3.77304196, -0.53539288, 0.273614407, 0.939692736, 0.321393579, 0.116977744, -0.342019945, 0.883022368, 0.321393698, -8.56816769e-08, -0.342020065, 0.939692795),
  1016. CFrame.new(-4.64490843, 0.330175281, -1.53582289e-06, 0.984807849, 0.173648134, -3.13053391e-07, -0.173648164, 0.984807909, 2.68220901e-07, 3.50177288e-07, -1.78813934e-07, 1.00000012),
  1017. CFrame.new(1.50001884, -5.99037027, -0.421832889, 0.984807849, 0, -0.173647985, -0.0301536229, 0.984807849, -0.171009898, 0.171009898, 0.173647985, 0.969846487),
  1018. CFrame.new(-1.50002635, -5.99037027, -0.421831638, 0.984807849, 0, 0.173647985, 0.0301536229, 0.984807849, -0.171009898, -0.171009898, 0.173647985, 0.969846487),
  1019. }, .15, false)
  1020. end
  1021. PHandaru.Transparency = 1
  1022. HolPist.Transparency = 0
  1023. for i=0,1,.1 do
  1024. swait()
  1025. PlayAnimationFromTable({
  1026. CFrame.new(0, -2, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.1 * math.cos((sine)/10), 0),
  1027. CFrame.new(0.147721067, 4.44785833, -0.255860269, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617),
  1028. CFrame.new(4.80713892, 0.709604442, -2.81296843e-06, 0.939692855, -0.342019916, 2.08616257e-07, 0.342019856, 0.939692736, 1.5155652e-07, -2.08616257e-07, -8.94069672e-08, 1.00000024),
  1029. CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329),
  1030. CFrame.new(1.50001502, -5.99999952, 5.36441803e-07, 0.766044557, 0, -0.642787695, 0, 1, 0, 0.642787695, 0, 0.766044557) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1031. CFrame.new(-1.50001943, -5.99999952, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1032. }, .3, false)
  1033. end
  1034. end
  1035. for i=0,2,.1 do
  1036. swait()
  1037. PlayAnimationFromTable({
  1038. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1039. CFrame.new(-0.102602988, 4.45099878, 0.277624637, 0.939692736, -7.70138158e-08, -0.342019916, -0.0593909845, 0.984807849, -0.163175747, 0.33682391, 0.173647955, 0.925416648),
  1040. CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388),
  1041. CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1042. CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1043. CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1044. }, .15, false)
  1045. end
  1046. CurrentWep = "Shotgun"
  1047. SHandaru.Transparency = 0
  1048. HolShot.Transparency = 1
  1049. Humanoid.WalkSpeed = 8
  1050. Humanoid.JumpPower = 70
  1051. attack = false
  1052. end
  1053.  
  1054. function taunt()
  1055. attack = true
  1056. Humanoid.WalkSpeed = 0
  1057. mus.Pitch = 0
  1058. local snd = Instance.new("Sound",Head)
  1059. snd.Volume = 3
  1060. snd.SoundId = "rbxassetid://146333460"
  1061. snd:Play()
  1062. so(487907203,Head,1,3)
  1063. for i = 0,1,.01 do
  1064. swait()
  1065. PlayAnimationFromTable({
  1066. CFrame.new(-7.70094994e-06, 0.0393988565, 0.149780393, 0.999998927, -8.29677447e-08, -4.7053436e-07, 0, 0.984807849, -0.173647985, -6.85358827e-06, 0.173648238, 0.984809279),
  1067. CFrame.new(6.96081361e-06, 1.94950724, -0.513472855, 1, -6.94597475e-07, 3.9392653e-06, -6.94597475e-07, 0.939692855, 0.342019767, -3.93926348e-06, -0.342019796, 0.939692736),
  1068. CFrame.new(1.69018638, 1.65000451, 0.300107032, 0.866022527, 0.500005007, 5.95726306e-06, 0.500005066, -0.866022527, -1.13099813e-05, -4.91738319e-07, 1.27702951e-05, -1.00000012),
  1069. CFrame.new(-1.69020617, 1.6499958, 0.299897015, 0.866027176, -0.49999702, 6.79078403e-06, -0.499997079, -0.866027117, 1.20401382e-05, -1.34110451e-07, -1.38133764e-05, -1.00000012),
  1070. CFrame.new(0.650000513, -2.62530255, 0.310812205, 0.939692974, 0, -0.342019439, 0.0593909882, 0.984807849, 0.163175792, 0.336823434, -0.173647985, 0.925417006),
  1071. CFrame.new(-0.649998724, -2.62530136, 0.310818315, 0.939692497, 0, 0.34202072, -0.0593912043, 0.984807849, 0.163175717, -0.336824685, -0.173647985, 0.925416589),
  1072. }, .1, false)
  1073. end
  1074. so(487907316,Head,1,3)
  1075. for i = 0,1,.01 do
  1076. swait()
  1077. PlayAnimationFromTable({
  1078. CFrame.new(1.55392627e-05, -0.118780732, -0.583496988, 0.999998569, 2.40357622e-07, -4.16312105e-07, 0, 0.866025388, 0.500000238, -9.29446469e-06, -0.500001192, 0.866027057),
  1079. CFrame.new(1.61478602e-05, 1.9034369, 0.0406528115, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057),
  1080. CFrame.new(1.35360622, -0.201802224, -0.616510034, 0.866021276, 0.500007153, -5.6077406e-06, -0.433019817, 0.74999243, -0.500005424, -0.250002086, 0.433017761, 0.866022408),
  1081. CFrame.new(-1.35358262, -0.201804206, -0.616507173, 0.866028905, -0.49999395, -4.74162516e-06, 0.433007032, 0.750007033, -0.499994606, 0.249997824, 0.433007747, 0.866028666),
  1082. CFrame.new(0.649987519, -2.44053602, -0.735289276, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057),
  1083. CFrame.new(-0.650013626, -2.44054365, -0.735276401, 0.999998569, 0, -9.29446469e-06, 2.40357622e-07, 0.866025388, -0.500001192, -4.16312105e-07, 0.500000238, 0.866027057),
  1084. }, .1, false)
  1085. end
  1086. so(487907203,Head,.9,3)
  1087. for i = 0,1,.01 do
  1088. swait()
  1089. PlayAnimationFromTable({
  1090. CFrame.new(0, -0.599999666, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1091. CFrame.new(3.60608101e-06, 1.94996309, -3.51667404e-06, 0.469848812, 0.342020154, 0.813796282, -0.171001956, 0.939692676, -0.296202868, -0.866025746, 9.79501692e-06, 0.499999583),
  1092. CFrame.new(1.61960268, 1.77223492, -2.74498088e-05, 0.866025388, 0.500000238, 1.34671045e-05, 0.500000238, -0.866025388, -9.50000867e-06, 6.91284913e-06, 1.49608022e-05, -1),
  1093. CFrame.new(-2.50045633, 0.909400702, 7.89161845e-07, -1.0784097e-06, 0.984807849, -0.173647985, 0, -0.173647985, -0.984807849, -1, -1.06202424e-06, 1.8726405e-07),
  1094. CFrame.new(1.36961031, -2.04641271, 4.32031811e-06, 0.866025388, -0.500000238, -7.40492396e-06, 0.500000238, 0.866025388, 1.30000126e-05, -8.71550583e-08, -1.49608022e-05, 1),
  1095. CFrame.new(-0.649993896, -1.99999642, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1096. }, .1, false)
  1097. end
  1098. so(487907316,Head,.9,3)
  1099. for i = 0,1,.01 do
  1100. swait()
  1101. PlayAnimationFromTable({
  1102. CFrame.new(0, -0.699999571, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1103. CFrame.new(4.35113907e-06, 1.9499656, -2.47359276e-06, 0.499997169, -0.296198249, -0.813799441, 0, 0.939692855, -0.342019647, 0.866027057, 0.171008855, 0.469843775),
  1104. CFrame.new(2.56986904, 0.91509676, 1.86699071e-05, -3.99215896e-05, -0.984806359, 0.173656061, 0, -0.173656061, -0.984806359, 1, -3.93150331e-05, 6.93262609e-06),
  1105. CFrame.new(-1.76206148, 1.33159709, 1.23434656e-05, 0.939692736, -0.342019886, 5.52932834e-05, -0.342019916, -0.939692736, -9.23453536e-06, 5.51170961e-05, -1.02337781e-05, -1),
  1106. CFrame.new(0.650001526, -1.89999652, -0.599994659, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1107. CFrame.new(-1.4295907, -1.91907001, -1.105927e-05, 0.866025388, 0.500000238, -1.4333129e-05, -0.500000238, 0.866025388, -9.00000668e-06, 7.91284765e-06, 1.49608022e-05, 1),
  1108. }, .1, false)
  1109. end
  1110. snd:Destroy()
  1111. mus.Pitch = 1
  1112. Humanoid.WalkSpeed = 16
  1113. attack = false
  1114. end
  1115.  
  1116. Mouse.Button1Down:connect(function()
  1117. if attack == false then
  1118. attackone()
  1119. end
  1120. end)
  1121.  
  1122. local sprintt = 0
  1123.  
  1124. Mouse.KeyDown:connect(function(k)
  1125. k = k:lower()
  1126. if k=='m' then
  1127. if mus.IsPlaying == true then
  1128. mus:Stop()
  1129. elseif mus.IsPaused == true then
  1130. mus:Play()
  1131. end
  1132. end
  1133. if attack == false then
  1134. if k == 'z' then
  1135. thesurou()
  1136. elseif k == 'x' then
  1137. dashattack()
  1138. elseif k == 'g' then
  1139. taunt()
  1140. elseif k == 'y' then
  1141. equipshot()
  1142. end
  1143. end
  1144. end)
  1145.  
  1146. prevhp = 800
  1147. Humanoid.HealthChanged:connect(function(hp)
  1148. if hp < prevhp then
  1149. local cho = math.random(1,5)
  1150. local s = Instance.new("Sound",Head)
  1151. if cho == 1 then
  1152. so(480392869,Head,1,3)
  1153. elseif cho == 2 then
  1154. so(480392949,Head,1,3)
  1155. elseif cho == 3 then
  1156. so(480394663,Head,1,3)
  1157. elseif cho == 4 then
  1158. so(480394802,Head,1,3)
  1159. elseif cho == 5 then
  1160. so(480394542,Head,1,3)
  1161. end
  1162. end
  1163. prevhp = hp
  1164. end)
  1165.  
  1166. local soundIds = {137473066, 137473066, 137473066}
  1167. coroutine.wrap(function()
  1168. while wait(math.random(25,30)/10) do
  1169. if Humanoid.Health > 1 and attack == false then
  1170. so(soundIds[math.random(1,3)],Head,1,3)
  1171. end
  1172. end
  1173. end)()
  1174.  
  1175. Humanoid.Died:connect(function()
  1176. mus:Stop()
  1177. so(487907155,Head,1,3)
  1178. swait(5)
  1179. for i = 1,10 do
  1180. swait()
  1181. for i,v in pairs(chara:GetDescendants()) do
  1182. if v:IsA("BasePart") then
  1183. v.Transparency = v.Transparency + .1
  1184. end
  1185. end
  1186. end
  1187. chara:Destroy()
  1188. end)
  1189.  
  1190. coroutine.wrap(function()
  1191. while 1 do
  1192. swait()
  1193. if doe <= 360 then
  1194. doe = doe + 2
  1195. else
  1196. doe = 0
  1197. end
  1198. end
  1199. end)()
  1200.  
  1201. while true do
  1202. swait()
  1203. while true do
  1204. swait()
  1205. if Head:FindFirstChild("mus")==nil then
  1206. mus = Instance.new("Sound",Head)
  1207. mus.Name = "mus"
  1208. mus.SoundId = "rbxassetid://969583926"
  1209. mus.Looped = true
  1210. mus.Volume = 1
  1211. mus:Play()
  1212. end
  1213. local ss = Humanoid:GetState()
  1214. if ss == (Enum.HumanoidStateType.FallingDown or ss == Enum.HumanoidStateType.PlatformStanding) then
  1215. Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
  1216. end
  1217. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1218. velocity = RootPart.Velocity.y
  1219. sine = sine + change
  1220. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 5.3, chara)
  1221. if RootPart.Velocity.y > 1 and hit == nil then
  1222. Anim = "Jump"
  1223. if attack == false then
  1224. PlayAnimationFromTable({
  1225. CFrame.new(0, 0.0740167201, -0.180228189, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1226. CFrame.new(0, 2.03109002, -0.115844816, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789),
  1227. CFrame.new(1.47152913, -0.278083742, 0.397592455, 0.939692855, 0.342019439, -3.31528156e-08, -0.321393043, 0.883022368, 0.34202078, 0.116977774, -0.321394503, 0.939692497),
  1228. CFrame.new(-1.47150564, -0.27808097, 0.397592992, 0.939692855, -0.342019439, 3.31528156e-08, 0.321393043, 0.883022368, 0.34202078, -0.116977774, -0.321394503, 0.939692497),
  1229. CFrame.new(0.650001526, -1.19999599, -0.600000799, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1230. CFrame.new(-0.649993896, -2.59999466, 5.54323037e-07, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1231. }, .3, false)
  1232. end
  1233. elseif RootPart.Velocity.y < -1 and hit == nil then
  1234. Anim = "Fall"
  1235. if attack == false then
  1236. PlayAnimationFromTable({
  1237. CFrame.new(0, -0.133714333, 0.15832366, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  1238. CFrame.new(0, 2.05995607, -0.632082939, 1, 0, 0, 0, 0.766044796, 0.642787218, 0, -0.642787218, 0.766044855),
  1239. CFrame.new(2.25642705, 0.257112086, -3.82667531e-06, 0.766044319, -0.642787933, -2.9919768e-08, 0.642787993, 0.766044319, 3.87430191e-07, -1.93715096e-07, -2.83122063e-07, 1),
  1240. CFrame.new(-2.25643301, 0.257116973, 9.41694736e-07, 0.766044319, 0.642787933, 2.9919768e-08, -0.642787993, 0.766044319, 3.87430191e-07, 1.93715096e-07, -2.83122063e-07, 1),
  1241. CFrame.new(0.649993896, -1.3999939, -0.600004256, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1242. CFrame.new(-0.650001526, -2.59999371, -3.89218303e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1243. }, .3, false)
  1244. end
  1245. elseif Torsovelocity < 1 and hit ~= nil then
  1246. Anim = "Idle"
  1247. if attack == false then
  1248. change = 1
  1249. PlayAnimationFromTable({
  1250. CFrame.new(0, 0, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.05 * math.cos((sine)/5), 0),
  1251. CFrame.new(0.0984803587, 1.91524398, -0.170572892, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617),
  1252. CFrame.new(1.98214447, 0.0342020541, -0.0883011818, 0.939692676, -0.116977856, -0.321394205, 0, 0.939692736, -0.342019945, 0.342020601, 0.321393609, 0.883022249),
  1253. CFrame.new(-1.51237798, -0.128823012, -0.775815547, 0.766044199, -0.642788053, -3.87430191e-07, 0.413175076, 0.492402881, -0.76604563, 0.492405087, 0.586824656, 0.642786384),
  1254. CFrame.new(0.649999857, -2.5999999, -8.64267349e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388) * CFrame.new(0,-.05 * math.cos((sine)/5), 0),
  1255. CFrame.new(-0.64999789, -2.5999999, -9.53674544e-07, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.05 * math.cos((sine)/5), 0),
  1256. }, .3, false)
  1257. end
  1258. elseif Torsovelocity > 2 and hit ~= nil then
  1259. Anim = "Walk"
  1260. if attack == false then
  1261. Humanoid.WalkSpeed = 16
  1262. Humanoid.JumpPower = 80
  1263. PlayAnimationFromTable({
  1264. CFrame.new(0, 0.0098747462, -0.187130988, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.Angles(0, math.rad(0 + 10 * math.cos((sine) / 5)), 0),
  1265. CFrame.new(0, 2.01372552, -0.214327857, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849),
  1266. CFrame.new(1.94397354, -0.115067676, -0.230779886, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1267. CFrame.new(-1.95000458, -0.0637510419, -0.214326635, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1268. CFrame.new(0.649997711, -2.60271978, -0.268911421, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0+ .65 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  1269. CFrame.new(-0.650001526, -2.60271978, -0.268911421, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0- .65 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  1270. }, .3, false)
  1271. end
  1272. end
  1273. end
  1274. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement