Advertisement
Fullgamer309

Untitled

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