Advertisement
yabagaba

Untitled

May 5th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.67 KB | None | 0 0
  1. local Player = game:service'Players':GetPlayerFromCharacter(script.Parent)
  2. if Player then
  3. local Owner = script.Owner
  4. Owner.Value = Owner.Value
  5. Owner:Destroy()
  6. local FakeMouse = script.FakeMouse:Clone();
  7. FakeMouse.Parent = Player.Character;
  8. script.FakeMouse:Destroy()
  9. do
  10. local GUID = {}
  11. do
  12. GUID.IDs = {};
  13. function GUID:new(len)
  14. local id;
  15. if(not len)then
  16. id = (tostring(function() end))
  17. id = id:gsub("function: ","")
  18. else
  19. local function genID(len)
  20. local newID = ""
  21. for i = 1,len do
  22. newID = newID..string.char(math.random(48,90))
  23. end
  24. return newID
  25. end
  26. repeat id = genID(len) until not GUID.IDs[id]
  27. local oid = id;
  28. id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
  29. GUID.IDs[oid]=true;
  30. end
  31. return id
  32. end
  33. end
  34.  
  35. local AHB = Instance.new("BindableEvent")
  36.  
  37. local FPS = 30
  38.  
  39. local TimeFrame = 0
  40.  
  41. local LastFrame = tick()
  42. local Frame = 1/FPS
  43.  
  44. game:service'RunService'.Heartbeat:connect(function(s,p)
  45. TimeFrame = TimeFrame + s
  46. if(TimeFrame >= Frame)then
  47. for i = 1,math.floor(TimeFrame/Frame) do
  48. AHB:Fire()
  49. end
  50. LastFrame=tick()
  51. TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
  52. end
  53. end)
  54.  
  55.  
  56. function swait(dur)
  57. if(dur == 0 or typeof(dur) ~= 'number')then
  58. AHB.Event:wait()
  59. else
  60. for i = 1, dur*FPS do
  61. AHB.Event:wait()
  62. end
  63. end
  64. end
  65.  
  66. local oPlayer = Player
  67. local Player = oPlayer
  68.  
  69. local loudnesses={}
  70. script.Parent = Player.Character
  71. local CoAS = {Actions={}}
  72. local Event = Instance.new("RemoteEvent")
  73. Event.Name = "UserInputEvent"
  74. Event.Parent = Player.Character
  75. local Func = Instance.new("RemoteFunction")
  76. Func.Name = "GetClientProperty"
  77. Func.Parent = Player.Character
  78. local fakeEvent = function()
  79. local t = {_fakeEvent=true,Waited={},Connected={}}
  80. t.Connect = function(self,f)
  81. local ft={}
  82. ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
  83. ft.Disconnect=ft.disconnect
  84.  
  85. ft.Func=function(...)
  86. for id,_ in next, t.Waited do
  87. t.Waited[id] = true
  88. end
  89. return f(...)
  90. end;
  91.  
  92. table.insert(self.Connected,ft)
  93. return ft;
  94. end
  95. t.connect = t.Connect
  96. t.Wait = function()
  97. local guid = GUID:new(25)
  98. local waitingId = guid:Get()
  99. t.Waited[waitingId]=false
  100. repeat swait() until t.Waited[waitingId]==true
  101. t.Waited[waitingId]=nil;
  102. guid:Trash()
  103. end
  104. t.wait = t.Wait
  105. return t
  106. end
  107. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  108. local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  109. local Run = {RenderStepped=fakeEvent()}
  110.  
  111. function CoAS:BindAction(name,fun,touch,...)
  112. CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  113. end
  114. function CoAS:UnbindAction(name)
  115. CoAS.Actions[name] = nil
  116. end
  117. local function te(self,ev,...)
  118. local t = self[ev]
  119. if t and t._fakeEvent and t.Connected then
  120. for i,v in next, t.Connected do
  121. if(v.Func and not v.Disconnected)then
  122. v.Func(...)
  123. else
  124. t.Connected[i]=nil
  125. end
  126. end
  127. end
  128. end
  129. m.TrigEvent = te
  130. UsIS.TrigEvent = te
  131. Run.TrigEvent = te
  132. Event.OnServerEvent:Connect(function(plr,io)
  133. if plr~=Player then return end
  134. --[[table.foreach(io,print)
  135. print'---']]
  136. if io.Mouse then
  137. m.Target = io.Target
  138. m.Hit = io.Hit
  139. elseif io.KeyEvent then
  140. m:TrigEvent('Key'..io.KeyEvent,io.Key)
  141. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  142. if io.UserInputState == Enum.UserInputState.Begin then
  143. m:TrigEvent("Button1Down")
  144. else
  145. m:TrigEvent("Button1Up")
  146. end
  147. end
  148. if(not io.KeyEvent and not io.Mouse)then
  149.  
  150. for n,t in pairs(CoAS.Actions) do
  151. for _,k in pairs(t.Keys) do
  152. if k==io.KeyCode then
  153. t.Function(t.Name,io.UserInputState,io)
  154. end
  155. end
  156. end
  157. if io.UserInputState == Enum.UserInputState.Begin then
  158. UsIS:TrigEvent("InputBegan",io,false)
  159. else
  160. UsIS:TrigEvent("InputEnded",io,false)
  161. end
  162. end
  163. end)
  164.  
  165. Func.OnServerInvoke = function(plr,inst,play)
  166. if plr~=Player then return end
  167. if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
  168. loudnesses[inst]=play
  169. end
  170. end
  171.  
  172. function GetClientProperty(inst,prop)
  173. --if(script:IsA'LocalScript' or game:service'RunService':IsStudio())then return prop[inst] end
  174. if(prop == 'PlaybackLoudness' and loudnesses[inst])then
  175. return loudnesses[inst]
  176. elseif(prop == 'PlaybackLoudness')then
  177. return Func:InvokeClient(Player,'RegSound',inst)
  178. end
  179. return Func:InvokeClient(Player,inst,prop)
  180. end
  181.  
  182.  
  183. local oldGame = game;
  184. local function GetService(s,i)
  185. local service = s:GetService(i)
  186. if(i == 'Players')then
  187. local oldService = service;
  188. local fakeService = newproxy(true)
  189. getmetatable(fakeService).__index = function(s,i)
  190. if(s == fakeService)then s=oldService end
  191. if(i == 'LocalPlayer' or i == 'localPlayer')then
  192. local oldPlayer = Player;
  193. local fakePlayer = newproxy(true)
  194. getmetatable(fakePlayer).__index = function(s,i)
  195. if(i == 'GetMouse')then
  196. return function() return m; end
  197. end
  198. return Player[i]
  199. end
  200. getmetatable(fakePlayer).__newindex = function(s,i,v)
  201. Player[i]=v
  202. end
  203. getmetatable(fakePlayer).__call=function(self,...)
  204. if(self == fakePlayer)then self = Player end
  205. local wh = {...}
  206. local name = table.remove(wh,1)
  207. for i,v in next, wh do
  208. wh[i]=v
  209. end
  210. if(name == 'GetMouse')then
  211. return m;
  212. end
  213. return self(name,unpack(wh))
  214. end
  215. getmetatable(fakePlayer).__namecall=function(self,...)
  216. if(self == fakePlayer)then self = Player end
  217. local tuple={...}
  218. local name = table.remove(tuple,#tuple)
  219.  
  220. if(name == 'GetMouse')then
  221. return m;
  222. else
  223. return self[name](self,unpack(tuple))
  224. end
  225. end
  226.  
  227. return fakePlayer
  228. elseif(i == 'oPlayer')then
  229. return oPlayer
  230. else
  231. return s[i]
  232. end
  233. end
  234. getmetatable(fakeService).__newindex = function(s,i,v)
  235. if(s == fakeService)then s=oldService end
  236. s[i]=v
  237. end
  238. getmetatable(fakeService).__call=function(self,...)
  239. if(self == fakeService)then self = oldService end
  240. local wh = {...}
  241. local name = table.remove(wh,1)
  242. for i,v in next, wh do
  243. wh[i]=v
  244. end
  245. return self(name,unpack(wh))
  246. end
  247. getmetatable(fakeService).__namecall=function(self,...)
  248. if(self == fakeService)then self = oldService end
  249. local tuple={...}
  250. local name = table.remove(tuple,#tuple)
  251.  
  252. return self[name](self,unpack(tuple))
  253. end
  254. getmetatable(fakeService).__metatable = 'gay'
  255. return fakeService
  256. elseif(i == 'RunService')then
  257. local oldService = service;
  258. local fakeService = newproxy(true)
  259. getmetatable(fakeService).__index = function(s,i)
  260. if(s == fakeService)then s=oldService end
  261. return Run[i] or s[i]
  262. end
  263. getmetatable(fakeService).__newindex = function(s,i,v)
  264. if(s == fakeService)then s=oldService end
  265. s[i]=v
  266. end
  267. getmetatable(fakeService).__call=function(self,...)
  268. if(self == fakeService)then self = oldService end
  269. local wh = {...}
  270. local name = table.remove(wh,1)
  271. for i,v in next, wh do
  272. wh[i]=v
  273. end
  274. return self(name,unpack(wh))
  275. end
  276. getmetatable(fakeService).__namecall=function(self,...)
  277. if(self == fakeService)then self = oldService end
  278. local tuple={...}
  279. local name = table.remove(tuple,#tuple)
  280.  
  281. return self[name](self,unpack(tuple))
  282. end
  283. getmetatable(fakeService).__metatable = 'gay'
  284. return fakeService
  285. elseif(i == 'UserInputService')then
  286. return UsIS
  287. elseif(i == 'ContextActionService')then
  288. return CoAS;
  289. else
  290. return service
  291. end
  292. end
  293. local serviceFunctions={
  294. service=true,
  295. GetService=true,
  296. }
  297. local fakeGame = newproxy(true)
  298. getmetatable(fakeGame).__index = function(s,i)
  299. if(s == fakeGame)then s=oldGame end
  300. local serv = GetService(oldGame,i)
  301. if serviceFunctions[i] then
  302. return GetService
  303. elseif(serv)then
  304. return serv
  305. else
  306. return s[i]
  307. end
  308. end
  309. getmetatable(fakeGame).__newindex = function(s,i,v)
  310. if(s == fakeGame)then s=oldGame end
  311. s[i]=v
  312. end
  313. getmetatable(fakeGame).__call=function(self,...)
  314. if(self == fakeGame)then self = oldGame end
  315. local wh = {...}
  316. local name = table.remove(wh,1)
  317. for i,v in next, wh do
  318. if(v == fakeGame)then v = oldGame end
  319. wh[i]=v
  320. end
  321. if serviceFunctions[name] then
  322. return GetService(self,unpack(wh))
  323. else
  324. return self(name,unpack(wh))
  325. end
  326. end
  327. getmetatable(fakeGame). __namecall=function(self,...)
  328. if(self == fakeGame)then self = oldGame end
  329. local tuple={...}
  330. local name = table.remove(tuple,#tuple)
  331.  
  332. local funcToCall=self[name]
  333.  
  334. if serviceFunctions[name] then
  335. return GetService(self,unpack(tuple))
  336. else
  337. return self[name](self,unpack(tuple))
  338. end
  339. end
  340. getmetatable(fakeGame).__metatable = 'gay'
  341.  
  342. coroutine.wrap(function()
  343. while true do
  344. Run:TrigEvent('RenderStepped')
  345. swait()
  346. end
  347. end)()
  348. game=fakeGame
  349. UserInputService,ContextActionService = UsIS,CoAS
  350. end
  351. end
  352. -- Synapse Decompiler
  353. -- Purchase Here: https://brack4712.xyz/synapse/purchase/
  354.  
  355. wait(0.2)
  356. Player = game:GetService("Players").LocalPlayer
  357. PlayerGui = Player.PlayerGui
  358. Cam = workspace.CurrentCamera
  359. Backpack = Player.Backpack
  360. Character = Player.Character
  361. Humanoid = Character.Humanoid
  362. Mouse = Player:GetMouse()
  363. RootPart = Character.HumanoidRootPart
  364. Torso = Character.Torso
  365. Head = Character.Head
  366. RightArm = Character["Right Arm"]
  367. LeftArm = Character["Left Arm"]
  368. RightLeg = Character["Right Leg"]
  369. LeftLeg = Character["Left Leg"]
  370. RootJoint = RootPart.RootJoint
  371. Neck = Torso.Neck
  372. RightShoulder = Torso["Right Shoulder"]
  373. LeftShoulder = Torso["Left Shoulder"]
  374. RightHip = Torso["Right Hip"]
  375. LeftHip = Torso["Left Hip"]
  376. local sick = Instance.new("Sound", Character)
  377. IT = Instance.new
  378. CF = CFrame.new
  379. VT = Vector3.new
  380. RAD = math.rad
  381. C3 = Color3.new
  382. UD2 = UDim2.new
  383. BRICKC = BrickColor.new
  384. ANGLES = CFrame.Angles
  385. EULER = CFrame.fromEulerAnglesXYZ
  386. COS = math.cos
  387. ACOS = math.acos
  388. SIN = math.sin
  389. ASIN = math.asin
  390. ABS = math.abs
  391. MRANDOM = math.random
  392. FLOOR = math.floor
  393. Animation_Speed = 3
  394. Frame_Speed = 0.016666666666666666
  395. local Speed = 25
  396. local SIZE = 3
  397. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  398. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  399. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  400. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  401. local DAMAGEMULTIPLIER = 1
  402. local ANIM = "Idle"
  403. local ATTACK = false
  404. local EQUIPPED = false
  405. local HOLD = false
  406. local COMBO = 1
  407. local Rooted = false
  408. local SINE = 0
  409. local KEYHOLD = false
  410. local CHANGE = 2 / Animation_Speed
  411. local WALKINGANIM = false
  412. local VALUE1 = false
  413. local VALUE2 = false
  414. local ROBLOXIDLEANIMATION = IT("Animation")
  415. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  416. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  417. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  418. WEAPONGUI.Name = "Weapon GUI"
  419. local Effects = IT("Folder", Character)
  420. Effects.Name = "Effects"
  421. local ANIMATOR = Humanoid.Animator
  422. local ANIMATE = Character.Animate
  423. ANIMATOR:Destroy()
  424. local UNANCHOR = true
  425. local HELDGUN, GUNWELD
  426. local HITPLAYERSOUNDS = {
  427. "263032172",
  428. "263032182",
  429. "263032200",
  430. "263032221",
  431. "263032252",
  432. "263033191"
  433. }
  434. ArtificialHB = Instance.new("BindableEvent", script)
  435. ArtificialHB.Name = "ArtificialHB"
  436. script:WaitForChild("ArtificialHB")
  437. frame = Frame_Speed
  438. tf = 0
  439. allowframeloss = false
  440. tossremainder = false
  441. lastframe = tick()
  442. script.ArtificialHB:Fire()
  443. game:GetService("RunService").Heartbeat:connect(function(s, p)
  444. tf = tf + s
  445. if tf >= frame then
  446. if allowframeloss then
  447. script.ArtificialHB:Fire()
  448. lastframe = tick()
  449. else
  450. for i = 1, math.floor(tf / frame) do
  451. script.ArtificialHB:Fire()
  452. end
  453. lastframe = tick()
  454. end
  455. if tossremainder then
  456. tf = 0
  457. else
  458. tf = tf - frame * math.floor(tf / frame)
  459. end
  460. end
  461. end)
  462. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  463. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  464. end
  465. function PositiveAngle(NUMBER)
  466. if NUMBER >= 0 then
  467. NUMBER = 0
  468. end
  469. return NUMBER
  470. end
  471. function NegativeAngle(NUMBER)
  472. if NUMBER <= 0 then
  473. NUMBER = 0
  474. end
  475. return NUMBER
  476. end
  477. function Swait(NUMBER)
  478. if NUMBER == 0 or NUMBER == nil then
  479. ArtificialHB.Event:wait()
  480. else
  481. for i = 1, NUMBER do
  482. ArtificialHB.Event:wait()
  483. end
  484. end
  485. end
  486. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  487. local NEWMESH = IT(MESH)
  488. if MESH == "SpecialMesh" then
  489. NEWMESH.MeshType = MESHTYPE
  490. if MESHID ~= "nil" and MESHID ~= "" then
  491. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  492. end
  493. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  494. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  495. end
  496. end
  497. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  498. NEWMESH.Scale = SCALE
  499. NEWMESH.Parent = PARENT
  500. return NEWMESH
  501. end
  502. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  503. local NEWPART = IT("Part")
  504. NEWPART.formFactor = FORMFACTOR
  505. NEWPART.Reflectance = REFLECTANCE
  506. NEWPART.Transparency = TRANSPARENCY
  507. NEWPART.CanCollide = false
  508. NEWPART.Locked = true
  509. NEWPART.Anchored = true
  510. if ANCHOR == false then
  511. NEWPART.Anchored = false
  512. end
  513. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  514. NEWPART.Name = NAME
  515. NEWPART.Size = SIZE
  516. NEWPART.Position = Torso.Position
  517. NEWPART.Material = MATERIAL
  518. NEWPART:BreakJoints()
  519. NEWPART.Parent = PARENT
  520. return NEWPART
  521. end
  522. local weldBetween = function(a, b)
  523. local weldd = Instance.new("ManualWeld")
  524. weldd.Part0 = a
  525. weldd.Part1 = b
  526. weldd.C0 = CFrame.new()
  527. weldd.C1 = b.CFrame:inverse() * a.CFrame
  528. weldd.Parent = a
  529. return weldd
  530. end
  531. function QuaternionFromCFrame(cf)
  532. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  533. local trace = m00 + m11 + m22
  534. if trace > 0 then
  535. local s = math.sqrt(1 + trace)
  536. local recip = 0.5 / s
  537. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  538. else
  539. local i = 0
  540. if m00 < m11 then
  541. i = 1
  542. end
  543. if m22 > (i == 0 and m00 or m11) then
  544. i = 2
  545. end
  546. if i == 0 then
  547. local s = math.sqrt(m00 - m11 - m22 + 1)
  548. local recip = 0.5 / s
  549. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  550. elseif i == 1 then
  551. local s = math.sqrt(m11 - m22 - m00 + 1)
  552. local recip = 0.5 / s
  553. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  554. elseif i == 2 then
  555. local s = math.sqrt(m22 - m00 - m11 + 1)
  556. local recip = 0.5 / s
  557. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  558. end
  559. end
  560. end
  561. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  562. local xs, ys, zs = x + x, y + y, z + z
  563. local wx, wy, wz = w * xs, w * ys, w * zs
  564. local xx = x * xs
  565. local xy = x * ys
  566. local xz = x * zs
  567. local yy = y * ys
  568. local yz = y * zs
  569. local zz = z * zs
  570. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  571. end
  572. function QuaternionSlerp(a, b, t)
  573. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  574. local startInterp, finishInterp
  575. if cosTheta >= 1.0E-4 then
  576. if 1 - cosTheta > 1.0E-4 then
  577. local theta = ACOS(cosTheta)
  578. local invSinTheta = 1 / SIN(theta)
  579. startInterp = SIN((1 - t) * theta) * invSinTheta
  580. finishInterp = SIN(t * theta) * invSinTheta
  581. else
  582. startInterp = 1 - t
  583. finishInterp = t
  584. end
  585. elseif 1 + cosTheta > 1.0E-4 then
  586. local theta = ACOS(-cosTheta)
  587. local invSinTheta = 1 / SIN(theta)
  588. startInterp = SIN((t - 1) * theta) * invSinTheta
  589. finishInterp = SIN(t * theta) * invSinTheta
  590. else
  591. startInterp = t - 1
  592. finishInterp = t
  593. end
  594. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  595. end
  596. function Clerp(a, b, t)
  597. local qa = {
  598. QuaternionFromCFrame(a)
  599. }
  600. local qb = {
  601. QuaternionFromCFrame(b)
  602. }
  603. local ax, ay, az = a.x, a.y, a.z
  604. local bx, by, bz = b.x, b.y, b.z
  605. local _t = 1 - t
  606. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  607. end
  608. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  609. local frame = IT("Frame")
  610. frame.BackgroundTransparency = TRANSPARENCY
  611. frame.BorderSizePixel = BORDERSIZEPIXEL
  612. frame.Position = POSITION
  613. frame.Size = SIZE
  614. frame.BackgroundColor3 = COLOR
  615. frame.BorderColor3 = BORDERCOLOR
  616. frame.Name = NAME
  617. frame.Parent = PARENT
  618. return frame
  619. end
  620. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  621. local label = IT("TextLabel")
  622. label.BackgroundTransparency = 1
  623. label.Size = UD2(1, 0, 1, 0)
  624. label.Position = UD2(0, 0, 0, 0)
  625. label.TextColor3 = TEXTCOLOR
  626. label.TextStrokeTransparency = STROKETRANSPARENCY
  627. label.TextTransparency = TRANSPARENCY
  628. label.FontSize = TEXTFONTSIZE
  629. label.Font = TEXTFONT
  630. label.BorderSizePixel = BORDERSIZEPIXEL
  631. label.TextScaled = false
  632. label.Text = TEXT
  633. label.Name = NAME
  634. label.Parent = PARENT
  635. return label
  636. end
  637. function NoOutlines(PART)
  638. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  639. end
  640. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  641. local NEWWELD = IT(TYPE)
  642. NEWWELD.Part0 = PART0
  643. NEWWELD.Part1 = PART1
  644. NEWWELD.C0 = C0
  645. NEWWELD.C1 = C1
  646. NEWWELD.Parent = PARENT
  647. return NEWWELD
  648. end
  649. local S = IT("Sound")
  650. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  651. local NEWSOUND
  652. coroutine.resume(coroutine.create(function()
  653. NEWSOUND = S:Clone()
  654. NEWSOUND.Parent = PARENT
  655. NEWSOUND.EmitterSize = 10 + VOLUME * 2
  656. NEWSOUND.Volume = VOLUME
  657. NEWSOUND.Pitch = PITCH
  658. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  659. NEWSOUND:play()
  660. if DOESLOOP == true then
  661. NEWSOUND.Looped = true
  662. else
  663. repeat
  664. wait(1)
  665. until NEWSOUND.Playing == false
  666. NEWSOUND:remove()
  667. end
  668. end))
  669. return NEWSOUND
  670. end
  671. function CFrameFromTopBack(at, top, back)
  672. local right = top:Cross(back)
  673. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  674. end
  675. function WACKYEFFECT(Table)
  676. local TYPE = Table.EffectType or "Sphere"
  677. local SIZE = Table.Size or VT(1, 1, 1)
  678. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  679. local TRANSPARENCY = Table.Transparency or 0
  680. local ENDTRANSPARENCY = Table.Transparency2 or 1
  681. local CFRAME = Table.CFrame or Torso.CFrame
  682. local MOVEDIRECTION = Table.MoveToPos or nil
  683. local ROTATION1 = Table.RotationX or 0
  684. local ROTATION2 = Table.RotationY or 0
  685. local ROTATION3 = Table.RotationZ or 0
  686. local MATERIAL = Table.Material or "Neon"
  687. local COLOR = Table.Color or C3(1, 1, 1)
  688. local TIME = Table.Time or 45
  689. local SOUNDID = Table.SoundID or nil
  690. local SOUNDPITCH = Table.SoundPitch or nil
  691. local SOUNDVOLUME = Table.SoundVolume or nil
  692. coroutine.resume(coroutine.create(function()
  693. local PLAYSSOUND = false
  694. local SOUND
  695. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  696. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  697. PLAYSSOUND = true
  698. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  699. end
  700. EFFECT.Color = COLOR
  701. local MSH
  702. if TYPE == "Sphere" then
  703. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  704. elseif TYPE == "Block" or TYPE == "Box" then
  705. MSH = IT("BlockMesh", EFFECT)
  706. MSH.Scale = SIZE
  707. elseif TYPE == "Wave" then
  708. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  709. elseif TYPE == "Ring" then
  710. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  711. elseif TYPE == "Slash" then
  712. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  713. elseif TYPE == "Round Slash" then
  714. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  715. elseif TYPE == "Swirl" then
  716. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
  717. elseif TYPE == "Skull" then
  718. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  719. elseif TYPE == "Crystal" then
  720. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
  721. end
  722. if MSH ~= nil then
  723. local MOVESPEED
  724. if MOVEDIRECTION ~= nil then
  725. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME
  726. end
  727. local GROWTH = SIZE - ENDSIZE
  728. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  729. if TYPE == "Block" then
  730. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  731. else
  732. EFFECT.CFrame = CFRAME
  733. end
  734. for LOOP = 1, TIME + 1 do
  735. Swait()
  736. MSH.Scale = MSH.Scale - GROWTH / TIME
  737. if TYPE == "Wave" then
  738. MSH.Offset = VT(0, 0, -MSH.Scale.X / 8)
  739. end
  740. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  741. if TYPE == "Block" then
  742. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  743. else
  744. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  745. end
  746. if MOVEDIRECTION ~= nil then
  747. local ORI = EFFECT.Orientation
  748. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED)
  749. EFFECT.Orientation = ORI
  750. end
  751. end
  752. if PLAYSSOUND == false then
  753. EFFECT:remove()
  754. else
  755. repeat
  756. Swait()
  757. until EFFECT:FindFirstChildOfClass("Sound") == nil
  758. EFFECT:remove()
  759. end
  760. elseif PLAYSSOUND == false then
  761. EFFECT:remove()
  762. else
  763. repeat
  764. Swait()
  765. until EFFECT:FindFirstChildOfClass("Sound") == nil
  766. EFFECT:remove()
  767. end
  768. end))
  769. end
  770. function MakeForm(PART, TYPE)
  771. if TYPE == "Cyl" then
  772. local MSH = IT("CylinderMesh", PART)
  773. elseif TYPE == "Ball" then
  774. local MSH = IT("SpecialMesh", PART)
  775. MSH.MeshType = "Sphere"
  776. elseif TYPE == "Wedge" then
  777. local MSH = IT("SpecialMesh", PART)
  778. MSH.MeshType = "Wedge"
  779. end
  780. end
  781. Debris = game:GetService("Debris")
  782. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  783. local DIRECTION = CF(StartPos, EndPos).lookVector
  784. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  785. end
  786. function MakeForm(PART, TYPE)
  787. if TYPE == "Cyl" then
  788. local MSH = IT("CylinderMesh", PART)
  789. elseif TYPE == "Ball" then
  790. local MSH = IT("SpecialMesh", PART)
  791. MSH.MeshType = "Sphere"
  792. elseif TYPE == "Wedge" then
  793. local MSH = IT("SpecialMesh", PART)
  794. MSH.MeshType = "Wedge"
  795. end
  796. end
  797. Debris = game:GetService("Debris")
  798. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  799. local DIRECTION = CF(StartPos, EndPos).lookVector
  800. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  801. end
  802. function Chatter(Text, Timer)
  803. local chat = coroutine.wrap(function()
  804. if Character:FindFirstChild("SpeechBoard") ~= nil then
  805. Character:FindFirstChild("SpeechBoard"):destroy()
  806. end
  807. local naeeym2 = IT("BillboardGui", Character)
  808. naeeym2.Size = UD2(0, 100, 0, 40)
  809. naeeym2.StudsOffset = VT(0, 5, 0)
  810. naeeym2.Adornee = Character.Head
  811. naeeym2.Name = "SpeechBoard"
  812. naeeym2.AlwaysOnTop = true
  813. local tecks2 = IT("TextLabel", naeeym2)
  814. tecks2.BackgroundTransparency = 1
  815. tecks2.BorderSizePixel = 0
  816. tecks2.Text = ""
  817. tecks2.Font = "Legacy"
  818. tecks2.TextSize = 15
  819. tecks2.TextStrokeTransparency = 0
  820. tecks2.TextColor3 = C3(1, 1, 1)
  821. tecks2.TextStrokeColor3 = C3(0, 0, 0)
  822. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  823. local FINISHED = false
  824. coroutine.resume(coroutine.create(function()
  825. for i = 1, string.len(Text) do
  826. if naeeym2.Parent ~= Character then
  827. FINISHED = true
  828. end
  829. CreateSound(418252437, Head, 7, MRANDOM(8, 12) / 15, false)
  830. tecks2.Text = string.sub(Text, 1, i)
  831. Swait(Timer)
  832. end
  833. FINISHED = true
  834. end))
  835. repeat
  836. wait()
  837. until FINISHED == true
  838. wait(1)
  839. naeeym2.Name = "FadingDialogue"
  840. for i = 1, 45 do
  841. Swait()
  842. naeeym2.StudsOffset = naeeym2.StudsOffset + VT(0, (2 - 0.044444444444444446 * i) / 45, 0)
  843. tecks2.TextTransparency = tecks2.TextTransparency + 0.022222222222222223
  844. tecks2.TextStrokeTransparency = tecks2.TextTransparency
  845. end
  846. naeeym2:Destroy()
  847. end)
  848. chat()
  849. end
  850. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH, DOES360)
  851. if FLOOR ~= nil then
  852. for i = 1, AMOUNT do
  853. do
  854. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false)
  855. DEBREE.Material = FLOOR.Material
  856. DEBREE.Color = FLOOR.Color
  857. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  858. if DOES360 == true then
  859. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH))
  860. else
  861. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), STRENGTH, MRANDOM(-STRENGTH, STRENGTH))
  862. end
  863. coroutine.resume(coroutine.create(function()
  864. Swait(15)
  865. DEBREE.Parent = workspace
  866. DEBREE.CanCollide = true
  867. Debris:AddItem(DEBREE, SWAIT)
  868. end))
  869. end
  870. end
  871. end
  872. end
  873. function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
  874. local CHILDREN = workspace:GetDescendants()
  875. for index, CHILD in pairs(CHILDREN) do
  876. if CHILD.ClassName == "Model" then
  877. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  878. if HUM then
  879. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  880. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  881. local CAMSHAKER = script.CamShake:Clone()
  882. CAMSHAKER.Shake.Value = INTENSITY
  883. CAMSHAKER.Timer.Value = TIME
  884. CAMSHAKER.Parent = CHILD
  885. CAMSHAKER.Disabled = false
  886. end
  887. end
  888. end
  889. end
  890. end
  891. Humanoid.Parent = nil
  892. RootPart.Size = RootPart.Size * SIZE
  893. Torso.Size = Torso.Size * SIZE
  894. RightArm.Size = RightArm.Size * SIZE
  895. RightLeg.Size = RightLeg.Size * SIZE
  896. LeftArm.Size = LeftArm.Size * SIZE
  897. LeftLeg.Size = LeftLeg.Size * SIZE
  898. RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  899. RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
  900. Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
  901. Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
  902. RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  903. LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
  904. RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  905. LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  906. RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  907. LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
  908. Head.Size = Head.Size * SIZE
  909. RootJoint.Parent = RootPart
  910. Neck.Parent = Torso
  911. RightShoulder.Parent = Torso
  912. LeftShoulder.Parent = Torso
  913. RightHip.Parent = Torso
  914. LeftHip.Parent = Torso
  915.  
  916. local Trap = Instance.new
  917. local GUNOFFSET = CF(0, 0.8, -1.3)
  918. local BEARTRAP = script.Beartrap
  919. BEARTRAP.Parent = nil
  920. local GRENADE = script.Grenade
  921. GRENADE.Parent = nil
  922. GRENADE.Anchored = false
  923. local FAKEBEARTRAP, FAKEGUN, HELDTRAP
  924. for _, c in pairs(Character:GetChildren()) do
  925. if script:FindFirstChild(c.Name) then
  926. local Part = script[c.Name]
  927. Part.Parent = Character
  928. Part:SetPrimaryPartCFrame(c.CFrame)
  929. c.Transparency = 1
  930. for _, e in pairs(Part:GetChildren()) do
  931. if e:IsA("BasePart") and e.Name ~= "Base" then
  932. e.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  933. e.Anchored = false
  934. weldBetween(c, e)
  935. e.CanCollide = false
  936. e.Locked = true
  937. if e.Name == "Beartrap" then
  938. FAKEBEARTRAP = e
  939. elseif e.Name == "Gun" then
  940. FAKEGUN = e
  941. elseif e.Name == "HeldBeartrap" then
  942. HELDTRAP = e
  943. end
  944. end
  945. end
  946. end
  947. end
  948.  
  949. local TAIL = {}
  950.  
  951. local SKILLTEXTCOLOR = C3(1, 1, 1)
  952. local SKILLFONT = "Legacy"
  953. local SKILLTEXTSIZE = 3
  954. local ATTACKS = {
  955. "Mouse - Fury",
  956. "F - Equip Gun",
  957. "C - Beartrap",
  958. "V - Hand Grenade"
  959. }
  960. for i = 1, #ATTACKS do
  961. local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.74, 0, 0.97 - 0.02 * i, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill Frame")
  962. local SKILLTEXT = CreateLabel(SKILLFRAME, "[" .. ATTACKS[i] .. "]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text")
  963. SKILLTEXT.TextXAlignment = "Right"
  964. end
  965. Humanoid.Parent = Character
  966. function ApplyDamage(Humanoid, Damage)
  967. Damage = Damage * DAMAGEMULTIPLIER
  968. if Humanoid.Health < 2000 then
  969. if Humanoid.Health - Damage > 0 then
  970. Humanoid.Health = Humanoid.Health - Damage
  971. else
  972. Humanoid.Parent:BreakJoints()
  973. end
  974. else
  975. Humanoid.Parent:BreakJoints()
  976. end
  977. end
  978. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  979. for index, CHILD in pairs(workspace:GetDescendants()) do
  980. if CHILD.ClassName == "Model" and CHILD ~= Character then
  981. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  982. if HUM then
  983. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  984. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  985. if INSTAKILL == true then
  986. CHILD:BreakJoints()
  987. else
  988. local DMG = MRANDOM(MINDMG, MAXDMG)
  989. ApplyDamage(HUM, DMG)
  990. end
  991. if FLING > 0 then
  992. for _, c in pairs(CHILD:GetChildren()) do
  993. if c:IsA("BasePart") then
  994. local bv = Instance.new("BodyVelocity")
  995. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  996. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  997. bv.Parent = c
  998. Debris:AddItem(bv, 0.05)
  999. end
  1000. end
  1001. end
  1002. end
  1003. end
  1004. end
  1005. end
  1006. end
  1007. function Fury()
  1008. ATTACK = true
  1009. Rooted = false
  1010. if EQUIPPED == false then
  1011. Rooted = true
  1012. Chatter("I'll crush you!", 0)
  1013. for i = 0, 0.3, 0.1 / Animation_Speed do
  1014. Swait()
  1015. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0.01 * SIZE, -0.01 * SIZE) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed)
  1016. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1017. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1018. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1019. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, 0.2 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(5), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1020. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(-5), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1021. end
  1022. local TOUCH = RightLeg.Touched:Connect(function(HIT)
  1023. if HIT.Anchored == false and (HIT.Parent:FindFirstChildOfClass("Humanoid") or HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")) then
  1024. HIT:BreakJoints()
  1025. end
  1026. end)
  1027. for i = 0, 0.1, 0.1 / Animation_Speed do
  1028. Swait()
  1029. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, -0.4 * SIZE, -0.1 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
  1030. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1031. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1032. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1033. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1034. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1.1 * SIZE, -0.01 * SIZE) * ANGLES(RAD(25), RAD(-75), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1035. end
  1036. local HITFLOOR, HITPOS = Raycast(RightLeg.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 2 * SIZE, Character)
  1037. if HITFLOOR then
  1038. for i = 1, 5 do
  1039. WACKYEFFECT({
  1040. Time = 25,
  1041. EffectType = "Wave",
  1042. Size = VT(5, 0.5, 5),
  1043. Size2 = VT(15 + i * 3, 0, 15 + i * 3),
  1044. Transparency = 0.7,
  1045. Transparency2 = 1,
  1046. CFrame = CF(RightLeg.CFrame * CF(0, -1.05 * SIZE, 0).p) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1047. MoveToPos = nil,
  1048. RotationX = 0,
  1049. RotationY = 0,
  1050. RotationZ = 0,
  1051. Material = "Neon",
  1052. Color = C3(1, 1, 1),
  1053. SoundID = nil,
  1054. SoundPitch = nil,
  1055. SoundVolume = nil
  1056. })
  1057. end
  1058. SHAKECAM(HITPOS, 35, 7, 12)
  1059. ApplyAoE(HITPOS, 25, 35, 45, 45, false)
  1060. CreateSound(765590102, RightLeg, 6, 1, false)
  1061. CreateFlyingDebree(HITFLOOR, CF(HITPOS), 10, VT(2, 2, 2), 5, 75, false)
  1062. end
  1063. TOUCH:Disconnect()
  1064. for i = 0, 0.2, 0.1 / Animation_Speed do
  1065. Swait()
  1066. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, -0.4 * SIZE, -0.1 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
  1067. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1068. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1069. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1070. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1.5 / Animation_Speed)
  1071. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1.1 * SIZE, -0.01 * SIZE) * ANGLES(RAD(25), RAD(-75), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1072. end
  1073. else
  1074. do
  1075. local GYRO = IT("BodyGyro", RootPart)
  1076. GYRO.D = 2
  1077. GYRO.P = 20000
  1078. GYRO.MaxTorque = VT(0, 4000000, 0)
  1079. coroutine.resume(coroutine.create(function()
  1080. repeat
  1081. Swait()
  1082. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1083. until ATTACK == false
  1084. GYRO:Remove()
  1085. end))
  1086. local FIRING = true
  1087. local SHOOTING = false
  1088. local TIMER = 70
  1089. CreateSound(1498950813, HELDGUN, 6, 1, false)
  1090. for i = 0, 0.2, 0.1 / Animation_Speed do
  1091. Swait()
  1092. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed)
  1093. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed)
  1094. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1095. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1096. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1097. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1098. end
  1099. local MOUSE = Mouse.Button1Down:connect(function(NEWKEY)
  1100. if SHOOTING == false then
  1101. HOLD = true
  1102. repeat
  1103. SHOOTING = true
  1104. local GUNPOS = HELDGUN.CFrame * GUNOFFSET.p
  1105. local HIT, POS, NORMAL = CastProperRay(GUNPOS, Mouse.Hit.p, 1000, Character)
  1106. local DISTANCE = (POS - GUNPOS).Magnitude
  1107. if HIT then
  1108. if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  1109. if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then
  1110. HIT.CFrame = HIT.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  1111. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], HIT, 10, 1, false)
  1112. ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"), 99)
  1113. CreateFlyingDebree(HIT, CF(POS), 7, VT(0.1, 0.1, 0.1), 5, 35, true)
  1114. end
  1115. elseif HIT.Anchored == true then
  1116. CreateFlyingDebree(HIT, CF(POS), 7, VT(0.2, 0.2, 0.2), 5, 35, true)
  1117. end
  1118. end
  1119. SHAKECAM(GUNPOS, 8, 5, 3)
  1120. SHAKECAM(POS, 10, 6, 6)
  1121. WACKYEFFECT({
  1122. Time = 6,
  1123. EffectType = "Block",
  1124. Size = VT(2, 2, 2),
  1125. Size2 = VT(4, 4, 4),
  1126. Transparency = 0,
  1127. Transparency2 = 1,
  1128. CFrame = CF(GUNPOS),
  1129. MoveToPos = nil,
  1130. RotationX = 0,
  1131. RotationY = 0,
  1132. RotationZ = 0,
  1133. Material = "Neon",
  1134. Color = C3(1, 1, 0),
  1135. SoundID = 213603013,
  1136. SoundPitch = 0.9,
  1137. SoundVolume = 10
  1138. })
  1139. WACKYEFFECT({
  1140. Time = 6,
  1141. EffectType = "Box",
  1142. Size = VT(1.6, 1.6, DISTANCE),
  1143. Size2 = VT(0, 0, DISTANCE),
  1144. Transparency = 0,
  1145. Transparency2 = 1,
  1146. CFrame = CF(GUNPOS, POS) * CF(0, 0, -DISTANCE / 2),
  1147. MoveToPos = nil,
  1148. RotationX = 0,
  1149. RotationY = 0,
  1150. RotationZ = 0,
  1151. Material = "Neon",
  1152. Color = C3(1, 1, 0),
  1153. SoundID = nil,
  1154. SoundPitch = nil,
  1155. SoundVolume = nil
  1156. })
  1157. for i = 0, 0.3, 0.1 / Animation_Speed do
  1158. Swait()
  1159. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed)
  1160. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed)
  1161. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(100), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1162. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1163. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1164. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1165. end
  1166. for i = 0, 0.5, 0.1 / Animation_Speed do
  1167. Swait()
  1168. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed)
  1169. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed)
  1170. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1171. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1172. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1173. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1174. end
  1175. until HOLD == false
  1176. SHOOTING = false
  1177. end
  1178. end)
  1179. repeat
  1180. Swait()
  1181. if SHOOTING == false then
  1182. TIMER = TIMER - 1
  1183. if TIMER <= 0 then
  1184. FIRING = false
  1185. end
  1186. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed)
  1187. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed)
  1188. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1189. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1190. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1191. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1192. end
  1193. until FIRING == false and SHOOTING == false
  1194. MOUSE:Disconnect()
  1195. end
  1196. end
  1197. ATTACK = false
  1198. Rooted = false
  1199. end
  1200. function EquipGun()
  1201. ATTACK = true
  1202. Rooted = false
  1203. if EQUIPPED == false then
  1204. Chatter("Let's play dirty.", 0)
  1205. for i = 0, 0.3, 0.1 / Animation_Speed do
  1206. Swait()
  1207. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1208. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1209. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.4 * SIZE, 0.35 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(15), RAD(0), RAD(-75)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1210. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0.2 * SIZE) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1211. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1212. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1213. end
  1214. HELDGUN = FAKEGUN:Clone()
  1215. HELDGUN.Parent = Character
  1216. GUNWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HELDGUN, CF(0.3 * SIZE, -1.5 * SIZE, 0.1 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(-90)), CF(0, 0, 0))
  1217. FAKEGUN.Transparency = 1
  1218. CreateSound(1498950813, HELDGUN, 6, 1, false)
  1219. for i = 0, 0.3, 0.1 / Animation_Speed do
  1220. Swait()
  1221. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1222. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1223. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.5 * SIZE, 0.45 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(-35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1224. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.3 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1225. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1226. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1227. end
  1228. EQUIPPED = true
  1229. else
  1230. for i = 0, 0.3, 0.1 / Animation_Speed do
  1231. Swait()
  1232. GUNWELD.C1 = Clerp(GUNWELD.C1, CF(0, 0.5, 0) * ANGLES(RAD(65), RAD(-45), RAD(0)), 1 / Animation_Speed)
  1233. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1234. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1235. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.7 * SIZE, 0 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.1 * SIZE) * ANGLES(RAD(35), RAD(0), RAD(-75)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1236. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0.3 * SIZE) * ANGLES(RAD(-25), RAD(15), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1237. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1238. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1239. end
  1240. FAKEGUN.Transparency = 0
  1241. HELDGUN:remove()
  1242. HELDGUN = nil
  1243. EQUIPPED = false
  1244. end
  1245. ATTACK = false
  1246. Rooted = false
  1247. end
  1248. function BearTrap()
  1249. ATTACK = true
  1250. Rooted = false
  1251. coroutine.resume(coroutine.create(function()
  1252. repeat
  1253. Swait()
  1254. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-20), RAD(-25), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1255. until ATTACK == false
  1256. end))
  1257. for i = 0, 0.3, 0.1 / Animation_Speed do
  1258. Swait()
  1259. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1260. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1261. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.1 * SIZE, 0.25 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(30), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1262. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1263. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1264. end
  1265. local GYRO = IT("BodyGyro", RootPart)
  1266. GYRO.D = 2
  1267. GYRO.P = 20000
  1268. GYRO.MaxTorque = VT(0, 4000000, 0)
  1269. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1270. coroutine.resume(coroutine.create(function()
  1271. repeat
  1272. Swait()
  1273. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1274. until ATTACK == false
  1275. GYRO:Remove()
  1276. end))
  1277. FAKEBEARTRAP.Transparency = 1
  1278. HELDTRAP.Transparency = 0
  1279. for i = 0, 0.4, 0.1 / Animation_Speed do
  1280. Swait()
  1281. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1282. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1283. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1284. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1285. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1286. end
  1287. local TRAP = BEARTRAP:Clone()
  1288. TRAP.Parent = Effects
  1289. coroutine.resume(coroutine.create(function()
  1290. TRAP:SetPrimaryPartCFrame(HELDTRAP.CFrame)
  1291. local BASE = TRAP.PrimaryPart
  1292. local OPEN = TRAP.Open
  1293. local CLOSED = TRAP.Closed
  1294. CreateSound(147722227, BASE, 6, 1, false)
  1295. local DISTANCE = (BASE.Position - Mouse.Hit.p).Magnitude
  1296. BASE.Velocity = CF(BASE.Position - VT(0, 5, 0), Mouse.Hit.p).lookVector * (DISTANCE * 2)
  1297. wait(0.7)
  1298. BASE.Velocity = VT(0, 0, 0)
  1299. local ISCLOSED = false
  1300. for i = 1, 15 do
  1301. Swait()
  1302. BASE.CFrame = Clerp(BASE.CFrame, CF(BASE.Position + VT(0, 1, 0)), 0.4)
  1303. end
  1304. TOUCH = OPEN.Touched:Connect(function(HIT)
  1305. if HIT.Anchored == false and ISCLOSED == false and HIT.Parent:FindFirstChildOfClass("Humanoid") then
  1306. TOUCH:Disconnect()
  1307. ISCLOSED = true
  1308. OPEN.Anchored = true
  1309. OPEN.Transparency = 1
  1310. CLOSED.Transparency = 0
  1311. OPEN.CanCollide = false
  1312. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], HIT, 10, 1, false)
  1313. ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"), 60)
  1314. weldBetween(OPEN, HIT)
  1315. CreateSound(54061314, OPEN, 6, 1, false)
  1316. end
  1317. end)
  1318. wait(15)
  1319. TOUCH:Disconnect()
  1320. for i = 1, 45 do
  1321. Swait()
  1322. for _, e in pairs(TRAP:GetChildren()) do
  1323. if e:IsA("BasePart") then
  1324. e.Transparency = e.Transparency + 0.022222222222222223
  1325. end
  1326. end
  1327. end
  1328. TRAP:Remove()
  1329. end))
  1330. HELDTRAP.Transparency = 1
  1331. for i = 0, 0.3, 0.1 / Animation_Speed do
  1332. Swait()
  1333. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1334. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(5)), 1 / Animation_Speed)
  1335. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.2 * SIZE) * ANGLES(RAD(120), RAD(0), RAD(10)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1336. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1337. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(-5), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1338. end
  1339. FAKEBEARTRAP.Transparency = 0
  1340. ATTACK = false
  1341. Rooted = false
  1342. end
  1343. function HandGrenade()
  1344. ATTACK = true
  1345. Rooted = false
  1346. Chatter("How about a little fire?", 0)
  1347. coroutine.resume(coroutine.create(function()
  1348. repeat
  1349. Swait()
  1350. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.35 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0.2 * SIZE) * ANGLES(RAD(-20), RAD(-25), RAD(-3)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1351. until ATTACK == false
  1352. end))
  1353. local GYRO = IT("BodyGyro", RootPart)
  1354. GYRO.D = 2
  1355. GYRO.P = 20000
  1356. GYRO.MaxTorque = VT(0, 4000000, 0)
  1357. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1358. coroutine.resume(coroutine.create(function()
  1359. repeat
  1360. Swait()
  1361. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1362. until ATTACK == false
  1363. GYRO:Remove()
  1364. end))
  1365. for i = 0, 0.4, 0.1 / Animation_Speed do
  1366. Swait()
  1367. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1368. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1369. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-5), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1370. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1371. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1372. end
  1373. local NADE = GRENADE:Clone()
  1374. NADE.CFrame = LeftArm.CFrame * CF(0, -1.2 * SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(0))
  1375. NADE.Parent = Effects
  1376. CreateSound(326088041, NADE, 7, 1, false)
  1377. local WELD = weldBetween(LeftArm, NADE)
  1378. for i = 0, 0.7, 0.1 / Animation_Speed do
  1379. Swait()
  1380. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed)
  1381. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0 - 5 * COS(SINE / 24)), RAD(-5), RAD(-15)), 1 / Animation_Speed)
  1382. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(150), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1383. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1384. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1385. end
  1386. coroutine.resume(coroutine.create(function()
  1387. WELD:remove()
  1388. local DISTANCE = (NADE.Position - Mouse.Hit.p).Magnitude
  1389. if DISTANCE > 150 then
  1390. DISTANCE = 150
  1391. end
  1392. NADE.Velocity = CF(NADE.Position - VT(0, 5, 0), Mouse.Hit.p).lookVector * (DISTANCE * 2)
  1393. wait(0.2)
  1394. TOUCH = NADE.Touched:Connect(function()
  1395. TOUCH:Disconnect()
  1396. wait(0.5)
  1397. NADE.Anchored = true
  1398. NADE.Transparency = 1
  1399. NADE.CanCollide = false
  1400. local COLORS = {
  1401. C3(0.8862745098039215, 0.6078431372549019, 0.25098039215686274),
  1402. C3(1, 0, 0),
  1403. C3(0.9607843137254902, 0.803921568627451, 0.18823529411764706)
  1404. }
  1405. WACKYEFFECT({
  1406. Time = 66,
  1407. EffectType = "Sphere",
  1408. Size = VT(45, 45, 45),
  1409. Size2 = VT(450, 450, 450),
  1410. Transparency = 0.99,
  1411. Transparency2 = 1,
  1412. CFrame = CF(NADE.Position),
  1413. MoveToPos = nil,
  1414. RotationX = 0,
  1415. RotationY = 0,
  1416. RotationZ = 0,
  1417. Material = "Neon",
  1418. Color = C3(1, 1, 1),
  1419. SoundID = nil,
  1420. SoundPitch = nil,
  1421. SoundVolume = nil
  1422. })
  1423. for i = 1, 45 do
  1424. WACKYEFFECT({
  1425. Time = MRANDOM(10, 60),
  1426. EffectType = "Sphere",
  1427. Size = VT(45, 45, 45) * MRANDOM(5, 12) / 10,
  1428. Size2 = VT(65, 65, 65) * MRANDOM(5, 22) / 10,
  1429. Transparency = 0,
  1430. Transparency2 = 1,
  1431. CFrame = CF(NADE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 15, 0),
  1432. MoveToPos = nil,
  1433. RotationX = 0,
  1434. RotationY = 0,
  1435. RotationZ = 0,
  1436. Material = "Neon",
  1437. Color = COLORS[MRANDOM(1, #COLORS)],
  1438. SoundID = nil,
  1439. SoundPitch = nil,
  1440. SoundVolume = nil
  1441. })
  1442. end
  1443. ApplyAoE(NADE.Position, 75, 35, 80, 145, false)
  1444. SHAKECAM(NADE.Position, 160, 12, 25)
  1445. CreateSound(174580476, NADE, 10, 1, false)
  1446. CreateSound(165970126, NADE, 6, 1, false)
  1447. Debris:AddItem(NADE, 10)
  1448. end)
  1449. end))
  1450. for i = 0, 0.3, 0.1 / Animation_Speed do
  1451. Swait()
  1452. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed)
  1453. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(0 - 5 * COS(SINE / 24)), RAD(-5), RAD(15)), 1 / Animation_Speed)
  1454. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.2 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(10)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1455. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1456. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(-5), RAD(-80), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1457. end
  1458. ATTACK = false
  1459. Rooted = false
  1460. end
  1461. function AttackTemplate()
  1462. ATTACK = true
  1463. Rooted = false
  1464. for i = 0, 1, 0.1 / Animation_Speed do
  1465. Swait()
  1466. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1467. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1468. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1469. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1470. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1471. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1472. end
  1473. ATTACK = false
  1474. Rooted = false
  1475. end
  1476. function MouseDown(Mouse)
  1477. if ATTACK == false then
  1478. Fury()
  1479. end
  1480. end
  1481. function MouseUp(Mouse)
  1482. HOLD = false
  1483. end
  1484. function KeyDown(Key)
  1485. KEYHOLD = true
  1486. if Key == "f" and ATTACK == false then
  1487. EquipGun()
  1488. end
  1489. if Key == "c" and ATTACK == false then
  1490. BearTrap()
  1491. end
  1492. if Key == "v" and ATTACK == false then
  1493. HandGrenade()
  1494. end
  1495. if Key ~= "x" or ATTACK == false then
  1496. end
  1497. end
  1498. function KeyUp(Key)
  1499. KEYHOLD = false
  1500. end
  1501. Mouse.Button1Down:connect(function(NEWKEY)
  1502. MouseDown(NEWKEY)
  1503. end)
  1504. Mouse.Button1Up:connect(function(NEWKEY)
  1505. MouseUp(NEWKEY)
  1506. end)
  1507. Mouse.KeyDown:connect(function(NEWKEY)
  1508. KeyDown(NEWKEY)
  1509. end)
  1510. Mouse.KeyUp:connect(function(NEWKEY)
  1511. KeyUp(NEWKEY)
  1512. end)
  1513. function unanchor()
  1514. for _, c in pairs(Character:GetChildren()) do
  1515. if c:IsA("BasePart") and c ~= RootPart then
  1516. c.Anchored = false
  1517. end
  1518. end
  1519. if UNANCHOR == true then
  1520. RootPart.Anchored = false
  1521. else
  1522. RootPart.Anchored = true
  1523. end
  1524. end
  1525. Humanoid.Changed:connect(function(Jump)
  1526. if Jump == "Jump" and Disable_Jump == true then
  1527. Humanoid.Jump = false
  1528. end
  1529. end)
  1530. while true do
  1531. Swait()
  1532. script.Parent = WEAPONGUI
  1533. ANIMATE.Parent = nil
  1534. for _, v in next, Humanoid:GetPlayingAnimationTracks() do
  1535. v:Stop()
  1536. end
  1537. SINE = SINE + CHANGE
  1538. Humanoid.HipHeight = 0.4
  1539. Humanoid.JumpPower = 150
  1540. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1541. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1542. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * SIZE, Character)
  1543. local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
  1544. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1545. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1546. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5 * SIZE, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1547. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * SIZE, 0.885 * SIZE - 0.125 * SIZE * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), 0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1548. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * SIZE, 0.885 * SIZE + 0.125 * SIZE * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2), 0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35 * COS(SINE / WALKSPEEDVALUE))), 0.6 / Animation_Speed)
  1549. elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
  1550. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1551. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5 * SIZE, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1552. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * SIZE, 1 * SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1553. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * SIZE, 1 * SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1554. end
  1555. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1556. ANIM = "Jump"
  1557. if ATTACK == false then
  1558. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1559. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1560. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1561. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1562. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, -0.3 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed)
  1563. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, -0.3 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed)
  1564. end
  1565. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1566. ANIM = "Fall"
  1567. if ATTACK == false then
  1568. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1569. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1570. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-10), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1571. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-10), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1572. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.8 * SIZE, -0.3 * SIZE) * ANGLES(RAD(-25), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed)
  1573. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed)
  1574. end
  1575. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1576. ANIM = "Idle"
  1577. if ATTACK == false then
  1578. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1579. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(10 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed)
  1580. if EQUIPPED == false then
  1581. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * SIZE, 0.55 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.75 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1582. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * SIZE, 0.25 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1583. else
  1584. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * SIZE, 0.5 * SIZE, -0.5 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1585. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * SIZE, 0.5 * SIZE, -0.8 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(50)) * CF(0, 0.1 * SIZE, 0) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1586. end
  1587. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1588. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed)
  1589. end
  1590. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1591. ANIM = "Walk"
  1592. if ATTACK == false then
  1593. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, -0.1 * SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1594. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1595. if EQUIPPED == false then
  1596. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * SIZE, 0.55 * SIZE + 0.05 * SIZE * COS(SINE / (WALKSPEEDVALUE / 2)), -0.75 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(-90)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1597. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * SIZE, 0.25 * SIZE + 0.05 * SIZE * COS(SINE / (WALKSPEEDVALUE / 2)), -0.5 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1598. else
  1599. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * SIZE, 0.5 * SIZE + 0.05 * SIZE * COS(SINE / (WALKSPEEDVALUE / 2)), -0.5 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1600. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * SIZE, 0.5 * SIZE + 0.05 * SIZE * COS(SINE / (WALKSPEEDVALUE / 2)), -0.8 * SIZE) * ANGLES(RAD(45), RAD(0), RAD(50)) * CF(0, 0.1 * SIZE, 0) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1601. end
  1602. RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1603. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1604. end
  1605. end
  1606. for E = 1, #TAIL do
  1607. TAIL[E].C1 = Clerp(TAIL[E].C1, CF(0, 0, 0) * ANGLES(RAD(-2 * COS(SINE / 48) + 1 * SIN(SINE / 12)), RAD(0), RAD(1 * SIN(SINE / 24))), 1 / Animation_Speed)
  1608. end
  1609. unanchor()
  1610. Humanoid.MaxHealth = 1000
  1611. Humanoid.Health = 1000
  1612. if Rooted == false then
  1613. Disable_Jump = false
  1614. Humanoid.WalkSpeed = Speed
  1615. elseif Rooted == true then
  1616. Disable_Jump = true
  1617. Humanoid.WalkSpeed = 0
  1618. end
  1619. for _, c in pairs(Character:GetChildren()) do
  1620. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1621. c.Material = "Granite"
  1622. if c:FindFirstChildOfClass("ParticleEmitter") then
  1623. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1624. end
  1625. c.Color = C3(0.3137254901960784, 0.2627450980392157, 0.2627450980392157)
  1626. if c == Head and c:FindFirstChild("face") then
  1627. c.face:remove()
  1628. end
  1629. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1630. c:remove()
  1631. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1632. c:remove()
  1633. end
  1634. end
  1635. Humanoid.DisplayDistanceType = "None"
  1636. Humanoid.Name = "NONHUM"
  1637. if sick.Parent ~= Character then
  1638. sick = IT("Sound", Character)
  1639. end
  1640. sick.SoundId = "rbxassetid://737063244"
  1641. sick.Looped = true
  1642. sick.Pitch = 0.9
  1643. sick.Volume = 3
  1644. sick.Playing = true
  1645. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement