carlosname

Untitled

Nov 10th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86. local h,t
  87. --Give the server mouse data every second frame, but only if the values changed
  88. --If player is not moving their mouse, client won't fire events
  89. local HB = game:GetService("RunService").Heartbeat
  90. while true do
  91. if h~=Mouse.Hit or t~=Mouse.Target then
  92. h,t=Mouse.Hit,Mouse.Target
  93. Event:FireServer({isMouse=true,Target=t,Hit=h})
  94. end
  95. --Wait 2 frames
  96. for i=1,2 do
  97. HB:Wait()
  98. end
  99. end]==],script)
  100.  
  101. ----Sandboxed game object that allows the usage of client-side methods and services
  102. --Real game object
  103. local RealGame = game
  104.  
  105. --Metatable for fake service
  106. local FakeService_Metatable = {
  107. __index = function(self,k)
  108. local s = rawget(self,"_RealService")
  109. if s then
  110. return typeof(s[k])=="function"
  111. and function(_,...)return s[k](s,...)end or s[k]
  112. end
  113. end,
  114. __newindex = function(self,k,v)
  115. local s = rawget(self,"_RealService")
  116. if s then s[k]=v end
  117. end
  118. }
  119. local function FakeService(t,RealService)
  120. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121. return setmetatable(t,FakeService_Metatable)
  122. end
  123.  
  124. --Fake game object
  125. local FakeGame = {
  126. GetService = function(self,s)
  127. return rawget(self,s) or RealGame:GetService(s)
  128. end,
  129. Players = FakeService({
  130. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131. },"Players"),
  132. UserInputService = FakeService(UIS,"UserInputService"),
  133. ContextActionService = FakeService(CAS,"ContextActionService"),
  134. RunService = FakeService({
  135. _btrs = {},
  136. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137. BindToRenderStep = function(self,name,_,fun)
  138. self._btrs[name] = self.Heartbeat:Connect(fun)
  139. end,
  140. UnbindFromRenderStep = function(self,name)
  141. self._btrs[name]:Disconnect()
  142. end,
  143. },"RunService")
  144. }
  145. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146. FakeGame.service = FakeGame.GetService
  147. FakeService(FakeGame,game)
  148. --Changing owner to fake player object to support owner:GetMouse()
  149. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151.  
  152.  
  153. wait(0.2)
  154. local Player, Character, Mouse = game:service("Players").LocalPlayer, game:GetService("Players").LocalPlayer.Character, game:GetService("Players").LocalPlayer:GetMouse()
  155. local Torso = Character:FindFirstChild("Torso")
  156. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  157. local Humanoid = Character:FindFirstChild("Humanoid")
  158. local Head = Character:FindFirstChild("Head")
  159. local Right_Arm = Character:FindFirstChild("Right Arm")
  160. local Left_Arm = Character:FindFirstChild("Left Arm")
  161. local Right_Leg = Character:FindFirstChild("Right Leg")
  162. local Left_Leg = Character:FindFirstChild("Left Leg")
  163. local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
  164. local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
  165. local Right_Hip = Torso:FindFirstChild("Right Hip")
  166. local Left_Hip = Torso:FindFirstChild("Left Hip")
  167. local Neck = Torso:FindFirstChild("Neck")
  168. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  169. local rootJoint = rootPart:FindFirstChild("RootJoint")
  170. local CurrentIdle = "Idling1"
  171. local Degree = 0.0175438596491228
  172. local canremove = false
  173. local debounce = false
  174. local UIService = game:GetService("UserInputService")
  175. _G.SongName = math.random(1, 9025232)
  176. sin = math.sin
  177. Right_Leg.FormFactor = "Custom"
  178. Left_Leg.FormFactor = "Custom"
  179. rootPart.Archivable = true
  180. rootJoint.Archivable = true
  181. c_new = CFrame.new
  182. c_angles = CFrame.Angles
  183. i_new = Instance.new
  184. Humanoid:ClearAllChildren()
  185. local isAttacking = false
  186. local isSprinting = false
  187. local Animations = false
  188. local Angle = 0
  189. local Axis = 0
  190. local angleSpeed = 1
  191. local axisSpeed = angleSpeed
  192. local currentAnim
  193. local levetatingheight = 3
  194. local WalkType = "Ground"
  195. local RateP = 20
  196. function CreateParticle(parent)
  197. local Particle = Instance.new("ParticleEmitter", parent)
  198. Particle.Enabled = true
  199. Particle.Transparency = NumberSequence.new({
  200. NumberSequenceKeypoint.new(0, 1),
  201. NumberSequenceKeypoint.new(0.3, 0.95),
  202. NumberSequenceKeypoint.new(1, 1)
  203. })
  204. Particle.LightEmission = -3
  205. Particle.Rate = RateP
  206. Particle.ZOffset = 1
  207. Particle.Lifetime = NumberRange.new(0.5)
  208. Particle.Speed = NumberRange.new(1)
  209. Particle.Size = NumberSequence.new({
  210. NumberSequenceKeypoint.new(0, 0.5, 0.3),
  211. NumberSequenceKeypoint.new(1, 1, 0.1)
  212. })
  213. Particle.Rotation = NumberRange.new(-180, 180)
  214. Particle.RotSpeed = NumberRange.new(-180, 180)
  215. Particle.Texture = "http://www.roblox.com/asset/?id=303194966"
  216. Particle.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  217. Particle.VelocitySpread = 360
  218. Particle.LockedToPart = false
  219. end
  220. CreateParticle(Torso)
  221. CreateParticle(Right_Arm)
  222. CreateParticle(Left_Arm)
  223. CreateParticle(Right_Leg)
  224. CreateParticle(Left_Leg)
  225. function CreateParticle2(parent)
  226. local Particle = Instance.new("ParticleEmitter", parent)
  227. Particle.Enabled = true
  228. Particle.Transparency = NumberSequence.new({
  229. NumberSequenceKeypoint.new(0, 1),
  230. NumberSequenceKeypoint.new(0.3, 0.95),
  231. NumberSequenceKeypoint.new(1, 1)
  232. })
  233. Particle.LightEmission = -3
  234. Particle.Rate = RateP
  235. Particle.ZOffset = 1
  236. Particle.Lifetime = NumberRange.new(0.5)
  237. Particle.Speed = NumberRange.new(1)
  238. Particle.Size = NumberSequence.new({
  239. NumberSequenceKeypoint.new(0, 0.5, 0.3),
  240. NumberSequenceKeypoint.new(1, 1, 0.1)
  241. })
  242. Particle.Rotation = NumberRange.new(-180, 180)
  243. Particle.RotSpeed = NumberRange.new(-180, 180)
  244. Particle.Texture = "http://www.roblox.com/asset/?id=303195022"
  245. Particle.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  246. Particle.VelocitySpread = 360
  247. Particle.LockedToPart = false
  248. end
  249. CreateParticle2(Torso)
  250. CreateParticle2(Right_Arm)
  251. CreateParticle2(Left_Arm)
  252. CreateParticle2(Right_Leg)
  253. CreateParticle2(Left_Leg)
  254. function CreateParticle3(parent)
  255. local Particle = Instance.new("ParticleEmitter", parent)
  256. Particle.Enabled = true
  257. Particle.Transparency = NumberSequence.new({
  258. NumberSequenceKeypoint.new(0, 1),
  259. NumberSequenceKeypoint.new(0.3, 0.95),
  260. NumberSequenceKeypoint.new(1, 1)
  261. })
  262. Particle.LightEmission = -3
  263. Particle.Rate = RateP
  264. Particle.ZOffset = 1
  265. Particle.Lifetime = NumberRange.new(0.5)
  266. Particle.Speed = NumberRange.new(1)
  267. Particle.Size = NumberSequence.new({
  268. NumberSequenceKeypoint.new(0, 0.5, 0.3),
  269. NumberSequenceKeypoint.new(1, 1, 0.1)
  270. })
  271. Particle.Rotation = NumberRange.new(-180, 180)
  272. Particle.RotSpeed = NumberRange.new(-180, 180)
  273. Particle.Texture = "http://www.roblox.com/asset/?id=303195000"
  274. Particle.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  275. Particle.VelocitySpread = 360
  276. Particle.LockedToPart = false
  277. end
  278. CreateParticle3(Torso)
  279. CreateParticle3(Right_Arm)
  280. CreateParticle3(Left_Arm)
  281. CreateParticle3(Right_Leg)
  282. CreateParticle3(Left_Leg)
  283. function CreateParticle4(parent)
  284. local Particle = Instance.new("ParticleEmitter", parent)
  285. Particle.Enabled = true
  286. Particle.Transparency = NumberSequence.new({
  287. NumberSequenceKeypoint.new(0, 1),
  288. NumberSequenceKeypoint.new(0.3, 0.95),
  289. NumberSequenceKeypoint.new(1, 1)
  290. })
  291. Particle.LightEmission = -3
  292. Particle.Rate = RateP
  293. Particle.ZOffset = 1
  294. Particle.Lifetime = NumberRange.new(0.5)
  295. Particle.Speed = NumberRange.new(1)
  296. Particle.Size = NumberSequence.new({
  297. NumberSequenceKeypoint.new(0, 0.5, 0.3),
  298. NumberSequenceKeypoint.new(1, 1, 0.1)
  299. })
  300. Particle.Rotation = NumberRange.new(-180, 180)
  301. Particle.RotSpeed = NumberRange.new(-180, 180)
  302. Particle.Texture = "http://www.roblox.com/asset/?id=303194917"
  303. Particle.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  304. Particle.VelocitySpread = 360
  305. Particle.LockedToPart = false
  306. end
  307. CreateParticle4(Torso)
  308. CreateParticle4(Right_Arm)
  309. CreateParticle4(Left_Arm)
  310. CreateParticle4(Right_Leg)
  311. CreateParticle4(Left_Leg)
  312. function Sound(parent, loop, vol, id)
  313. local s = Instance.new("Sound", parent)
  314. s.Looped = loop
  315. s.Volume = vol
  316. s.MaxDistance = 200
  317. s.EmitterSize = 20
  318. s.SoundId = "rbxassetid://" .. tostring(id)
  319. s:Play()
  320. if loop == false then
  321. wait(s.TimeLength)
  322. s:Destroy()
  323. end
  324. end
  325. Theme = Instance.new("Sound")
  326. Theme.Parent = Character
  327. Theme.SoundId = "rbxassetid://193889412"
  328. Theme.Volume = 10
  329. Theme.Looped = true
  330. Theme.Pitch = 1
  331. Theme:Play()
  332. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  333. wld = Instance.new("Weld", wp1)
  334. wld.Part0 = wp0
  335. wld.Part1 = wp1
  336. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  337. return wld
  338. end
  339. function noOutline(part)
  340. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  341. end
  342. local Part = function(Name, Color, Material, Transparency, Shape, Size, CFrame, CanCollide, Anchored, parent)
  343. local partie = i_new("Part", parent)
  344. partie.Name = Name
  345. partie.BrickColor = BrickColor.new(Color)
  346. partie.Material = Material
  347. partie.Shape = Shape
  348. partie.Transparency = Transparency
  349. partie.Size = Size
  350. partie.CFrame = CFrame
  351. partie.CanCollide = CanCollide
  352. partie.Anchored = Anchored
  353. return partie
  354. end
  355. function swait(num)
  356. if num == 0 or num == nil then
  357. game:GetService("RunService").Stepped:wait(0)
  358. else
  359. for i = 0, num do
  360. game:GetService("RunService").Stepped:wait(0)
  361. end
  362. end
  363. end
  364. coroutine.wrap(function()
  365. while true do
  366. Humanoid.MaxHealth = "inf"
  367. Humanoid.Health = "inf"
  368. wait(0.01)
  369. end
  370. end)()
  371. coroutine.wrap(function()
  372. while true do
  373. Humanoid.MaxHealth = "inf"
  374. Humanoid.Health = "inf"
  375. wait()
  376. end
  377. end)()
  378. coroutine.wrap(function()
  379. while true do
  380. Humanoid.MaxHealth = "inf"
  381. Humanoid.Health = "inf"
  382. swait()
  383. end
  384. end)()
  385. coroutine.wrap(function()
  386. while true do
  387. Humanoid.MaxHealth = "inf"
  388. Humanoid.Health = "inf"
  389. swait(1)
  390. end
  391. end)()
  392. Player.Character.Archivable = true
  393. Instance.new("ForceField", Player.Character).Visible = false
  394. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  395. local mesh = i_new(Mesh)
  396. mesh.Parent = part
  397. if Mesh == "SpecialMesh" then
  398. mesh.MeshType = meshtype
  399. mesh.MeshId = meshid
  400. end
  401. mesh.Offset = offset
  402. mesh.Scale = scale
  403. return mesh
  404. end
  405. local Hair = Instance.new("Part", Head)
  406. Hair.Name = "Hair"
  407. Hair.Shape = Enum.PartType.Ball
  408. Hair.CanCollide = false
  409. Hair.BrickColor = BrickColor.new("Medium stone grey")
  410. Hair.Transparency = 0
  411. Hair.Material = "Grass"
  412. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  413. Hair.TopSurface = Enum.SurfaceType.Smooth
  414. Hair.BottomSurface = Enum.SurfaceType.Smooth
  415. local Weld = Instance.new("Weld", Hair)
  416. Weld.Part0 = Head
  417. Weld.Part1 = Hair
  418. Weld.C1 = CFrame.new(0, -0.5, 0)
  419. HoodMesh = Instance.new("FileMesh", Hair)
  420. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=74879498"
  421. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=75977308"
  422. HoodMesh.Scale = Vector3.new(1.05, 1.1, 1.1)
  423. local Shades = Instance.new("Part", Head)
  424. Shades.Name = "Shades"
  425. Shades.Shape = Enum.PartType.Ball
  426. Shades.CanCollide = false
  427. Shades.BrickColor = BrickColor.new("Medium stone grey")
  428. Shades.Transparency = 0
  429. Shades.Material = "Grass"
  430. Shades.Size = Vector3.new(0.1, 0.1, 0.1)
  431. Shades.TopSurface = Enum.SurfaceType.Smooth
  432. Shades.BottomSurface = Enum.SurfaceType.Smooth
  433. local Weld = Instance.new("Weld", Shades)
  434. Weld.Part0 = Head
  435. Weld.Part1 = Shades
  436. Weld.C1 = CFrame.new(0, -0.2, 0.15)
  437. ShadesMesh = Instance.new("FileMesh", Shades)
  438. ShadesMesh.MeshId = "http://www.roblox.com/asset/?id=51177557"
  439. ShadesMesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  440. ShadesMesh.Scale = Vector3.new(1, 1, 1)
  441. local GunModel = Instance.new("Part", game.Workspace.CurrentCamera)
  442. GunModel.Name = "Pistol"
  443. GunModel.Shape = Enum.PartType.Ball
  444. GunModel.CanCollide = false
  445. GunModel.BrickColor = BrickColor.new("Medium stone grey")
  446. GunModel.Transparency = 1
  447. GunModel.Material = "Grass"
  448. GunModel.Size = Vector3.new(0.01, 0.01, 0.01)
  449. GunModel.TopSurface = Enum.SurfaceType.Smooth
  450. GunModel.BottomSurface = Enum.SurfaceType.Smooth
  451. local Weld = Instance.new("Weld", GunModel)
  452. Weld.Part0 = Right_Arm
  453. Weld.Part1 = GunModel
  454. Weld.C1 = CFrame.new(0, -0.3, -1.4) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(180))
  455. GunModelMesh = Instance.new("FileMesh", GunModel)
  456. GunModelMesh.MeshId = "http://www.roblox.com/asset/?id=441587064"
  457. GunModelMesh.TextureId = "http://www.roblox.com/asset/?id=441587082"
  458. GunModelMesh.Scale = Vector3.new(0.035, 0.02, 0.02)
  459. BE = Instance.new("Part", GunModel)
  460. BE.Anchored = false
  461. BE.CanCollide = false
  462. BE.Transparency = 1
  463. BE.Size = Vector3.new(0.1, 0.1, 0.1)
  464. Eweld = Instance.new("Weld", BE)
  465. Eweld.Part0 = BE
  466. Eweld.Part1 = GunModel
  467. Eweld.C0 = CFrame.new(0, -0.3, -1)
  468. BEX = Instance.new("Part", GunModel)
  469. BEX.Anchored = false
  470. BEX.CanCollide = false
  471. BEX.Transparency = 1
  472. BEX.Size = Vector3.new(0.1, 0.1, 0.1)
  473. EXweld = Instance.new("Weld", BEX)
  474. EXweld.Part0 = BEX
  475. EXweld.Part1 = GunModel
  476. EXweld.C0 = CFrame.new(0, -0.3, 0.05)
  477. local Effects = Instance.new("Folder", Character)
  478. Effects.Name = "Effects"
  479. Debris = game:GetService("Debris")
  480. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  481. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  482. end
  483. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  484. local DIRECTION = CFrame.new(StartPos, EndPos).lookVector
  485. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  486. end
  487. function MakeForm(PART, TYPE)
  488. if TYPE == "Cyl" then
  489. local MSH = Instance.new("CylinderMesh", PART)
  490. elseif TYPE == "Ball" then
  491. local MSH = Instance.new("SpecialMesh", PART)
  492. MSH.MeshType = "Sphere"
  493. elseif TYPE == "Wedge" then
  494. local MSH = Instance.new("SpecialMesh", PART)
  495. MSH.MeshType = "Wedge"
  496. end
  497. end
  498. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  499. local NEWPART = Instance.new("Part")
  500. NEWPART.formFactor = FORMFACTOR
  501. NEWPART.Reflectance = REFLECTANCE
  502. NEWPART.Transparency = TRANSPARENCY
  503. NEWPART.CanCollide = false
  504. NEWPART.Locked = true
  505. NEWPART.Anchored = true
  506. if ANCHOR == false then
  507. NEWPART.Anchored = false
  508. end
  509. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  510. NEWPART.Name = NAME
  511. NEWPART.Size = SIZE
  512. NEWPART.Position = Torso.Position
  513. NEWPART.Material = MATERIAL
  514. NEWPART:BreakJoints()
  515. NEWPART.Parent = PARENT
  516. return NEWPART
  517. end
  518. Blood = Instance.new("ParticleEmitter")
  519. Blood.Parent = nil
  520. Blood.Rate = 20
  521. Blood.Speed = NumberRange.new(7)
  522. Blood.VelocitySpread = 40
  523. Blood.Lifetime = NumberRange.new(0.1, 1)
  524. Blood.Texture = "rbxassetid://291880914"
  525. Blood.Color = ColorSequence.new(Color3.new(0.2, 0, 0), Color3.new(0, 0, 0))
  526. Blood.Acceleration = Vector3.new(0, -50, 0)
  527. Blood.Size = NumberSequence.new({
  528. NumberSequenceKeypoint.new(0, 0.5, 0.1),
  529. NumberSequenceKeypoint.new(1, 0.01, 0.01)
  530. })
  531. Blood.RotSpeed = NumberRange.new(-180, 180)
  532. Blood.Rotation = NumberRange.new(-360, 360)
  533. Blood.Transparency = NumberSequence.new({
  534. NumberSequenceKeypoint.new(0, 1),
  535. NumberSequenceKeypoint.new(0.2, 0),
  536. NumberSequenceKeypoint.new(0.8, 0),
  537. NumberSequenceKeypoint.new(1, 1)
  538. })
  539. local B = Instance.new("Sound")
  540. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  541. local NEWSOUND
  542. coroutine.resume(coroutine.create(function()
  543. NEWSOUND = B:Clone()
  544. NEWSOUND.Parent = PARENT
  545. NEWSOUND.Volume = VOLUME
  546. NEWSOUND.Pitch = PITCH
  547. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  548. NEWSOUND:play()
  549. if DOESLOOP == true then
  550. NEWSOUND.Looped = true
  551. else
  552. repeat
  553. wait(1)
  554. until NEWSOUND.Playing == false
  555. NEWSOUND:remove()
  556. end
  557. end))
  558. return NEWSOUND
  559. end
  560. function getbloody(victim, amount)
  561. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  562. PART.CFrame = victim.CFrame
  563. local HITPLAYERSOUNDS = {
  564. "883201004",
  565. "883201111",
  566. "883201193",
  567. "883201270"
  568. }
  569. Debris:AddItem(PART, 5)
  570. CreateSound(HITPLAYERSOUNDS[math.random(1, #HITPLAYERSOUNDS)], PART, 1, math.random(8, 12) / 10)
  571. CreateSound(HITPLAYERSOUNDS[math.random(1, #HITPLAYERSOUNDS)], PART, 1, math.random(8, 12) / 10)
  572. CreateSound(HITPLAYERSOUNDS[math.random(1, #HITPLAYERSOUNDS)], PART, 1, math.random(8, 12) / 10)
  573. local prtcl = Blood:Clone()
  574. prtcl.Parent = PART
  575. prtcl:Emit(amount * 10)
  576. end
  577. function SpawnTrail(FROM, TO, BIG)
  578. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Deep orange", "Trail", Vector3.new(0, 0, 0))
  579. MakeForm(TRAIL, "Cyl")
  580. local DIST = (FROM - TO).Magnitude
  581. if BIG == true then
  582. TRAIL.Size = Vector3.new(0.5, DIST, 0.5)
  583. else
  584. TRAIL.Size = Vector3.new(0.25, DIST, 0.25)
  585. end
  586. TRAIL.CFrame = CFrame.new(FROM, TO) * CFrame.new(0, 0, -DIST / 2) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(0))
  587. coroutine.resume(coroutine.create(function()
  588. for i = 1, 5 do
  589. swait()
  590. TRAIL.Transparency = TRAIL.Transparency + 0.1
  591. end
  592. TRAIL:remove()
  593. end))
  594. end
  595. function Kill(Char)
  596. local NewCharacter = Instance.new("Model", Effects)
  597. NewCharacter.Name = "Ow im ded ;-;"
  598. for _, c in pairs(Char:GetDescendants()) do
  599. if c:IsA("BasePart") and c.Transparency == 0 then
  600. if c.Parent == Char then
  601. getbloody(c, 5)
  602. end
  603. c:BreakJoints()
  604. c.Material = "Glass"
  605. c.Color = Color3.new(0.5, 0, 0)
  606. c.CanCollide = true
  607. c.Transparency = 0.3
  608. if c:FindFirstChildOfClass("SpecialMesh") then
  609. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  610. end
  611. if c.Name == "Head" then
  612. c:ClearAllChildren()
  613. c.Size = Vector3.new(c.Size.Y, c.Size.Y, c.Size.Y)
  614. end
  615. if c.ClassName == "MeshPart" then
  616. c.TextureID = ""
  617. end
  618. if c:FindFirstChildOfClass("BodyPosition") then
  619. c:FindFirstChildOfClass("BodyPosition"):remove()
  620. end
  621. if c:FindFirstChildOfClass("ParticleEmitter") then
  622. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  623. end
  624. c.Parent = NewCharacter
  625. c.Name = "DeadPart"
  626. c.Velocity = Vector3.new(math.random(-45, 45), math.random(-45, 45), math.random(-45, 45)) / 15
  627. c.RotVelocity = Vector3.new(math.random(-45, 45), math.random(-15, 85), math.random(-45, 45))
  628. end
  629. end
  630. Char:remove()
  631. Debris:AddItem(NewCharacter, 5)
  632. end
  633. function BulletDetection(FROM, TO, BRUTAL)
  634. local AIMHIT, AIMPOS, NORMAL = CastProperRay(FROM, TO, 2000, Character)
  635. coroutine.resume(coroutine.create(function()
  636. if AIMHIT ~= nil and AIMHIT.Parent ~= Character and (AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid")) then
  637. if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
  638. if BRUTAL == true then
  639. Kill(AIMHIT.Parent)
  640. else
  641. getbloody(AIMHIT, 15)
  642. AIMHIT.Parent:BreakJoints()
  643. if AIMHIT.Name == "Head" or AIMHIT:IsA("Hat") or AIMHIT.Name == "Torso" or AIMHIT.Name == "HumanoidRootPart" or AIMHIT.Name == "Right Arm" or AIMHIT.Name == "Left Arm" or AIMHIT.Name == "Right Leg" or AIMHIT.Name == "Left Leg" or AIMHIT.Name == "UpperTorso" or AIMHIT.Name == "UpperTorso" or AIMHIT.Name == "LowerTorso" or AIMHIT.Name == "RightUpperArm" or AIMHIT.Name == "RightLowerArm" or AIMHIT.Name == "RightHand" or AIMHIT.Name == "LeftUpperArm" or AIMHIT.Name == "LeftLowerArm" or AIMHIT.Name == "LeftHand" or AIMHIT.Name == "RightUpperLeg" or AIMHIT.Name == "RightLowerLeg" or AIMHIT.Name == "RightFoot" or AIMHIT.Name == "LeftUpperLeg" or AIMHIT.Name == "LeftLowerLeg" or AIMHIT.Name == "LeftFoot" then
  644. AIMHIT.Name = "Dead"
  645. AIMHIT:remove()
  646. end
  647. end
  648. elseif BRUTAL == true then
  649. Kill(AIMHIT.Parent.Parent)
  650. else
  651. AIMHIT.Parent.Parent:BreakJoints()
  652. end
  653. end
  654. end))
  655. SpawnTrail(FROM, AIMPOS)
  656. return AIMHIT, AIMPOS, NORMAL
  657. end
  658. function round(num)
  659. local a, b = math.modf(num)
  660. if num % 1 ~= 0 then
  661. return math.floor(num) + math.floor(b * 10 + 0.5) / 10
  662. else
  663. return math.floor(num)
  664. end
  665. end
  666. function basicDamage(vhum, damage, colour)
  667. if not (vhum and vhum.Parent:findFirstChild("Humanoid")) or vhum.Health <= 0 then
  668. return
  669. end
  670. vhum.Health = vhum.Health - damage
  671. local damagepart = Instance.new("Part", Effects)
  672. damagepart.Transparency = 1
  673. damagepart.Anchored = true
  674. damagepart.CanCollide = false
  675. damagepart.Size = Vector3.new(0, 0, 0)
  676. damagepart.Name = "DamagePart"
  677. damagepart.CFrame = vhum.Parent.Head.CFrame * CFrame.new(0, 1, 0)
  678. local g = Instance.new("BillboardGui", damagepart)
  679. g.Enabled = true
  680. g.Adornee = damagepart
  681. g.Size = UDim2.new(5, 0, 5, 0)
  682. g.ExtentsOffset = Vector3.new(0, 0, 0)
  683. g.StudsOffset = Vector3.new(0, 0, 0)
  684. local t = Instance.new("TextLabel", g)
  685. t.BackgroundTransparency = 1
  686. t.Font = "ArialBold"
  687. t.TextSize = 24
  688. t.Text = "" .. round(damage)
  689. if round(damage) % 1 == 0 then
  690. t.Text = "" .. round(damage) .. ""
  691. end
  692. t.Size = UDim2.new(1, 0, 1, 0)
  693. t.TextStrokeTransparency = 0
  694. t.TextTransparency = 0
  695. t.Font = "Arcade"
  696. t.TextScaled = true
  697. t.TextWrapped = true
  698. t.TextXAlignment = "Center"
  699. t.TextYAlignment = "Center"
  700. t.TextColor3 = colour
  701. coroutine.resume(coroutine.create(function()
  702. for i = 1, 50 do
  703. game:GetService("RunService").Heartbeat:wait()
  704. local sinewave = math.sin(i / 500) * 4
  705. damagepart.CFrame = damagepart.CFrame * CFrame.new(Vector3.new(0, 0.3 - sinewave, 0))
  706. t.TextTransparency = t.TextTransparency + 0.02
  707. t.TextStrokeTransparency = t.TextTransparency + 0.02
  708. end
  709. damagepart:Destroy()
  710. end), t)
  711. end
  712. function Trace()
  713. local ch = Character:GetChildren()
  714. for i = 1, #ch do
  715. if ch[i].ClassName == "Part" and ch[i].Name ~= "HumanoidRootPart" then
  716. do
  717. local trace = Instance.new("Part", game.Workspace)
  718. trace.Size = ch[i].Size
  719. trace.Material = "Neon"
  720. trace.BrickColor = BrickColor.new("Really black")
  721. trace.Transparency = 0.3
  722. trace.CanCollide = false
  723. trace.Anchored = true
  724. trace.CFrame = ch[i].CFrame
  725. if ch[i].Name == "Head" then
  726. mehs = Instance.new("CylinderMesh", trace)
  727. mehs.Scale = Vector3.new(1.25, 1.25, 1.25)
  728. end
  729. tracedisappear = coroutine.wrap(function()
  730. for i = 1, 7 do
  731. wait()
  732. trace.Transparency = trace.Transparency + 0.1
  733. end
  734. trace:Destroy()
  735. end)
  736. tracedisappear()
  737. end
  738. end
  739. end
  740. end
  741. t = Instance.new("Part", Character)
  742. t.Size = Vector3.new(0.01, 0.01, 0.01)
  743. t.Anchored = false
  744. t.CanCollide = false
  745. t.Name = "Attatchment for Trail"
  746. t.Transparency = 1
  747. tweld = Instance.new("Weld", t)
  748. tweld.Part0 = t
  749. tweld.Part1 = Torso
  750. tweld.C0 = CFrame.new(0, 2.5, 0)
  751. attch = Instance.new("Attachment", Head)
  752. attch2 = Instance.new("Attachment", t)
  753. trail = Instance.new("Trail", Character.HumanoidRootPart)
  754. trail.Color = ColorSequence.new(Color3.fromRGB(0, 0, 0), Color3.fromRGB(0, 0, 0))
  755. trail.TextureLength = 4
  756. trail.TextureMode = "Stretch"
  757. trail.Lifetime = 0.2
  758. trail.MaxLength = 0
  759. trail.MinLength = 0
  760. trail.WidthScale = NumberSequence.new({
  761. NumberSequenceKeypoint.new(0, 1, 0),
  762. NumberSequenceKeypoint.new(1, 0, 0)
  763. })
  764. trail.Transparency = NumberSequence.new({
  765. NumberSequenceKeypoint.new(0, 0),
  766. NumberSequenceKeypoint.new(1, 1)
  767. })
  768. trail.Texture = "http://www.robox.com/asset/?id=182554047"
  769. trail.FaceCamera = true
  770. trail.Attachment0 = attch
  771. trail.Attachment1 = attch2
  772. trail.Enabled = false
  773. mouse = Player:GetMouse()
  774. local s = ""
  775. dashing = false
  776. coroutine.wrap(function()
  777. while wait() do
  778. if dashing == true then
  779. Trace()
  780. else
  781. end
  782. end
  783. end)()
  784. local isDashing = true
  785. mouse.KeyDown:connect(function(key)
  786. key = string.lower(key)
  787. if key == "w" or key == "\017" and dashing == false then
  788. s = s .. "w"
  789. delay(0.2, function()
  790. if s ~= "ww" then
  791. s = ""
  792. end
  793. end)
  794. if s == "ww" then
  795. s = ""
  796. if attack == true then
  797. return
  798. end
  799. dashing = true
  800. Animations = true
  801. for i = 1, 10 do
  802. rootPart.Velocity = rootPart.CFrame.lookVector * 200
  803. angleSpeed = 1
  804. axisSpeed = 1
  805. change = 0.5
  806. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-30), math.rad(0), math.rad(0)), 0.15)
  807. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-30), math.rad(0), math.rad(0)), 0.15)
  808. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  809. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.4) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  810. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-45), math.rad(0), math.rad(0)), 0.15)
  811. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  812. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  813. if v:FindFirstChild("HumanoidRootPart") then
  814. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(5, 10)
  815. end
  816. end
  817. swait()
  818. end
  819. dashing = false
  820. Animations = false
  821. delay(0, function()
  822. end)
  823. end
  824. end
  825. end)
  826. mouse.KeyDown:connect(function(key)
  827. key = string.lower(key)
  828. if key == "q" or key == "\017" and dashing == false then
  829. s = s .. "q"
  830. delay(0.2, function()
  831. if s ~= "qq" then
  832. s = ""
  833. end
  834. end)
  835. if s == "qq" then
  836. s = ""
  837. if attack == true then
  838. return
  839. end
  840. if transformed == true then
  841. return
  842. end
  843. dashing = true
  844. S = Instance.new("Sound")
  845. S.Parent = rootPart
  846. S.SoundId = "rbxassetid://2767090"
  847. S.Volume = 10
  848. S.Looped = false
  849. S.Pitch = 0.8
  850. S:Play()
  851. for i = 1, 5 do
  852. rootPart.Velocity = rootPart.CFrame.rightVector * -200
  853. angleSpeed = 1
  854. axisSpeed = 1
  855. change = 0.5
  856. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(80)), 0.15)
  857. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, -0.2) * c_angles(math.rad(80), math.rad(0), math.rad(45)), 0.15)
  858. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(20)), 0.15)
  859. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, -0.3) * c_angles(math.rad(25), math.rad(0), math.rad(30)), 0.15)
  860. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.15)
  861. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(-10)), 0.15)
  862. swait()
  863. end
  864. dashing = false
  865. Animations = false
  866. delay(0, function()
  867. end)
  868. end
  869. end
  870. end)
  871. mouse.KeyDown:connect(function(key)
  872. key = string.lower(key)
  873. if key == "e" or key == "\017" and dashing == false then
  874. s = s .. "e"
  875. delay(0.2, function()
  876. if s ~= "ee" then
  877. s = ""
  878. end
  879. end)
  880. if s == "ee" then
  881. s = ""
  882. if attack == true then
  883. return
  884. end
  885. if transformed == true then
  886. return
  887. end
  888. dashing = true
  889. S = Instance.new("Sound")
  890. S.Parent = rootPart
  891. S.SoundId = "rbxassetid://2767090"
  892. S.Volume = 10
  893. S.Looped = false
  894. S.Pitch = 0.8
  895. S:Play()
  896. for i = 1, 5 do
  897. rootPart.Velocity = rootPart.CFrame.rightVector * 200
  898. angleSpeed = 1
  899. axisSpeed = 1
  900. change = 0.5
  901. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, -0.2) * c_angles(math.rad(80), math.rad(0), math.rad(-45)), 0.15)
  902. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-80)), 0.15)
  903. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(25), math.rad(0), math.rad(-30)), 0.15)
  904. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, -0.3) * c_angles(math.rad(-25), math.rad(0), math.rad(-20)), 0.15)
  905. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(20)), 0.15)
  906. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(10)), 0.15)
  907. swait()
  908. end
  909. dashing = false
  910. Animations = false
  911. delay(0, function()
  912. end)
  913. end
  914. end
  915. end)
  916. attack = false
  917. attack2 = false
  918. Grabbed = false
  919. g = Instance.new("Part", Character)
  920. g.Size = Vector3.new(0.01, 0.01, 0.01)
  921. g.Anchored = false
  922. g.CanCollide = false
  923. g.Name = "Grab"
  924. g.Transparency = 1
  925. gweld = Instance.new("Weld", g)
  926. gweld.Part0 = g
  927. gweld.Part1 = Right_Arm
  928. gweld.C0 = CFrame.new(0, 1.25, 0)
  929. function FindNearestTorso(Position, Distance, SinglePlayer)
  930. if SinglePlayer then
  931. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  932. end
  933. local List = {}
  934. for i, v in pairs(workspace:GetChildren()) do
  935. if v:IsA("Model") and v:findFirstChild("Torso") and v ~= Character and Distance >= (v.Torso.Position - Position).magnitude then
  936. table.insert(List, v)
  937. end
  938. end
  939. return List
  940. end
  941. quote = 1
  942. function Throw(mouse)
  943. gweld.C0 = CFrame.new(0, 1.25, 0)
  944. local hit = mouse.Target
  945. if hit ~= nil then
  946. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  947. local torsy
  948. if hit.Parent:FindFirstChild("Torso") ~= nil then
  949. torsy = hit.Parent.Torso
  950. end
  951. if 0 >= hit.Parent:FindFirstChild("Humanoid").Health then
  952. return
  953. end
  954. for i, v in pairs(hit.Parent:children()) do
  955. if v:IsA("Part") and not v.Name == "HumanoidRootPart" then
  956. return
  957. end
  958. end
  959. attack = true
  960. attack2 = true
  961. Animations = true
  962. Head.face.Texture = "rbxassetid://1895706696"
  963. local GYRO = Instance.new("BodyGyro", rootPart)
  964. GYRO.D = 100
  965. GYRO.P = 2000
  966. S = Instance.new("Sound")
  967. S.Parent = Character.Torso
  968. S.SoundId = "rbxassetid://391961525"
  969. S.Volume = 10
  970. S.Looped = false
  971. S.Pitch = 1
  972. S:Play()
  973. local LEye = Part("LEye", "Really red", "Neon", 0, "Ball", Vector3.new(0.1, 0.1, 0.1), CFrame.new(0, 0, 0), false, false, Character)
  974. Mesh = Instance.new("SpecialMesh", LEye)
  975. Mesh.MeshType = "Sphere"
  976. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  977. Mesh.Offset = Vector3.new(-0.2, 0.2, -0.6)
  978. newWeld(Head, LEye, 0, 0, 0)
  979. local LEGlow = Instance.new("SurfaceLight")
  980. LEGlow.Color = Color3.fromRGB(255, 0, 0)
  981. LEGlow.Range = 6
  982. LEGlow.Brightness = 10
  983. LEGlow.Parent = LEye
  984. local REye = Part("REye", "Really red", "Neon", 0, "Ball", Vector3.new(0.1, 0.1, 0.1), CFrame.new(0, 0, 0), false, false, Character)
  985. Mesh = Instance.new("SpecialMesh", REye)
  986. Mesh.MeshType = "Sphere"
  987. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  988. Mesh.Offset = Vector3.new(0.2, 0.2, -0.6)
  989. newWeld(Head, REye, 0, 0, 0)
  990. local REGlow = Instance.new("SurfaceLight")
  991. REGlow.Color = Color3.fromRGB(255, 0, 0)
  992. REGlow.Range = 6
  993. REGlow.Brightness = 10
  994. REGlow.Parent = REye
  995. GYRO.MaxTorque = Vector3.new(0, 4000000, 0)
  996. GYRO.CFrame = CFrame.new(rootPart.Position, hit.Parent:findFirstChild("HumanoidRootPart").Position)
  997. for i = 0, 0.3, 0.01 do
  998. angleSpeed = 1
  999. axisSpeed = 1
  1000. change = 0.5
  1001. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.15)
  1002. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1003. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  1004. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  1005. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  1006. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.05 + math.sin(sine / 15) / 10) * c_angles(math.rad(-5) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  1007. swait()
  1008. end
  1009. LEye:Destroy()
  1010. REye:Destroy()
  1011. Shades.Transparency = 1
  1012. local Decoy = Instance.new("Part", Right_Arm)
  1013. Decoy.Name = "Decoy"
  1014. Decoy.Shape = Enum.PartType.Block
  1015. Decoy.CanCollide = false
  1016. Decoy.BrickColor = BrickColor.new("Medium stone grey")
  1017. Decoy.Transparency = 0
  1018. Decoy.Material = "Grass"
  1019. Decoy.Size = Vector3.new(1, 0.35, 1)
  1020. Decoy.TopSurface = Enum.SurfaceType.Smooth
  1021. Decoy.BottomSurface = Enum.SurfaceType.Smooth
  1022. local DecoyWeld = Instance.new("Weld", Decoy)
  1023. DecoyWeld.Part0 = Right_Arm
  1024. DecoyWeld.Part1 = Decoy
  1025. DecoyWeld.C1 = CFrame.new(0, 0, 1.2) * CFrame.fromEulerAnglesXYZ(math.rad(100), math.rad(0), 0)
  1026. local DecoyMesh = Instance.new("FileMesh", Decoy)
  1027. DecoyMesh.MeshId = "http://www.roblox.com/asset/?id=51177557"
  1028. DecoyMesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  1029. DecoyMesh.Scale = Vector3.new(1, 1, 1)
  1030. S = Instance.new("Sound")
  1031. S.Parent = Character.Torso
  1032. S.SoundId = "rbxassetid://1146552988"
  1033. S.Volume = 10
  1034. S.Looped = false
  1035. S.Pitch = 1
  1036. S:Play()
  1037. for i = 0, 0.3, 0.01 do
  1038. angleSpeed = 1
  1039. axisSpeed = 5
  1040. change = 0.5
  1041. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, 0) * c_angles(math.rad(140), math.rad(0), math.rad(-30)), 0.15)
  1042. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1043. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1044. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1045. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1046. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1047. swait()
  1048. end
  1049. wait(0.25)
  1050. Head.face.Texture = "rbxassetid://1895698679"
  1051. DecoyWeld:Destroy()
  1052. local Decoyed = Instance.new("BodyPosition", Decoy)
  1053. Decoyed.D = 100
  1054. Decoyed.P = 2000
  1055. Decoyed.MaxForce = Vector3.new(4000000, 4000000, 4000000)
  1056. Decoyed.Position = hit.Parent:findFirstChild("Head").Position
  1057. for i = 0, 0.1, 0.01 do
  1058. angleSpeed = 1
  1059. axisSpeed = 1
  1060. change = 0.5
  1061. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, -0.4) * c_angles(math.rad(90), math.rad(0), math.rad(0)), 0.15)
  1062. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1063. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1064. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1065. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1066. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1067. swait()
  1068. end
  1069. hit.Parent:findFirstChild("HumanoidRootPart").Anchored = true
  1070. local DecoyWeld2 = Instance.new("Weld", Decoy)
  1071. DecoyWeld2.Part0 = hit.Parent:findFirstChild("Head")
  1072. DecoyWeld2.Part1 = Decoy
  1073. DecoyWeld2.C1 = CFrame.new(0, -0.2, 0.15)
  1074. wait(0.5)
  1075. GYRO:Destroy()
  1076. Decoyed:Destroy()
  1077. Decoy.CanCollide = true
  1078. Trace()
  1079. Head.face.Texture = "rbxassetid://1895670162"
  1080. rootPart.CFrame = hit.Parent:findFirstChild("HumanoidRootPart").CFrame
  1081. rootPart.CFrame = rootPart.CFrame + hit.Parent:findFirstChild("HumanoidRootPart").CFrame.lookVector * 2
  1082. rootPart.CFrame = rootPart.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0)
  1083. local grab
  1084. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  1085. if v:FindFirstChild("HumanoidRootPart") then
  1086. Grabbed = true
  1087. S = Instance.new("Sound")
  1088. S.Parent = Character.Torso
  1089. S.SoundId = "rbxassetid://260430060"
  1090. S.Volume = 10
  1091. S.Looped = false
  1092. S.Pitch = 1
  1093. S:Play()
  1094. grab = v
  1095. end
  1096. end
  1097. for i = 0, 1, 0.05 do
  1098. swait()
  1099. if Grabbed == true then
  1100. grab.Humanoid.PlatformStand = true
  1101. grab.HumanoidRootPart.Anchored = true
  1102. grab.HumanoidRootPart.CFrame = g.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(150))
  1103. end
  1104. angleSpeed = 1
  1105. axisSpeed = 1
  1106. change = 0.5
  1107. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(140), math.rad(0), math.rad(30)), 0.15)
  1108. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1109. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1110. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1111. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1112. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(-45), math.rad(20)), 0.15)
  1113. end
  1114. S = Instance.new("Sound")
  1115. S.Parent = Character.Torso
  1116. quote = math.random(1, 3)
  1117. if quote == 1 then
  1118. S.SoundId = "rbxassetid://1146553663"
  1119. elseif quote == 2 then
  1120. S.SoundId = "rbxassetid://1278017490"
  1121. elseif quote == 3 then
  1122. S.SoundId = "rbxassetid://0"
  1123. end
  1124. S.Volume = 10
  1125. S.Looped = false
  1126. S.Pitch = 1
  1127. S:Play()
  1128. q = Instance.new("ParticleEmitter", grab.HumanoidRootPart)
  1129. q.Rate = 500
  1130. q.Speed = NumberRange.new(7)
  1131. q.VelocitySpread = 40
  1132. q.Lifetime = NumberRange.new(0.1, 1)
  1133. q.Texture = "rbxassetid://291880914"
  1134. q.Color = ColorSequence.new(Color3.new(0.2, 0, 0), Color3.new(0, 0, 0))
  1135. q.Acceleration = Vector3.new(0, -50, 0)
  1136. q.Size = NumberSequence.new({
  1137. NumberSequenceKeypoint.new(0, 0.5, 0.1),
  1138. NumberSequenceKeypoint.new(1, 0.01, 0.01)
  1139. })
  1140. q.RotSpeed = NumberRange.new(-180, 180)
  1141. q.Rotation = NumberRange.new(-360, 360)
  1142. q.Transparency = NumberSequence.new({
  1143. NumberSequenceKeypoint.new(0, 1),
  1144. NumberSequenceKeypoint.new(0.2, 0),
  1145. NumberSequenceKeypoint.new(0.8, 0),
  1146. NumberSequenceKeypoint.new(1, 1)
  1147. })
  1148. S = Instance.new("Sound")
  1149. S.Parent = Character.Torso
  1150. S.SoundId = "rbxassetid://206082327"
  1151. S.Volume = 10
  1152. S.Looped = false
  1153. S.Pitch = 0.8
  1154. S:Play()
  1155. grab.HumanoidRootPart.Anchored = false
  1156. wait(0.2)
  1157. local Decoy = Instance.new("Part", Right_Arm)
  1158. Decoy.Name = "Decoy"
  1159. Decoy.Shape = Enum.PartType.Block
  1160. Decoy.CanCollide = false
  1161. Decoy.BrickColor = BrickColor.new("Medium stone grey")
  1162. Decoy.Transparency = 0
  1163. Decoy.Material = "Grass"
  1164. Decoy.Size = Vector3.new(1, 0.35, 1)
  1165. Decoy.TopSurface = Enum.SurfaceType.Smooth
  1166. Decoy.BottomSurface = Enum.SurfaceType.Smooth
  1167. local DecoyWeld = Instance.new("Weld", Decoy)
  1168. DecoyWeld.Part0 = Right_Arm
  1169. DecoyWeld.Part1 = Decoy
  1170. DecoyWeld.C1 = CFrame.new(0, 0, 1.2) * CFrame.fromEulerAnglesXYZ(math.rad(100), math.rad(0), 0)
  1171. local DecoyMesh = Instance.new("FileMesh", Decoy)
  1172. DecoyMesh.MeshId = "http://www.roblox.com/asset/?id=51177557"
  1173. DecoyMesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  1174. DecoyMesh.Scale = Vector3.new(1, 1, 1)
  1175. for i = 0, 0.1, 0.01 do
  1176. angleSpeed = 1
  1177. axisSpeed = 5
  1178. change = 0.5
  1179. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, 0) * c_angles(math.rad(140), math.rad(0), math.rad(-30)), 0.15)
  1180. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  1181. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1182. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1183. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1184. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1185. swait()
  1186. end
  1187. Decoy:Destroy()
  1188. Head.face.Texture = "rbxassetid://1895706696"
  1189. wait()
  1190. local LEye = Part("LEye", "Really red", "Neon", 0, "Ball", Vector3.new(0.1, 0.1, 0.1), CFrame.new(0, 0, 0), false, false, Character)
  1191. Mesh = Instance.new("SpecialMesh", LEye)
  1192. Mesh.MeshType = "Sphere"
  1193. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  1194. Mesh.Offset = Vector3.new(-0.2, 0.2, -0.6)
  1195. newWeld(Head, LEye, 0, 0, 0)
  1196. local LEGlow = Instance.new("SurfaceLight")
  1197. LEGlow.Color = Color3.fromRGB(255, 0, 0)
  1198. LEGlow.Range = 6
  1199. LEGlow.Brightness = 10
  1200. LEGlow.Parent = LEye
  1201. local REye = Part("REye", "Really red", "Neon", 0, "Ball", Vector3.new(0.1, 0.1, 0.1), CFrame.new(0, 0, 0), false, false, Character)
  1202. Mesh = Instance.new("SpecialMesh", REye)
  1203. Mesh.MeshType = "Sphere"
  1204. Mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  1205. Mesh.Offset = Vector3.new(0.2, 0.2, -0.6)
  1206. newWeld(Head, REye, 0, 0, 0)
  1207. local REGlow = Instance.new("SurfaceLight")
  1208. REGlow.Color = Color3.fromRGB(255, 0, 0)
  1209. REGlow.Range = 6
  1210. REGlow.Brightness = 10
  1211. REGlow.Parent = REye
  1212. Shades.Transparency = 0
  1213. attack2 = false
  1214. Animations = false
  1215. grab.Humanoid.MaxHealth = 0
  1216. grab.Humanoid.Health = 0
  1217. Right_Arm:findFirstChild("Decoy"):Destroy()
  1218. wait(0.5)
  1219. for i = 1, 10 do
  1220. LEye.Transparency = LEye.Transparency + 0.1
  1221. REye.Transparency = REye.Transparency + 0.1
  1222. LEGlow.Brightness = LEGlow.Brightness - 1
  1223. REGlow.Brightness = REGlow.Brightness - 1
  1224. wait()
  1225. end
  1226. Head.face.Texture = "rbxassetid://315622231"
  1227. LEye:Destroy()
  1228. REye:Destroy()
  1229. attack = false
  1230. else
  1231. rootPart.Anchored = false
  1232. attack = false
  1233. Animations = false
  1234. end
  1235. else
  1236. rootPart.Anchored = false
  1237. attack = false
  1238. Animations = false
  1239. return
  1240. end
  1241. end
  1242. function Squeeze()
  1243. gweld.C0 = CFrame.new(0, 3.6, 0)
  1244. local hit = mouse.Target
  1245. if hit ~= nil then
  1246. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1247. local torsy
  1248. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1249. torsy = hit.Parent.Torso
  1250. end
  1251. if 0 >= hit.Parent:FindFirstChild("Humanoid").Health then
  1252. return
  1253. end
  1254. for i, v in pairs(hit.Parent:children()) do
  1255. if v:IsA("Part") and not v.Name == "HumanoidRootPart" then
  1256. return
  1257. end
  1258. end
  1259. attack = true
  1260. attack2 = true
  1261. Animations = true
  1262. Head.face.Texture = "rbxassetid://1895706696"
  1263. local GYRO = Instance.new("BodyGyro", rootPart)
  1264. GYRO.D = 175
  1265. GYRO.P = 20000
  1266. GYRO.MaxTorque = Vector3.new(0, 4000000, 0)
  1267. GYRO.CFrame = CFrame.new(rootPart.Position, hit.Parent:findFirstChild("HumanoidRootPart").Position)
  1268. hit.Parent:findFirstChild("HumanoidRootPart").Anchored = true
  1269. GYRO:Destroy()
  1270. Trace()
  1271. Head.face.Texture = "rbxassetid://1895670162"
  1272. rootPart.CFrame = hit.Parent:findFirstChild("HumanoidRootPart").CFrame
  1273. rootPart.CFrame = rootPart.CFrame + hit.Parent:findFirstChild("HumanoidRootPart").CFrame.lookVector * 6
  1274. rootPart.CFrame = rootPart.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0)
  1275. local grab
  1276. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  1277. if v:FindFirstChild("HumanoidRootPart") then
  1278. Grabbed = true
  1279. S = Instance.new("Sound")
  1280. S.Parent = Character.Torso
  1281. S.SoundId = "rbxassetid://260430060"
  1282. S.Volume = 10
  1283. S.Looped = false
  1284. S.Pitch = 1
  1285. S:Play()
  1286. grab = v
  1287. end
  1288. end
  1289. S = Instance.new("Sound")
  1290. S.Parent = Character.Torso
  1291. quote = math.random(1, 3)
  1292. if quote == 1 then
  1293. S.SoundId = "rbxassetid://626909112"
  1294. elseif quote == 2 then
  1295. S.SoundId = "rbxassetid://179760759"
  1296. elseif quote == 3 then
  1297. S.SoundId = "rbxassetid://573395427"
  1298. end
  1299. S.Volume = 10
  1300. S.Looped = false
  1301. S.Pitch = 0.2
  1302. S:Play()
  1303. for i = 0, 3, 0.05 do
  1304. swait()
  1305. if Grabbed == true then
  1306. grab.Humanoid.PlatformStand = true
  1307. grab.HumanoidRootPart.Anchored = true
  1308. grab.HumanoidRootPart.CFrame = g.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(150))
  1309. end
  1310. angleSpeed = 1
  1311. axisSpeed = 1
  1312. change = 0.5
  1313. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5 + math.sin(sine / 0.1) / 4, 0.5, 0 + math.sin(sine / 0.1) / 4) * c_angles(math.rad(140), math.rad(0), math.rad(30)), 0.15)
  1314. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1315. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(10), math.rad(0)), 0.15)
  1316. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(-10), math.rad(0)), 0.15)
  1317. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.05 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  1318. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(-40), math.rad(0)), 0.15)
  1319. end
  1320. grab.Torso:Destroy()
  1321. q = Instance.new("ParticleEmitter", grab.HumanoidRootPart)
  1322. q.Rate = 1000
  1323. q.Speed = NumberRange.new(7)
  1324. q.VelocitySpread = 40
  1325. q.Lifetime = NumberRange.new(0.1, 1)
  1326. q.Texture = "rbxassetid://291880914"
  1327. q.Color = ColorSequence.new(Color3.new(0.2, 0, 0), Color3.new(0, 0, 0))
  1328. q.Acceleration = Vector3.new(0, -50, 0)
  1329. q.Size = NumberSequence.new({
  1330. NumberSequenceKeypoint.new(0, 0.5, 0.1),
  1331. NumberSequenceKeypoint.new(1, 0.01, 0.01)
  1332. })
  1333. q.RotSpeed = NumberRange.new(-180, 180)
  1334. q.Rotation = NumberRange.new(-360, 360)
  1335. q.Transparency = NumberSequence.new({
  1336. NumberSequenceKeypoint.new(0, 1),
  1337. NumberSequenceKeypoint.new(0.2, 0),
  1338. NumberSequenceKeypoint.new(0.8, 0),
  1339. NumberSequenceKeypoint.new(1, 1)
  1340. })
  1341. S = Instance.new("Sound")
  1342. S.Parent = Character.Torso
  1343. S.SoundId = "rbxassetid://206082327"
  1344. S.Volume = 10
  1345. S.Looped = false
  1346. S.Pitch = 0.8
  1347. S:Play()
  1348. grab.HumanoidRootPart.Anchored = false
  1349. Head.face.Texture = "rbxassetid://1895706696"
  1350. attack2 = false
  1351. Animations = false
  1352. grab.Humanoid.MaxHealth = 0
  1353. grab.Humanoid.Health = 0
  1354. wait(0.5)
  1355. attack = false
  1356. else
  1357. rootPart.Anchored = false
  1358. attack = false
  1359. Animations = false
  1360. end
  1361. else
  1362. rootPart.Anchored = false
  1363. attack = false
  1364. Animations = false
  1365. return
  1366. end
  1367. end
  1368. function Rock()
  1369. gweld.C0 = CFrame.new(0, 7, 0)
  1370. local hit = mouse.Target
  1371. if hit ~= nil then
  1372. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  1373. do
  1374. local torsy
  1375. if hit.Parent:FindFirstChild("Torso") ~= nil then
  1376. torsy = hit.Parent.Torso
  1377. end
  1378. if 0 >= hit.Parent:FindFirstChild("Humanoid").Health then
  1379. return
  1380. end
  1381. for i, v in pairs(hit.Parent:children()) do
  1382. if v:IsA("Part") and not v.Name == "HumanoidRootPart" then
  1383. return
  1384. end
  1385. end
  1386. attack = true
  1387. attack2 = true
  1388. Animations = true
  1389. Head.face.Texture = "rbxassetid://1895706696"
  1390. local GYRO = Instance.new("BodyGyro", rootPart)
  1391. GYRO.D = 175
  1392. GYRO.P = 20000
  1393. GYRO.MaxTorque = Vector3.new(0, 4000000, 0)
  1394. GYRO.CFrame = CFrame.new(rootPart.Position, hit.Parent:findFirstChild("HumanoidRootPart").Position)
  1395. hit.Parent:findFirstChild("HumanoidRootPart").Anchored = true
  1396. local Rock = Instance.new("Part", g)
  1397. Rock.Name = "Rock"
  1398. Rock.Shape = Enum.PartType.Block
  1399. Rock.CanCollide = false
  1400. Rock.BrickColor = BrickColor.new("Medium stone grey")
  1401. Rock.Transparency = 0
  1402. Rock.Material = "Grass"
  1403. Rock.Size = Vector3.new(0.1, 0.1, 0.1)
  1404. Rock.CustomPhysicalProperties = PhysicalProperties.new(2.691, 0.4, 0.2, 1, 1)
  1405. Rock.TopSurface = Enum.SurfaceType.Smooth
  1406. Rock.BottomSurface = Enum.SurfaceType.Smooth
  1407. local RockWeld = Instance.new("Weld", Rock)
  1408. RockWeld.Part0 = g
  1409. RockWeld.Part1 = Rock
  1410. RockWeld.C1 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(100), math.rad(0), 0)
  1411. local RockMesh = Instance.new("FileMesh", Rock)
  1412. RockMesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
  1413. RockMesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
  1414. RockMesh.Scale = Vector3.new(3, 3, 3)
  1415. for i = 0, 0.2, 0.01 do
  1416. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  1417. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1418. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1419. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1420. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1421. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1422. end
  1423. for i = 0, 0.2, 0.01 do
  1424. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(20)), 0.1)
  1425. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1426. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1427. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1428. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1429. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1430. swait()
  1431. end
  1432. Head.face.Texture = "rbxassetid://1895670162"
  1433. S = Instance.new("Sound")
  1434. S.Parent = Character.Torso
  1435. S.SoundId = "rbxassetid://1278006076"
  1436. S.Volume = 10
  1437. S.Looped = false
  1438. S.Pitch = 1
  1439. S:Play()
  1440. for i = 0, 0.05, 0.01 do
  1441. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(20)), 0.15)
  1442. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1443. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1444. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1445. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1446. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1447. swait()
  1448. end
  1449. local Rocked = Instance.new("BodyPosition", Rock)
  1450. Rocked.D = 100
  1451. Rocked.P = 2000
  1452. Rocked.MaxForce = Vector3.new(4000000, 4000000, 4000000)
  1453. Rocked.Position = hit.Parent:findFirstChild("HumanoidRootPart").Position
  1454. RockWeld:Destroy()
  1455. for i = 0, 0.01, 0.01 do
  1456. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0, -0.5) * c_angles(math.rad(25), math.rad(0), math.rad(20)), 0.15)
  1457. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  1458. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1459. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1460. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  1461. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  1462. swait()
  1463. end
  1464. Spawn(function()
  1465. wait(10)
  1466. for i = 1, 10 do
  1467. Rock.Transparency = Rock.Transparency + 0.1
  1468. swait()
  1469. end
  1470. Rock:Destroy()
  1471. end)
  1472. wait(0.1)
  1473. GYRO:Destroy()
  1474. Rocked:Destroy()
  1475. Trace()
  1476. Head.face.Texture = "rbxassetid://1895670162"
  1477. local grab
  1478. for i, v in pairs(FindNearestTorso(Rock.CFrame.p, 15)) do
  1479. if v:FindFirstChild("HumanoidRootPart") then
  1480. Grabbed = true
  1481. S = Instance.new("Sound")
  1482. S.Parent = Character.Torso
  1483. S.SoundId = "rbxassetid://260430060"
  1484. S.Volume = 10
  1485. S.Looped = false
  1486. S.Pitch = 1
  1487. S:Play()
  1488. grab = v
  1489. Rock.Size = Vector3.new(3, 3, 3)
  1490. Rock.CanCollide = true
  1491. else
  1492. rootPart.Anchored = false
  1493. attack = false
  1494. Animations = false
  1495. return
  1496. end
  1497. end
  1498. if 0 >= grab:FindFirstChild("Humanoid").Health then
  1499. rootPart.Anchored = false
  1500. attack = false
  1501. Animations = false
  1502. return
  1503. end
  1504. S = Instance.new("Sound")
  1505. S.Parent = Character.Torso
  1506. quote = math.random(1, 3)
  1507. if quote == 1 then
  1508. S.SoundId = "rbxassetid://626909112"
  1509. elseif quote == 2 then
  1510. S.SoundId = "rbxassetid://179760759"
  1511. elseif quote == 3 then
  1512. S.SoundId = "rbxassetid://573395427"
  1513. end
  1514. S.Volume = 10
  1515. S.Looped = false
  1516. S.Pitch = 1
  1517. S:Play()
  1518. grab:FindFirstChild("Head").Size = Vector3.new(2, 1, 0)
  1519. grab:FindFirstChild("Torso").Size = Vector3.new(2, 2, 0)
  1520. grab:FindFirstChild("Right Arm").Size = Vector3.new(1, 2, 0)
  1521. grab:FindFirstChild("Left Arm").Size = Vector3.new(1, 2, 0)
  1522. grab:FindFirstChild("Right Leg").Size = Vector3.new(1, 2, 0)
  1523. grab:FindFirstChild("Left Leg").Size = Vector3.new(1, 2, 0)
  1524. q = Instance.new("ParticleEmitter", grab:FindFirstChild("HumanoidRootPart"))
  1525. q.Rate = 1000
  1526. q.Speed = NumberRange.new(7)
  1527. q.VelocitySpread = 40
  1528. q.Lifetime = NumberRange.new(0.1, 1)
  1529. q.Texture = "rbxassetid://291880914"
  1530. q.Color = ColorSequence.new(Color3.new(0.2, 0, 0), Color3.new(0, 0, 0))
  1531. q.Acceleration = Vector3.new(0, -50, 0)
  1532. q.Size = NumberSequence.new({
  1533. NumberSequenceKeypoint.new(0, 0.5, 0.1),
  1534. NumberSequenceKeypoint.new(1, 0.01, 0.01)
  1535. })
  1536. q.RotSpeed = NumberRange.new(-180, 180)
  1537. q.Rotation = NumberRange.new(-360, 360)
  1538. q.Transparency = NumberSequence.new({
  1539. NumberSequenceKeypoint.new(0, 1),
  1540. NumberSequenceKeypoint.new(0.2, 0),
  1541. NumberSequenceKeypoint.new(0.8, 0),
  1542. NumberSequenceKeypoint.new(1, 1)
  1543. })
  1544. S = Instance.new("Sound")
  1545. S.Parent = Character.Torso
  1546. S.SoundId = "rbxassetid://206082327"
  1547. S.Volume = 10
  1548. S.Looped = false
  1549. S.Pitch = 0.8
  1550. S:Play()
  1551. grab:FindFirstChild("HumanoidRootPart").Anchored = false
  1552. Head.face.Texture = "rbxassetid://1895706696"
  1553. attack2 = false
  1554. Animations = false
  1555. grab:FindFirstChild("Humanoid").MaxHealth = 0
  1556. grab:FindFirstChild("Humanoid").Health = 0
  1557. wait(0.5)
  1558. rootPart.Anchored = false
  1559. attack = false
  1560. end
  1561. else
  1562. rootPart.Anchored = false
  1563. attack = false
  1564. Animations = false
  1565. end
  1566. else
  1567. rootPart.Anchored = false
  1568. attack = false
  1569. Animations = false
  1570. return
  1571. end
  1572. end
  1573. mouse.KeyUp:connect(function(key)
  1574. if key == "r" and attack == false and crouching == false then
  1575. if transformed == false then
  1576. Throw(mouse)
  1577. elseif transformed == true then
  1578. Squeeze(mouse)
  1579. end
  1580. end
  1581. end)
  1582. GunPoint = Instance.new("BodyGyro")
  1583. GunPoint.Parent = nil
  1584. GunPoint.D = 175
  1585. GunPoint.P = 20000
  1586. GunPoint.MaxTorque = Vector3.new(0, 4000000, 0)
  1587. Fire = Instance.new("ParticleEmitter", BE)
  1588. Fire.Name = "Light"
  1589. Fire.VelocitySpread = 0
  1590. Fire.Lifetime = NumberRange.new(0.1)
  1591. Fire.Speed = NumberRange.new(0)
  1592. Fire.Size = NumberSequence.new({
  1593. NumberSequenceKeypoint.new(0, 1, 0),
  1594. NumberSequenceKeypoint.new(1, 0, 0)
  1595. })
  1596. Fire.Transparency = NumberSequence.new({
  1597. NumberSequenceKeypoint.new(0, 0),
  1598. NumberSequenceKeypoint.new(1, 0)
  1599. })
  1600. Fire.LightEmission = 0.8
  1601. Fire.LockedToPart = true
  1602. Fire.Rotation = NumberRange.new(-360, 360)
  1603. Fire.RotSpeed = NumberRange.new(-360, 360)
  1604. Fire.Texture = "http://www.roblox.com/asset/?id=248625108"
  1605. Fire.Color = ColorSequence.new(Color3.fromRGB(255, 105, 19), Color3.fromRGB(255, 255, 127))
  1606. Fire.Rate = 300
  1607. Fire.Enabled = false
  1608. local Scale = game.Players.LocalPlayer.Character.Torso.Size.X / 2 * (game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1) * 0.8
  1609. AnimFSpd = 0.2
  1610. local gun = false
  1611. local shoot = false
  1612. local putback = false
  1613. function Gunfire()
  1614. attack = true
  1615. attack2 = true
  1616. Animations = true
  1617. wait()
  1618. gun = true
  1619. S = Instance.new("Sound")
  1620. S.Parent = BE
  1621. S.SoundId = "rbxassetid://1684717155"
  1622. S.Volume = 6
  1623. S.Looped = false
  1624. S.Pitch = 1
  1625. S:Play()
  1626. GunModel.Transparency = 0
  1627. GunPoint.Parent = rootPart
  1628. while gun == true do
  1629. swait()
  1630. if currentAnim == "Idling" then
  1631. for i = 0, 0.01, 0.01 do
  1632. angleSpeed = 1
  1633. axisSpeed = 1
  1634. change = 0.5
  1635. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1636. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(80)), AnimFSpd)
  1637. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), AnimFSpd)
  1638. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), AnimFSpd)
  1639. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), AnimFSpd)
  1640. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(80) + math.sin(rootPart.RotVelocity.Y / 30) / 2, math.rad(0)), AnimFSpd)
  1641. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-80), math.rad(0)), AnimFSpd)
  1642. end
  1643. elseif currentAnim == "Falling" then
  1644. for i = 0, 0.01, 0.01 do
  1645. angleSpeed = 1
  1646. axisSpeed = 1
  1647. change = 0.5
  1648. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1649. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, 0) * c_angles(math.rad(100), math.rad(0), math.rad(0)), 0.15)
  1650. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.5, 0.5, -0.5) * c_angles(math.rad(100), math.rad(0), math.rad(45)), 0.15)
  1651. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  1652. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  1653. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  1654. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  1655. end
  1656. end
  1657. if putback == true then
  1658. S = Instance.new("Sound")
  1659. S.Parent = BE
  1660. S.SoundId = "rbxassetid://294710932"
  1661. S.Volume = 10
  1662. S.Looped = false
  1663. S.Pitch = 1
  1664. S:Play()
  1665. putback = false
  1666. shoot = false
  1667. gun = false
  1668. GunPoint.Parent = nil
  1669. Animations = false
  1670. GunModel.Transparency = 1
  1671. attack2 = false
  1672. attack = false
  1673. end
  1674. if shoot == true then
  1675. S = Instance.new("Sound")
  1676. S.Parent = BE
  1677. S.SoundId = "rbxassetid://1045539607"
  1678. S.Volume = 10
  1679. S.Looped = false
  1680. S.Pitch = 1
  1681. S:Play()
  1682. Fire.Enabled = true
  1683. BulletDetection(BE.Position, Mouse.Hit.Position, false)
  1684. swait(1)
  1685. Fire.Enabled = false
  1686. do
  1687. local Shell = Instance.new("Part", game.Workspace)
  1688. Shell.FormFactor = "Custom"
  1689. Shell.BrickColor = BrickColor.new("Bright yellow")
  1690. Shell.Material = "Metal"
  1691. Shell.CanCollide = true
  1692. Shell.CustomPhysicalProperties = PhysicalProperties.new(0.2, 3, 1, 1, 1)
  1693. Shell.Size = Vector3.new(0.15, 0.3, 0.15) * Scale
  1694. Shell.CFrame = BEX.CFrame * CFrame.new(0.5, 0.5, 0) * CFrame.Angles(math.rad(-90), 0, 0)
  1695. Shell.Velocity = ((BEX.CFrame * CFrame.new(-5, 0, math.random(-2, 2))).p - BEX.CFrame.p) * 5 * Scale
  1696. local Mesh = Instance.new("CylinderMesh", Shell)
  1697. Mesh.Scale = Vector3.new(0.15, 0.3, 0.15) * Scale / Shell.Size
  1698. Spawn(function()
  1699. wait(0.1)
  1700. for i = 1, 10 do
  1701. Shell.Transparency = Shell.Transparency + 0.1
  1702. swait()
  1703. end
  1704. Shell:Destroy()
  1705. end)
  1706. if currentAnim == "Idling" then
  1707. for i = 0, 0.05, 0.01 do
  1708. angleSpeed = 1
  1709. axisSpeed = 1
  1710. change = 0.5
  1711. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1712. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(10), math.rad(85)), AnimFSpd)
  1713. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(35)), AnimFSpd)
  1714. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(-5), math.rad(0)), AnimFSpd)
  1715. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(-5), math.rad(0)), AnimFSpd)
  1716. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(85), math.rad(0)), AnimFSpd)
  1717. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(-85), math.rad(20)), AnimFSpd)
  1718. swait()
  1719. end
  1720. for i = 0, 0.05, 0.01 do
  1721. angleSpeed = 1
  1722. axisSpeed = 1
  1723. change = 0.5
  1724. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1725. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(80)), AnimFSpd)
  1726. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), AnimFSpd)
  1727. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), AnimFSpd)
  1728. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), AnimFSpd)
  1729. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(80), math.rad(0)), AnimFSpd)
  1730. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-80), math.rad(0)), AnimFSpd)
  1731. swait()
  1732. end
  1733. elseif currentAnim == "Falling" then
  1734. for i = 0, 0.05, 0.01 do
  1735. angleSpeed = 1
  1736. axisSpeed = 1
  1737. change = 0.5
  1738. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1739. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, 0) * c_angles(math.rad(105), math.rad(0), math.rad(0)), AnimFSpd)
  1740. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.5, 0.5, -0.5) * c_angles(math.rad(105), math.rad(0), math.rad(45)), AnimFSpd)
  1741. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), AnimFSpd)
  1742. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), AnimFSpd)
  1743. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), AnimFSpd)
  1744. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(0), math.rad(0)), AnimFSpd)
  1745. end
  1746. for i = 0, 0.05, 0.01 do
  1747. angleSpeed = 1
  1748. axisSpeed = 1
  1749. change = 0.5
  1750. GunPoint.cframe = CFrame.new(rootPart.Position, mouse.Hit.Position)
  1751. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, 0) * c_angles(math.rad(100), math.rad(0), math.rad(0)), AnimFSpd)
  1752. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.5, 0.5, -0.5) * c_angles(math.rad(100), math.rad(0), math.rad(45)), AnimFSpd)
  1753. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), AnimFSpd)
  1754. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), AnimFSpd)
  1755. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), AnimFSpd)
  1756. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(0)), AnimFSpd)
  1757. swait()
  1758. end
  1759. end
  1760. shoot = false
  1761. end
  1762. end
  1763. end
  1764. GunModel.Transparency = 1
  1765. GunPoint.Parent = nil
  1766. Animations = false
  1767. attack2 = false
  1768. attack = false
  1769. end
  1770. mouse.KeyUp:connect(function(key)
  1771. if key == "f" and attack == false and crouching == false then
  1772. if transformed == false and transformed2 == false then
  1773. Gunfire()
  1774. elseif transformed == true and transformed2 == true then
  1775. Rock(mouse)
  1776. end
  1777. end
  1778. end)
  1779. mouse.KeyUp:connect(function(key)
  1780. if key == "f" and gun == true and crouching == false then
  1781. putback = true
  1782. end
  1783. end)
  1784. function UpperCut()
  1785. attack = true
  1786. attack2 = true
  1787. Animations = true
  1788. crouching = false
  1789. local rng2 = Instance.new("Part", game.Workspace)
  1790. rng2.Anchored = true
  1791. rng2.BrickColor = BrickColor.new("Really black")
  1792. rng2.CanCollide = false
  1793. rng2.FormFactor = 3
  1794. rng2.Name = "Ring"
  1795. rng2.Size = Vector3.new(1, 1, 1)
  1796. rng2.Transparency = 0.35
  1797. rng2.TopSurface = 0
  1798. rng2.BottomSurface = 0
  1799. rng2.CFrame = rng2.CFrame * CFrame.fromEulerAnglesXYZ(0, 0, math.rad(180))
  1800. rng2.Position = rootPart.Position - Vector3.new(0, -6, 1)
  1801. local rngm2 = Instance.new("SpecialMesh", rng2)
  1802. rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1803. rngm2.Scale = Vector3.new(3, 0, 3)
  1804. Spawn(function()
  1805. for i = 1, 60, 2 do
  1806. rngm2.Scale = Vector3.new(3 + i * 0.3, 10 - i * 0.1, 3 + i * 0.3)
  1807. rng2.Transparency = i / 30
  1808. wait()
  1809. end
  1810. wait()
  1811. rng2:Destroy()
  1812. end)
  1813. S = Instance.new("Sound")
  1814. S.Parent = rootPart
  1815. S.SoundId = "rbxassetid://2767090"
  1816. S.Volume = 10
  1817. S.Looped = false
  1818. S.Pitch = 0.8
  1819. S:Play()
  1820. S = Instance.new("Sound")
  1821. S.Parent = Character.Torso
  1822. S.SoundId = "rbxassetid://1146552988"
  1823. S.Volume = 10
  1824. S.Looped = false
  1825. S.Pitch = 1
  1826. S.TimePosition = 0.4
  1827. S:Play()
  1828. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 14)) do
  1829. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  1830. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(10, 15)
  1831. v:FindFirstChild("Humanoid").PlatformStand = false
  1832. v:FindFirstChild("HumanoidRootPart").Velocity = v:FindFirstChild("HumanoidRootPart").CFrame.upVector * 165
  1833. else
  1834. end
  1835. end
  1836. if transformed == false then
  1837. for i = 0, 0.05, 0.01 do
  1838. angleSpeed = 1
  1839. axisSpeed = 1
  1840. change = 0.5
  1841. Trace()
  1842. rootPart.CFrame = rootPart.CFrame * CFrame.new(0, 2, 0)
  1843. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(100), math.rad(0), math.rad(0)), 0.4)
  1844. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(-20)), 0.4)
  1845. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.4)
  1846. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  1847. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1848. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  1849. swait()
  1850. end
  1851. for i = 0, 0.2, 0.01 do
  1852. angleSpeed = 1
  1853. axisSpeed = 1
  1854. change = 0.5
  1855. Trace()
  1856. rootPart.Velocity = rootPart.CFrame.upVector * 100
  1857. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.4)
  1858. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(-20)), 0.4)
  1859. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.4)
  1860. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  1861. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1862. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  1863. swait()
  1864. end
  1865. elseif transformed == true then
  1866. for i = 0, 0.05, 0.01 do
  1867. angleSpeed = 1
  1868. axisSpeed = 1
  1869. change = 0.5
  1870. rootPart.CFrame = rootPart.CFrame * CFrame.new(0, 2, 0)
  1871. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1872. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(100), math.rad(0), math.rad(0)), 0.4)
  1873. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.4)
  1874. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  1875. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1876. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  1877. swait()
  1878. end
  1879. for i = 0, 0.2, 0.01 do
  1880. angleSpeed = 1
  1881. axisSpeed = 1
  1882. change = 0.5
  1883. rootPart.Velocity = rootPart.CFrame.upVector * 100
  1884. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1885. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(170), math.rad(0), math.rad(0)), 0.4)
  1886. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.4)
  1887. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.4)
  1888. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  1889. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
  1890. swait()
  1891. end
  1892. end
  1893. Animations = false
  1894. attack2 = false
  1895. attack = false
  1896. end
  1897. crouching = false
  1898. mouse.KeyDown:connect(function(key)
  1899. if key == "c" and attack == false and crouching == false then
  1900. crouching = true
  1901. Animations = true
  1902. Trace()
  1903. while crouching == true do
  1904. if transformed == false then
  1905. angleSpeed = 1
  1906. axisSpeed = 1
  1907. change = 0.5
  1908. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60) + -math.sin(sine / 15) / 10, math.rad(0), math.rad(45)), 0.9)
  1909. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.2 + -math.sin(sine / 15) / 10, -1) * c_angles(math.rad(60), math.rad(20), math.rad(10)), 0.9)
  1910. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.9)
  1911. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(90), math.rad(0), math.rad(40)), 0.9)
  1912. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60), math.rad(0), math.rad(-20)), 0.9)
  1913. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(30), math.rad(0)), 0.9)
  1914. swait()
  1915. elseif transformed == true then
  1916. angleSpeed = 1
  1917. axisSpeed = 1
  1918. change = 0.5
  1919. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.2 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(60), math.rad(20), math.rad(10)), 0.9)
  1920. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + -math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60) + -math.sin(sine / 15) / 10, math.rad(0), math.rad(-45)), 0.9)
  1921. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.9)
  1922. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(90), math.rad(0), math.rad(40)), 0.9)
  1923. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60), math.rad(0), math.rad(-20)), 0.9)
  1924. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(30), math.rad(0)), 0.9)
  1925. swait()
  1926. end
  1927. end
  1928. end
  1929. end)
  1930. mouse.KeyUp:connect(function(key)
  1931. if key == "c" and attack == false then
  1932. crouching = false
  1933. Animations = false
  1934. end
  1935. end)
  1936. function Laugh()
  1937. attack = true
  1938. attack2 = true
  1939. Animations = true
  1940. S = Instance.new("Sound")
  1941. S.Parent = rootPart
  1942. S.SoundId = "rbxassetid://1278007556"
  1943. S.Volume = 10
  1944. S.Looped = false
  1945. S.Pitch = 1
  1946. S:Play()
  1947. Head.face.Texture = "rbxassetid://853964940"
  1948. for i = 0, 0.2, 0.01 do
  1949. angleSpeed = 1
  1950. axisSpeed = 1
  1951. change = 0.5
  1952. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(5)), 0.15)
  1953. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  1954. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  1955. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  1956. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  1957. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-20) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  1958. swait()
  1959. end
  1960. Head.face.Texture = "rbxassetid://144873321"
  1961. for i = 0, 0.7, 0.01 do
  1962. angleSpeed = 1
  1963. axisSpeed = 1
  1964. change = 5
  1965. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(5)), 0.15)
  1966. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  1967. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  1968. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  1969. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  1970. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0 + math.sin(sine / 15) / 10) * c_angles(math.rad(15) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  1971. swait()
  1972. end
  1973. Head.face.Texture = "rbxassetid://315622231"
  1974. Animations = false
  1975. attack2 = false
  1976. attack = false
  1977. end
  1978. mouse.KeyDown:connect(function(key)
  1979. if key == "y" and attack == false and transformed == false then
  1980. Laugh()
  1981. end
  1982. end)
  1983. transformed = false
  1984. transformed2 = false
  1985. transforming = false
  1986. function Uroboros()
  1987. attack = true
  1988. attack2 = true
  1989. Animations = true
  1990. transforming = true
  1991. Theme.SoundId = "rbxassetid://856054316"
  1992. Theme.TimePosition = 0.8
  1993. Theme:Play()
  1994. for i = 0, 0.5, 0.01 do
  1995. angleSpeed = 1
  1996. axisSpeed = 1
  1997. change = 0.5
  1998. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.2 + math.sin(sine / 15) / 10, -1) * c_angles(math.rad(60), math.rad(20), math.rad(10)), 0.15)
  1999. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + -math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60) + -math.sin(sine / 15) / 10, math.rad(0), math.rad(-45)), 0.15)
  2000. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.15)
  2001. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(90), math.rad(0), math.rad(40)), 0.15)
  2002. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60), math.rad(0), math.rad(-20)), 0.15)
  2003. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(30), math.rad(0)), 0.15)
  2004. swait()
  2005. end
  2006. faceinfect = Instance.new("Decal", Head)
  2007. faceinfect.Name = "Uroboros"
  2008. faceinfect.Face = "Front"
  2009. faceinfect.Texture = "rbxassetid://1920646704"
  2010. local rng2 = Instance.new("Part", Character)
  2011. rng2.Anchored = true
  2012. rng2.BrickColor = BrickColor.new("Really black")
  2013. rng2.CanCollide = false
  2014. rng2.FormFactor = 3
  2015. rng2.Name = "Shockwave"
  2016. rng2.Size = Vector3.new(1, 1, 1)
  2017. rng2.Transparency = 0.35
  2018. rng2.TopSurface = 0
  2019. rng2.BottomSurface = 0
  2020. rng2.CFrame = rootPart.CFrame
  2021. local rngm2 = Instance.new("SpecialMesh", rng2)
  2022. rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2023. rngm2.Scale = Vector3.new(1, 0, 1)
  2024. rngm2.Offset = Vector3.new(0, 0, -2)
  2025. Spawn(function()
  2026. for i = 1, 60, 2 do
  2027. rngm2.Scale = Vector3.new(1 + i * 0.3, 5 - i * 0.1, 1 + i * 0.3)
  2028. rng2.Transparency = i / 30
  2029. rng2.CFrame = rng2.CFrame - Vector3.new(0, 0.2, 0)
  2030. swait()
  2031. end
  2032. wait()
  2033. rng2:Destroy()
  2034. end)
  2035. local rng2 = Instance.new("Part", Character)
  2036. rng2.Anchored = true
  2037. rng2.BrickColor = BrickColor.new("Really black")
  2038. rng2.CanCollide = false
  2039. rng2.FormFactor = 3
  2040. rng2.Name = "Shockwave"
  2041. rng2.Size = Vector3.new(1, 1, 1)
  2042. rng2.Transparency = 0.35
  2043. rng2.TopSurface = 0
  2044. rng2.BottomSurface = 0
  2045. rng2.CFrame = rootPart.CFrame
  2046. local rngm2 = Instance.new("SpecialMesh", rng2)
  2047. rngm2.Scale = Vector3.new(1, 0, 1)
  2048. rngm2.Offset = Vector3.new(0, 0.5, -1)
  2049. rngm2.MeshType = "Sphere"
  2050. Spawn(function()
  2051. for i = 1, 60, 2 do
  2052. rngm2.Scale = Vector3.new(5 + i * 0.3, 5 + i * 0.3, 5 + i * 0.3)
  2053. rng2.Transparency = i / 60
  2054. swait()
  2055. end
  2056. wait()
  2057. rng2:Destroy()
  2058. end)
  2059. local RArm1 = Instance.new("Part", Right_Arm)
  2060. RArm1.Name = "Blade"
  2061. RArm1.Shape = Enum.PartType.Ball
  2062. RArm1.CanCollide = false
  2063. RArm1.BrickColor = BrickColor.new("Medium stone grey")
  2064. RArm1.Transparency = 0
  2065. RArm1.Material = "Grass"
  2066. RArm1.Size = Vector3.new(0.1, 0.1, 0.1)
  2067. RArm1.TopSurface = Enum.SurfaceType.Smooth
  2068. RArm1.BottomSurface = Enum.SurfaceType.Smooth
  2069. local RArm1Weld = Instance.new("Weld", RArm1)
  2070. RArm1Weld.Part0 = Right_Arm
  2071. RArm1Weld.Part1 = RArm1
  2072. RArm1Weld.C1 = CFrame.new(0.2, -1.3, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(90), math.rad(10))
  2073. RArm1Mesh = Instance.new("FileMesh", RArm1)
  2074. RArm1Mesh.MeshId = "http://www.roblox.com/asset/?id=898849476"
  2075. RArm1Mesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  2076. RArm1Mesh.Scale = Vector3.new(0.007, 0.0035, 0.007)
  2077. local RArm2 = Instance.new("Part", Right_Arm)
  2078. RArm2.Name = "Blade"
  2079. RArm2.Shape = Enum.PartType.Ball
  2080. RArm2.CanCollide = false
  2081. RArm2.BrickColor = BrickColor.new("Medium stone grey")
  2082. RArm2.Transparency = 0
  2083. RArm2.Material = "Grass"
  2084. RArm2.Size = Vector3.new(0.1, 0.1, 0.1)
  2085. RArm2.TopSurface = Enum.SurfaceType.Smooth
  2086. RArm2.BottomSurface = Enum.SurfaceType.Smooth
  2087. local RArm2Weld = Instance.new("Weld", RArm2)
  2088. RArm2Weld.Part0 = Right_Arm
  2089. RArm2Weld.Part1 = RArm2
  2090. RArm2Weld.C1 = CFrame.new(-0.2, -1.5, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(-10))
  2091. RArm2Weld = Instance.new("FileMesh", RArm2)
  2092. RArm2Weld.MeshId = "http://www.roblox.com/asset/?id=898849476"
  2093. RArm2Weld.TextureId = "http://www.roblox.com/asset/?id=51177552"
  2094. RArm2Weld.Scale = Vector3.new(0.007, 0.0035, 0.007)
  2095. RArm2Mesh = Instance.new("FileMesh", RArm2)
  2096. RArm2Mesh.MeshId = "http://www.roblox.com/asset/?id=898849476"
  2097. RArm2Mesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  2098. RArm2Mesh.Scale = Vector3.new(0.007, 0.0035, 0.007)
  2099. local RArm3 = Instance.new("Part", Right_Arm)
  2100. RArm3.Name = "Metal"
  2101. RArm3.Shape = Enum.PartType.Ball
  2102. RArm3.CanCollide = false
  2103. RArm3.BrickColor = BrickColor.new("Really black")
  2104. RArm3.Transparency = 0
  2105. RArm3.Material = "DiamondPlate"
  2106. RArm3.Size = Vector3.new(0.1, 0.1, 0.1)
  2107. RArm3.TopSurface = Enum.SurfaceType.Smooth
  2108. RArm3.BottomSurface = Enum.SurfaceType.Smooth
  2109. local RArm3Weld = Instance.new("Weld", RArm3)
  2110. RArm3Weld.Part0 = Right_Arm
  2111. RArm3Weld.Part1 = RArm3
  2112. RArm3Weld.C1 = CFrame.new(0, -0.4, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(0))
  2113. RArm3Mesh = Instance.new("FileMesh", RArm3)
  2114. RArm3Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2115. RArm3Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2116. local RArm4 = Instance.new("Part", Right_Arm)
  2117. RArm4.Name = "Metal"
  2118. RArm4.Shape = Enum.PartType.Ball
  2119. RArm4.CanCollide = false
  2120. RArm4.BrickColor = BrickColor.new("Really black")
  2121. RArm4.Transparency = 0
  2122. RArm4.Material = "DiamondPlate"
  2123. RArm4.Size = Vector3.new(0.1, 0.1, 0.1)
  2124. RArm4.TopSurface = Enum.SurfaceType.Smooth
  2125. RArm4.BottomSurface = Enum.SurfaceType.Smooth
  2126. local RArm4Weld = Instance.new("Weld", RArm4)
  2127. RArm4Weld.Part0 = Right_Arm
  2128. RArm4Weld.Part1 = RArm4
  2129. RArm4Weld.C1 = CFrame.new(0, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(0))
  2130. RArm4Mesh = Instance.new("FileMesh", RArm4)
  2131. RArm4Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2132. RArm4Mesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2133. RArm4Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2134. local RArm4 = Instance.new("Part", Right_Arm)
  2135. RArm4.Name = "Metal"
  2136. RArm4.Shape = Enum.PartType.Ball
  2137. RArm4.CanCollide = false
  2138. RArm4.BrickColor = BrickColor.new("Really black")
  2139. RArm4.Transparency = 0
  2140. RArm4.Material = "DiamondPlate"
  2141. RArm4.Size = Vector3.new(0.1, 0.1, 0.1)
  2142. RArm4.TopSurface = Enum.SurfaceType.Smooth
  2143. RArm4.BottomSurface = Enum.SurfaceType.Smooth
  2144. local RArm4Weld = Instance.new("Weld", RArm4)
  2145. RArm4Weld.Part0 = Right_Arm
  2146. RArm4Weld.Part1 = RArm4
  2147. RArm4Weld.C1 = CFrame.new(0, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(-90), math.rad(0))
  2148. RArm4Mesh = Instance.new("FileMesh", RArm4)
  2149. RArm4Mesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2150. RArm4Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2151. RArm4Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2152. local Tentacle = Instance.new("Part", Right_Arm)
  2153. Tentacle.Name = "Tentacle"
  2154. Tentacle.Shape = Enum.PartType.Ball
  2155. Tentacle.CanCollide = false
  2156. Tentacle.BrickColor = BrickColor.new("Really black")
  2157. Tentacle.Transparency = 0
  2158. Tentacle.Material = "DiamondPlate"
  2159. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2160. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2161. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2162. local TentacleWeld = Instance.new("Weld", Tentacle)
  2163. TentacleWeld.Part0 = Right_Arm
  2164. TentacleWeld.Part1 = Tentacle
  2165. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(180))
  2166. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2167. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2168. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2169. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2170. local Tentacle = Instance.new("Part", Right_Arm)
  2171. Tentacle.Name = "Tentacle"
  2172. Tentacle.Shape = Enum.PartType.Ball
  2173. Tentacle.CanCollide = false
  2174. Tentacle.BrickColor = BrickColor.new("Really black")
  2175. Tentacle.Transparency = 0
  2176. Tentacle.Material = "DiamondPlate"
  2177. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2178. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2179. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2180. local TentacleWeld = Instance.new("Weld", Tentacle)
  2181. TentacleWeld.Part0 = Right_Arm
  2182. TentacleWeld.Part1 = Tentacle
  2183. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(180))
  2184. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2185. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2186. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2187. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2188. local Tentacle = Instance.new("Part", Right_Arm)
  2189. Tentacle.Name = "Blade"
  2190. Tentacle.Shape = Enum.PartType.Ball
  2191. Tentacle.CanCollide = false
  2192. Tentacle.BrickColor = BrickColor.new("Really black")
  2193. Tentacle.Transparency = 0
  2194. Tentacle.Material = "DiamondPlate"
  2195. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2196. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2197. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2198. local TentacleWeld = Instance.new("Weld", Tentacle)
  2199. TentacleWeld.Part0 = Right_Arm
  2200. TentacleWeld.Part1 = Tentacle
  2201. TentacleWeld.C1 = CFrame.new(0, 0, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(100), math.rad(180))
  2202. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2203. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2204. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2205. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2206. local Tentacle = Instance.new("Part", Right_Arm)
  2207. Tentacle.Name = "Blade"
  2208. Tentacle.Shape = Enum.PartType.Ball
  2209. Tentacle.CanCollide = false
  2210. Tentacle.BrickColor = BrickColor.new("Really black")
  2211. Tentacle.Transparency = 0
  2212. Tentacle.Material = "DiamondPlate"
  2213. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2214. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2215. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2216. local TentacleWeld = Instance.new("Weld", Tentacle)
  2217. TentacleWeld.Part0 = Right_Arm
  2218. TentacleWeld.Part1 = Tentacle
  2219. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(-45), math.rad(180))
  2220. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2221. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2222. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2223. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2224. local Tors = Instance.new("Part", Character)
  2225. Tors.Name = "Toor"
  2226. Tors.CanCollide = false
  2227. Tors.BrickColor = BrickColor.new("Really black")
  2228. Tors.Transparency = 0
  2229. Tors.Material = "Metal"
  2230. Tors.Size = Vector3.new(0.1, 0.1, 0.1)
  2231. Tors.TopSurface = Enum.SurfaceType.Smooth
  2232. Tors.BottomSurface = Enum.SurfaceType.Smooth
  2233. local TorsWeld = Instance.new("Weld", Tors)
  2234. TorsWeld.Part0 = Torso
  2235. TorsWeld.Part1 = Tors
  2236. TorsWeld.C1 = CFrame.new(0, 0.44, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(180))
  2237. TMesh = Instance.new("SpecialMesh", Tors)
  2238. TMesh.Scale = Vector3.new(11.6, 11.6, 11.6)
  2239. TMesh.TextureId = "rbxassetid://74620702"
  2240. TMesh.MeshType = "Wedge"
  2241. local Tentacle = Instance.new("Part", Torso)
  2242. Tentacle.Name = "Blade"
  2243. Tentacle.Shape = Enum.PartType.Ball
  2244. Tentacle.CanCollide = false
  2245. Tentacle.BrickColor = BrickColor.new("Really black")
  2246. Tentacle.Transparency = 0
  2247. Tentacle.Material = "DiamondPlate"
  2248. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2249. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2250. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2251. local TentacleWeld = Instance.new("Weld", Tentacle)
  2252. TentacleWeld.Part0 = Torso
  2253. TentacleWeld.Part1 = Tentacle
  2254. TentacleWeld.C1 = CFrame.new(0.5, 0.5, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(90))
  2255. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2256. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2257. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2258. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2259. local Tentacle = Instance.new("Part", Torso)
  2260. Tentacle.Name = "Blade"
  2261. Tentacle.Shape = Enum.PartType.Ball
  2262. Tentacle.CanCollide = false
  2263. Tentacle.BrickColor = BrickColor.new("Really black")
  2264. Tentacle.Transparency = 0
  2265. Tentacle.Material = "DiamondPlate"
  2266. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2267. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2268. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2269. local TentacleWeld = Instance.new("Weld", Tentacle)
  2270. TentacleWeld.Part0 = Torso
  2271. TentacleWeld.Part1 = Tentacle
  2272. TentacleWeld.C1 = CFrame.new(0.5, 0.5, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(45))
  2273. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2274. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2275. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2276. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2277. local Tentacle = Instance.new("Part", Torso)
  2278. Tentacle.Name = "Blade"
  2279. Tentacle.Shape = Enum.PartType.Ball
  2280. Tentacle.CanCollide = false
  2281. Tentacle.BrickColor = BrickColor.new("Really black")
  2282. Tentacle.Transparency = 0
  2283. Tentacle.Material = "DiamondPlate"
  2284. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2285. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2286. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2287. local TentacleWeld = Instance.new("Weld", Tentacle)
  2288. TentacleWeld.Part0 = Torso
  2289. TentacleWeld.Part1 = Tentacle
  2290. TentacleWeld.C1 = CFrame.new(0.6, 0.5, -0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(150))
  2291. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2292. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2293. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2294. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2295. local Tentacle = Instance.new("Part", Torso)
  2296. Tentacle.Name = "Blade"
  2297. Tentacle.Shape = Enum.PartType.Ball
  2298. Tentacle.CanCollide = false
  2299. Tentacle.BrickColor = BrickColor.new("Really black")
  2300. Tentacle.Transparency = 0
  2301. Tentacle.Material = "DiamondPlate"
  2302. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2303. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2304. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2305. local TentacleWeld = Instance.new("Weld", Tentacle)
  2306. TentacleWeld.Part0 = Torso
  2307. TentacleWeld.Part1 = Tentacle
  2308. TentacleWeld.C1 = CFrame.new(-0.8, 0.5, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(-90))
  2309. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2310. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2311. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2312. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2313. local Tentacle = Instance.new("Part", Torso)
  2314. Tentacle.Name = "Blade"
  2315. Tentacle.Shape = Enum.PartType.Ball
  2316. Tentacle.CanCollide = false
  2317. Tentacle.BrickColor = BrickColor.new("Really black")
  2318. Tentacle.Transparency = 0
  2319. Tentacle.Material = "DiamondPlate"
  2320. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2321. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2322. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2323. local TentacleWeld = Instance.new("Weld", Tentacle)
  2324. TentacleWeld.Part0 = Torso
  2325. TentacleWeld.Part1 = Tentacle
  2326. TentacleWeld.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0))
  2327. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2328. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2329. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2330. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2331. local Tentacle = Instance.new("Part", Torso)
  2332. Tentacle.Name = "Blade"
  2333. Tentacle.Shape = Enum.PartType.Ball
  2334. Tentacle.CanCollide = false
  2335. Tentacle.BrickColor = BrickColor.new("Really black")
  2336. Tentacle.Transparency = 0
  2337. Tentacle.Material = "DiamondPlate"
  2338. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2339. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2340. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2341. local TentacleWeld = Instance.new("Weld", Tentacle)
  2342. TentacleWeld.Part0 = Torso
  2343. TentacleWeld.Part1 = Tentacle
  2344. TentacleWeld.C1 = CFrame.new(0.5, 0.5, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(60))
  2345. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2346. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2347. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2348. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2349. local Tentacle = Instance.new("Part", Torso)
  2350. Tentacle.Name = "Blade"
  2351. Tentacle.Shape = Enum.PartType.Ball
  2352. Tentacle.CanCollide = false
  2353. Tentacle.BrickColor = BrickColor.new("Really black")
  2354. Tentacle.Transparency = 0
  2355. Tentacle.Material = "DiamondPlate"
  2356. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2357. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2358. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2359. local TentacleWeld = Instance.new("Weld", Tentacle)
  2360. TentacleWeld.Part0 = Torso
  2361. TentacleWeld.Part1 = Tentacle
  2362. TentacleWeld.C1 = CFrame.new(0.5, -0.5, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(65))
  2363. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2364. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2365. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2366. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2367. local Tentacle = Instance.new("Part", Torso)
  2368. Tentacle.Name = "Blade"
  2369. Tentacle.Shape = Enum.PartType.Ball
  2370. Tentacle.CanCollide = false
  2371. Tentacle.BrickColor = BrickColor.new("Really black")
  2372. Tentacle.Transparency = 0
  2373. Tentacle.Material = "DiamondPlate"
  2374. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2375. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2376. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2377. local TentacleWeld = Instance.new("Weld", Tentacle)
  2378. TentacleWeld.Part0 = Torso
  2379. TentacleWeld.Part1 = Tentacle
  2380. TentacleWeld.C1 = CFrame.new(0.5, -0.5, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(90))
  2381. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2382. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2383. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2384. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2385. local Tentacle = Instance.new("Part", Torso)
  2386. Tentacle.Name = "Blade"
  2387. Tentacle.Shape = Enum.PartType.Ball
  2388. Tentacle.CanCollide = false
  2389. Tentacle.BrickColor = BrickColor.new("Really black")
  2390. Tentacle.Transparency = 0
  2391. Tentacle.Material = "DiamondPlate"
  2392. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2393. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2394. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2395. local TentacleWeld = Instance.new("Weld", Tentacle)
  2396. TentacleWeld.Part0 = Torso
  2397. TentacleWeld.Part1 = Tentacle
  2398. TentacleWeld.C1 = CFrame.new(0.5, -0.5, 0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(45))
  2399. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2400. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2401. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2402. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2403. local Tentacle = Instance.new("Part", Torso)
  2404. Tentacle.Name = "Blade"
  2405. Tentacle.Shape = Enum.PartType.Ball
  2406. Tentacle.CanCollide = false
  2407. Tentacle.BrickColor = BrickColor.new("Really black")
  2408. Tentacle.Transparency = 0
  2409. Tentacle.Material = "DiamondPlate"
  2410. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2411. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2412. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2413. local TentacleWeld = Instance.new("Weld", Tentacle)
  2414. TentacleWeld.Part0 = Torso
  2415. TentacleWeld.Part1 = Tentacle
  2416. TentacleWeld.C1 = CFrame.new(0.6, -0.5, -0.3) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(150))
  2417. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2418. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2419. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2420. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2421. local Tentacle = Instance.new("Part", Torso)
  2422. Tentacle.Name = "Blade"
  2423. Tentacle.Shape = Enum.PartType.Ball
  2424. Tentacle.CanCollide = false
  2425. Tentacle.BrickColor = BrickColor.new("Really black")
  2426. Tentacle.Transparency = 0
  2427. Tentacle.Material = "DiamondPlate"
  2428. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2429. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2430. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2431. local TentacleWeld = Instance.new("Weld", Tentacle)
  2432. TentacleWeld.Part0 = Torso
  2433. TentacleWeld.Part1 = Tentacle
  2434. TentacleWeld.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0))
  2435. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2436. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2437. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2438. TentacleMesh.Scale = Vector3.new(0.2, 0.2, 0.2)
  2439. local Tentacle = Instance.new("Part", Torso)
  2440. Tentacle.Name = "Blade"
  2441. Tentacle.Shape = Enum.PartType.Ball
  2442. Tentacle.CanCollide = false
  2443. Tentacle.BrickColor = BrickColor.new("Really black")
  2444. Tentacle.Transparency = 0
  2445. Tentacle.Material = "DiamondPlate"
  2446. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2447. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2448. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2449. local TentacleWeld = Instance.new("Weld", Tentacle)
  2450. TentacleWeld.Part0 = Torso
  2451. TentacleWeld.Part1 = Tentacle
  2452. TentacleWeld.C1 = CFrame.new(1.5, -0.35, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-85), math.rad(-20), math.rad(120))
  2453. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2454. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2455. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2456. TentacleMesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  2457. local Heart = Instance.new("Part", Character)
  2458. Heart.Name = "Heart"
  2459. Heart.Shape = Enum.PartType.Ball
  2460. Heart.CanCollide = false
  2461. Heart.BrickColor = BrickColor.new("Neon orange")
  2462. Heart.Transparency = 0.5
  2463. Heart.Material = "Neon"
  2464. Heart.Size = Vector3.new(0.4, 0.4, 0.4)
  2465. Heart.TopSurface = Enum.SurfaceType.Smooth
  2466. Heart.BottomSurface = Enum.SurfaceType.Smooth
  2467. local Weld = Instance.new("Weld", Heart)
  2468. Weld.Part0 = Torso
  2469. Weld.Part1 = Heart
  2470. Weld.C1 = CFrame.new(0.1, -0.5, 0.45)
  2471. local HeartGlow = Instance.new("SurfaceLight")
  2472. HeartGlow.Color = Color3.fromRGB(213, 115, 61)
  2473. HeartGlow.Range = 6
  2474. HeartGlow.Brightness = 10
  2475. HeartGlow.Parent = Heart
  2476. local Heart = Instance.new("Part", Character)
  2477. Heart.Name = "Heart"
  2478. Heart.Shape = Enum.PartType.Ball
  2479. Heart.CanCollide = false
  2480. Heart.BrickColor = BrickColor.new("Really red")
  2481. Heart.Transparency = 0
  2482. Heart.Material = "Granite"
  2483. Heart.Size = Vector3.new(0.35, 0.35, 0.35)
  2484. Heart.TopSurface = Enum.SurfaceType.Smooth
  2485. Heart.BottomSurface = Enum.SurfaceType.Smooth
  2486. local Weld = Instance.new("Weld", Heart)
  2487. Weld.Part0 = Torso
  2488. Weld.Part1 = Heart
  2489. Weld.C1 = CFrame.new(0.1, -0.5, 0.45)
  2490. local Heart = Instance.new("Part", Character)
  2491. Heart.Name = "Heart"
  2492. Heart.Shape = Enum.PartType.Ball
  2493. Heart.CanCollide = false
  2494. Heart.BrickColor = BrickColor.new("Neon orange")
  2495. Heart.Transparency = 0.5
  2496. Heart.Material = "Neon"
  2497. Heart.Size = Vector3.new(0.4, 0.4, 0.4)
  2498. Heart.TopSurface = Enum.SurfaceType.Smooth
  2499. Heart.BottomSurface = Enum.SurfaceType.Smooth
  2500. local Weld = Instance.new("Weld", Heart)
  2501. Weld.Part0 = Torso
  2502. Weld.Part1 = Heart
  2503. Weld.C1 = CFrame.new(0.1, -0.5, -0.45)
  2504. local HeartGlow = Instance.new("SurfaceLight")
  2505. HeartGlow.Color = Color3.fromRGB(213, 115, 61)
  2506. HeartGlow.Range = 6
  2507. HeartGlow.Brightness = 10
  2508. HeartGlow.Parent = Heart
  2509. local Heart = Instance.new("Part", Character)
  2510. Heart.Name = "Heart"
  2511. Heart.Shape = Enum.PartType.Ball
  2512. Heart.CanCollide = false
  2513. Heart.BrickColor = BrickColor.new("Really red")
  2514. Heart.Transparency = 0
  2515. Heart.Material = "Granite"
  2516. Heart.Size = Vector3.new(0.35, 0.35, 0.35)
  2517. Heart.TopSurface = Enum.SurfaceType.Smooth
  2518. Heart.BottomSurface = Enum.SurfaceType.Smooth
  2519. local Weld = Instance.new("Weld", Heart)
  2520. Weld.Part0 = Torso
  2521. Weld.Part1 = Heart
  2522. Weld.C1 = CFrame.new(0.1, -0.5, -0.45)
  2523. Character["Body Colors"].RightArmColor = BrickColor.new("Really black")
  2524. Head.face.Texture = "rbxassetid://1895706696"
  2525. ShadesMesh.MeshId = "rbxassetid://0"
  2526. shirt.ShirtTemplate = "rbxassetid://1266142884"
  2527. for i, v in pairs(Torso:GetChildren()) do
  2528. if v:IsA("ParticleEmitter") then
  2529. v:Destroy()
  2530. end
  2531. end
  2532. for i, v in pairs(Left_Arm:GetChildren()) do
  2533. if v:IsA("ParticleEmitter") then
  2534. v:Destroy()
  2535. end
  2536. end
  2537. S = Instance.new("Sound", rootPart)
  2538. S.Volume = 8
  2539. S.SoundId = "rbxassetid://658228911"
  2540. S:Play()
  2541. for i = 0, 0.1, 0.01 do
  2542. angleSpeed = 1
  2543. axisSpeed = 1
  2544. change = 0.5
  2545. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.2 + math.sin(sine / 15) / 10, -1) * c_angles(math.rad(60), math.rad(20), math.rad(10)), 0.9)
  2546. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.1, 0.5 + -math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60) + -math.sin(sine / 15) / 10, math.rad(0), math.rad(-45)), 0.9)
  2547. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.9)
  2548. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 - math.sin(sine / 15) / 10, 0) * c_angles(math.rad(90), math.rad(0), math.rad(40)), 0.9)
  2549. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-60), math.rad(0), math.rad(-20)), 0.9)
  2550. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(30), math.rad(0)), 0.9)
  2551. swait()
  2552. end
  2553. for i = 0, 0.2, 0.01 do
  2554. angleSpeed = 1
  2555. axisSpeed = 1
  2556. change = 1
  2557. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(45)), 0.15)
  2558. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-30), math.rad(0), math.rad(-45)), 0.15)
  2559. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -1, 0) * c_angles(math.rad(45), math.rad(5), math.rad(0)), 0.15)
  2560. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -1, 0) * c_angles(math.rad(45), math.rad(-5), math.rad(0)), 0.15)
  2561. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-45), math.rad(0), math.rad(0)), 0.15)
  2562. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  2563. swait()
  2564. end
  2565. Animations = false
  2566. transforming = false
  2567. attack2 = false
  2568. attack = false
  2569. transformed = true
  2570. end
  2571. function ThirdForm()
  2572. attack = true
  2573. attack2 = true
  2574. transforming = true
  2575. transformed2 = true
  2576. Animations = true
  2577. Character["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  2578. S = Instance.new("Sound", rootPart)
  2579. S.Volume = 8
  2580. S.SoundId = "rbxassetid://658228911"
  2581. S:Play()
  2582. local rng2 = Instance.new("Part", Character)
  2583. rng2.Anchored = true
  2584. rng2.BrickColor = BrickColor.new("Really black")
  2585. rng2.CanCollide = false
  2586. rng2.FormFactor = 3
  2587. rng2.Name = "Shockwave"
  2588. rng2.Size = Vector3.new(1, 1, 1)
  2589. rng2.Transparency = 0.35
  2590. rng2.TopSurface = 0
  2591. rng2.BottomSurface = 0
  2592. rng2.CFrame = rootPart.CFrame
  2593. local rngm2 = Instance.new("SpecialMesh", rng2)
  2594. rngm2.Scale = Vector3.new(1, 0, 1)
  2595. rngm2.Offset = Vector3.new(0, 0.5, -1)
  2596. rngm2.MeshType = "Sphere"
  2597. Spawn(function()
  2598. for i = 1, 60, 2 do
  2599. rngm2.Scale = Vector3.new(5 + i * 0.3, 5 + i * 0.3, 5 + i * 0.3)
  2600. rng2.Transparency = i / 60
  2601. swait()
  2602. end
  2603. wait()
  2604. rng2:Destroy()
  2605. end)
  2606. Theme.SoundId = "rbxassetid://1277996008"
  2607. Theme.TimePosition = 0.8
  2608. Theme:Play()
  2609. local RArm3 = Instance.new("Part", Left_Arm)
  2610. RArm3.Name = "Metal"
  2611. RArm3.Shape = Enum.PartType.Ball
  2612. RArm3.CanCollide = false
  2613. RArm3.BrickColor = BrickColor.new("Really black")
  2614. RArm3.Transparency = 0
  2615. RArm3.Material = "DiamondPlate"
  2616. RArm3.Size = Vector3.new(0.1, 0.1, 0.1)
  2617. RArm3.TopSurface = Enum.SurfaceType.Smooth
  2618. RArm3.BottomSurface = Enum.SurfaceType.Smooth
  2619. local RArm3Weld = Instance.new("Weld", RArm3)
  2620. RArm3Weld.Part0 = Left_Arm
  2621. RArm3Weld.Part1 = RArm3
  2622. RArm3Weld.C1 = CFrame.new(0, -0.4, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(0))
  2623. RArm3Mesh = Instance.new("FileMesh", RArm3)
  2624. RArm3Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2625. RArm3Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2626. local RArm4 = Instance.new("Part", Left_Arm)
  2627. RArm4.Name = "Metal"
  2628. RArm4.Shape = Enum.PartType.Ball
  2629. RArm4.CanCollide = false
  2630. RArm4.BrickColor = BrickColor.new("Really black")
  2631. RArm4.Transparency = 0
  2632. RArm4.Material = "DiamondPlate"
  2633. RArm4.Size = Vector3.new(0.1, 0.1, 0.1)
  2634. RArm4.TopSurface = Enum.SurfaceType.Smooth
  2635. RArm4.BottomSurface = Enum.SurfaceType.Smooth
  2636. local RArm4Weld = Instance.new("Weld", RArm4)
  2637. RArm4Weld.Part0 = Left_Arm
  2638. RArm4Weld.Part1 = RArm4
  2639. RArm4Weld.C1 = CFrame.new(0, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(90), math.rad(0))
  2640. RArm4Mesh = Instance.new("FileMesh", RArm4)
  2641. RArm4Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2642. RArm4Mesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2643. RArm4Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2644. local RArm4 = Instance.new("Part", Left_Arm)
  2645. RArm4.Name = "Metal"
  2646. RArm4.Shape = Enum.PartType.Ball
  2647. RArm4.CanCollide = false
  2648. RArm4.BrickColor = BrickColor.new("Really black")
  2649. RArm4.Transparency = 0
  2650. RArm4.Material = "DiamondPlate"
  2651. RArm4.Size = Vector3.new(0.1, 0.1, 0.1)
  2652. RArm4.TopSurface = Enum.SurfaceType.Smooth
  2653. RArm4.BottomSurface = Enum.SurfaceType.Smooth
  2654. local RArm4Weld = Instance.new("Weld", RArm4)
  2655. RArm4Weld.Part0 = Left_Arm
  2656. RArm4Weld.Part1 = RArm4
  2657. RArm4Weld.C1 = CFrame.new(0, -0.4, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(75), math.rad(-90), math.rad(0))
  2658. RArm4Mesh = Instance.new("FileMesh", RArm4)
  2659. RArm4Mesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2660. RArm4Mesh.MeshId = "http://www.roblox.com/asset/?id=1188160822"
  2661. RArm4Mesh.Scale = Vector3.new(0.01, 0.015, 0.015)
  2662. local Tentacle = Instance.new("Part", Left_Arm)
  2663. Tentacle.Name = "Tentacle"
  2664. Tentacle.Shape = Enum.PartType.Ball
  2665. Tentacle.CanCollide = false
  2666. Tentacle.BrickColor = BrickColor.new("Really black")
  2667. Tentacle.Transparency = 0
  2668. Tentacle.Material = "DiamondPlate"
  2669. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2670. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2671. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2672. local TentacleWeld = Instance.new("Weld", Tentacle)
  2673. TentacleWeld.Part0 = Left_Arm
  2674. TentacleWeld.Part1 = Tentacle
  2675. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(180))
  2676. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2677. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2678. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2679. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2680. local Tentacle = Instance.new("Part", Left_Arm)
  2681. Tentacle.Name = "Tentacle"
  2682. Tentacle.Shape = Enum.PartType.Ball
  2683. Tentacle.CanCollide = false
  2684. Tentacle.BrickColor = BrickColor.new("Really black")
  2685. Tentacle.Transparency = 0
  2686. Tentacle.Material = "DiamondPlate"
  2687. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2688. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2689. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2690. local TentacleWeld = Instance.new("Weld", Tentacle)
  2691. TentacleWeld.Part0 = Left_Arm
  2692. TentacleWeld.Part1 = Tentacle
  2693. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(180))
  2694. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2695. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2696. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2697. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2698. local Tentacle = Instance.new("Part", Left_Arm)
  2699. Tentacle.Name = "Blade"
  2700. Tentacle.Shape = Enum.PartType.Ball
  2701. Tentacle.CanCollide = false
  2702. Tentacle.BrickColor = BrickColor.new("Really black")
  2703. Tentacle.Transparency = 0
  2704. Tentacle.Material = "DiamondPlate"
  2705. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2706. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2707. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2708. local TentacleWeld = Instance.new("Weld", Tentacle)
  2709. TentacleWeld.Part0 = Left_Arm
  2710. TentacleWeld.Part1 = Tentacle
  2711. TentacleWeld.C1 = CFrame.new(0, 0, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(100), math.rad(180))
  2712. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2713. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2714. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2715. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2716. local Tentacle = Instance.new("Part", Left_Arm)
  2717. Tentacle.Name = "Blade"
  2718. Tentacle.Shape = Enum.PartType.Ball
  2719. Tentacle.CanCollide = false
  2720. Tentacle.BrickColor = BrickColor.new("Really black")
  2721. Tentacle.Transparency = 0
  2722. Tentacle.Material = "DiamondPlate"
  2723. Tentacle.Size = Vector3.new(0.1, 0.1, 0.1)
  2724. Tentacle.TopSurface = Enum.SurfaceType.Smooth
  2725. Tentacle.BottomSurface = Enum.SurfaceType.Smooth
  2726. local TentacleWeld = Instance.new("Weld", Tentacle)
  2727. TentacleWeld.Part0 = Left_Arm
  2728. TentacleWeld.Part1 = Tentacle
  2729. TentacleWeld.C1 = CFrame.new(0, 0.5, -1.5) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(-45), math.rad(180))
  2730. TentacleMesh = Instance.new("FileMesh", Tentacle)
  2731. TentacleMesh.MeshId = "http://www.roblox.com/asset/?id=534615496"
  2732. TentacleMesh.TextureId = "http://www.roblox.com/asset/?id=74620702"
  2733. TentacleMesh.Scale = Vector3.new(1, 1, 1)
  2734. local Tors = Instance.new("Part", Character)
  2735. Tors.Name = "Toor"
  2736. Tors.CanCollide = false
  2737. Tors.BrickColor = BrickColor.new("Really black")
  2738. Tors.Transparency = 0
  2739. Tors.Material = "Metal"
  2740. Tors.Size = Vector3.new(0.1, 0.1, 0.1)
  2741. Tors.TopSurface = Enum.SurfaceType.Smooth
  2742. Tors.BottomSurface = Enum.SurfaceType.Smooth
  2743. local TorsWeld = Instance.new("Weld", Tors)
  2744. TorsWeld.Part0 = Torso
  2745. TorsWeld.Part1 = Tors
  2746. TorsWeld.C1 = CFrame.new(0, 0.44, -0.44) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(90))
  2747. TMesh = Instance.new("SpecialMesh", Tors)
  2748. TMesh.Scale = Vector3.new(11.6, 11.6, 11.6)
  2749. TMesh.TextureId = "rbxassetid://74620702"
  2750. TMesh.MeshType = "Wedge"
  2751. for i = 0, 0.3, 0.01 do
  2752. angleSpeed = 1
  2753. axisSpeed = 1
  2754. change = 0.5
  2755. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(50) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  2756. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(-35), math.rad(-120)), 0.15)
  2757. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(10), math.rad(0)), 0.15)
  2758. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(-10), math.rad(0)), 0.15)
  2759. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.05 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  2760. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(30), math.rad(45), math.rad(0)), 0.15)
  2761. swait()
  2762. end
  2763. Animations = false
  2764. transforming = false
  2765. attack2 = false
  2766. attack = false
  2767. transformed2 = true
  2768. end
  2769. mouse.KeyDown:connect(function(key)
  2770. if key == "p" and attack == false then
  2771. if transformed == false and transformed2 == false then
  2772. Uroboros()
  2773. elseif transformed == true and transformed2 == false then
  2774. ThirdForm()
  2775. end
  2776. end
  2777. end)
  2778. tp = true
  2779. Player:GetMouse().KeyDown:connect(function(k)
  2780. if k == "t" and tp == true then
  2781. tp = false
  2782. S = Instance.new("Sound")
  2783. S.Parent = rootPart
  2784. S.SoundId = "rbxassetid://2767090"
  2785. S.Volume = 10
  2786. S.Looped = false
  2787. S.Pitch = 0.8
  2788. S:Play()
  2789. Trace()
  2790. Character.Head.face.Parent = game.Lighting
  2791. Character.HumanoidRootPart.CFrame = Player:GetMouse().Hit * CFrame.new(0, 3.5, 0)
  2792. game.Lighting.face.Parent = Character.Head
  2793. tp = true
  2794. end
  2795. end)
  2796. talk = math.random(1, 5)
  2797. function CobraPunch()
  2798. attack = true
  2799. Animations = true
  2800. talk = math.random(1, 5)
  2801. if talk == 5 then
  2802. Head.face.Texture = "rbxassetid://1895698679"
  2803. Qe = Instance.new("Sound")
  2804. Qe.Parent = Character.Torso
  2805. Qe.SoundId = "rbxassetid://1146553450"
  2806. Qe.Volume = 10
  2807. Qe.Looped = false
  2808. Qe.Pitch = 1
  2809. Qe:Play()
  2810. end
  2811. if talk ~= 5 then
  2812. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  2813. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  2814. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(10, 15)
  2815. S = Instance.new("Sound")
  2816. S.Parent = Character.Torso
  2817. S.SoundId = "rbxassetid://1063050323"
  2818. S.Volume = 8
  2819. S.Looped = false
  2820. S.Pitch = 1
  2821. S:Play()
  2822. else
  2823. end
  2824. end
  2825. end
  2826. for i = 0, 0.3, 0.01 do
  2827. angleSpeed = 1
  2828. axisSpeed = 1
  2829. change = 0.5
  2830. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, -0.5) * c_angles(math.rad(90), math.rad(0), math.rad(-80)), 0.15)
  2831. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(-80)), 0.15)
  2832. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(0), math.rad(-5)), 0.15)
  2833. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(0), math.rad(5)), 0.15)
  2834. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-80), math.rad(0)), 0.15)
  2835. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-10), math.rad(80), math.rad(0)), 0.15)
  2836. swait()
  2837. end
  2838. if talk == 5 then
  2839. wait(0.5)
  2840. Head.face.Texture = "rbxassetid://1895670162"
  2841. dashing = true
  2842. rootPart.Velocity = rootPart.CFrame.lookVector * 150
  2843. else
  2844. rootPart.Velocity = rootPart.CFrame.lookVector * 100
  2845. end
  2846. if talk == 5 then
  2847. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  2848. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  2849. v:FindFirstChild("Humanoid").Health = 0
  2850. S = Instance.new("Sound")
  2851. S.Parent = Character.Torso
  2852. S.SoundId = "rbxassetid://1063050323"
  2853. S.Volume = 8
  2854. S.Looped = false
  2855. S.Pitch = 1
  2856. S:Play()
  2857. else
  2858. end
  2859. end
  2860. else
  2861. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  2862. if v:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Humanoid") then
  2863. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(20, 25)
  2864. S = Instance.new("Sound")
  2865. S.Parent = Character.Torso
  2866. S.SoundId = "rbxassetid://1063050323"
  2867. S.Volume = 8
  2868. S.Looped = false
  2869. S.Pitch = 1
  2870. S:Play()
  2871. else
  2872. end
  2873. end
  2874. end
  2875. for i = 0, 0.2, 0.01 do
  2876. angleSpeed = 1
  2877. axisSpeed = 1
  2878. change = 0.5
  2879. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(90), math.rad(0), math.rad(80)), 0.15)
  2880. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.5, -0.5) * c_angles(math.rad(90), math.rad(0), math.rad(80)), 0.15)
  2881. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.15)
  2882. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(0), math.rad(-10)), 0.15)
  2883. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(80), math.rad(0)), 0.15)
  2884. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-80), math.rad(0)), 0.15)
  2885. swait()
  2886. end
  2887. if talk == 5 then
  2888. wait(0.05)
  2889. dashing = false
  2890. wait(0.5)
  2891. Qe:Destroy()
  2892. Head.face.Texture = "rbxassetid://315622231"
  2893. end
  2894. Animations = false
  2895. attack = false
  2896. end
  2897. function attackone()
  2898. attack = true
  2899. Animations = true
  2900. Head.face.Texture = "rbxassetid://1895698679"
  2901. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  2902. if v:FindFirstChild("HumanoidRootPart") then
  2903. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  2904. S = Instance.new("Sound")
  2905. S.Parent = Character.Torso
  2906. S.SoundId = "rbxassetid://1063050323"
  2907. S.Volume = 2
  2908. S.Looped = false
  2909. S.Pitch = 1
  2910. S:Play()
  2911. end
  2912. end
  2913. S = Instance.new("Sound")
  2914. S.Parent = Character.Torso
  2915. s2 = math.random(1, 4)
  2916. if s2 == 1 then
  2917. S.SoundId = "rbxassetid://1146556706"
  2918. elseif s2 == 2 then
  2919. S.SoundId = "rbxassetid://1146556975"
  2920. elseif s2 == 3 or s2 == 4 then
  2921. S.SoundId = "rbxassetid://0"
  2922. end
  2923. S.Volume = 10
  2924. S.Looped = false
  2925. S.Pitch = 1
  2926. S:Play()
  2927. for i = 0, 0.08, 0.01 do
  2928. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(120), math.rad(0), math.rad(20)), 0.15)
  2929. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2930. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.15)
  2931. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.15)
  2932. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  2933. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  2934. swait()
  2935. end
  2936. for i = 0, 0.08, 0.01 do
  2937. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, -0.8) * c_angles(math.rad(90), math.rad(0), math.rad(-20)), 0.5)
  2938. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.5)
  2939. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.5)
  2940. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-30), math.rad(0)), 0.5)
  2941. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.5)
  2942. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.5)
  2943. swait()
  2944. end
  2945. Head.face.Texture = "rbxassetid://315622231"
  2946. Animations = false
  2947. attack = false
  2948. end
  2949. function attacktwo()
  2950. attack = true
  2951. Animations = true
  2952. Head.face.Texture = "rbxassetid://1895698679"
  2953. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  2954. if v:FindFirstChild("HumanoidRootPart") then
  2955. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  2956. S = Instance.new("Sound")
  2957. S.Parent = Character.Torso
  2958. S.SoundId = "rbxassetid://1063050323"
  2959. S.Volume = 8
  2960. S.Looped = false
  2961. S.Pitch = 1
  2962. S:Play()
  2963. end
  2964. end
  2965. S = Instance.new("Sound")
  2966. S.Parent = Character.Torso
  2967. s2 = math.random(1, 4)
  2968. if s2 == 1 then
  2969. S.SoundId = "rbxassetid://1146556706"
  2970. elseif s2 == 2 then
  2971. S.SoundId = "rbxassetid://1146556975"
  2972. elseif s2 == 3 or s2 == 4 then
  2973. S.SoundId = "rbxassetid://0"
  2974. end
  2975. S.Volume = 10
  2976. S.Looped = false
  2977. S.Pitch = 1
  2978. S:Play()
  2979. for i = 0, 0.08, 0.01 do
  2980. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  2981. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(120), math.rad(0), math.rad(-20)), 0.15)
  2982. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.15)
  2983. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-20), math.rad(0)), 0.15)
  2984. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  2985. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  2986. swait()
  2987. end
  2988. for i = 0, 0.08, 0.01 do
  2989. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.5)
  2990. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.5, -0.8) * c_angles(math.rad(90), math.rad(0), math.rad(20)), 0.5)
  2991. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.5)
  2992. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.5)
  2993. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5)
  2994. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.5)
  2995. swait()
  2996. end
  2997. Head.face.Texture = "rbxassetid://315622231"
  2998. Animations = false
  2999. attack = false
  3000. end
  3001. function attackthree()
  3002. attack = true
  3003. Animations = true
  3004. for i = 0, 0.08, 0.01 do
  3005. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  3006. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  3007. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3008. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(20)), 0.15)
  3009. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(-20), math.rad(0)), 0.15)
  3010. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3011. swait()
  3012. end
  3013. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  3014. if v:FindFirstChild("HumanoidRootPart") then
  3015. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  3016. S = Instance.new("Sound")
  3017. S.Parent = Character.Torso
  3018. S.SoundId = "rbxassetid://1063050323"
  3019. S.Volume = 8
  3020. S.Looped = false
  3021. S.Pitch = 1
  3022. S:Play()
  3023. end
  3024. end
  3025. for i = 0, 0.06, 0.01 do
  3026. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3027. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3028. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3029. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(110), math.rad(0), math.rad(0)), 0.15)
  3030. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(20), math.rad(0)), 0.15)
  3031. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  3032. swait()
  3033. end
  3034. Animations = false
  3035. attack = false
  3036. end
  3037. function attackfour()
  3038. attack = true
  3039. Animations = true
  3040. for i = 0, 0.08, 0.01 do
  3041. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  3042. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(45), math.rad(0), math.rad(0)), 0.15)
  3043. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-20)), 0.15)
  3044. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3045. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(20), math.rad(0)), 0.15)
  3046. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3047. swait()
  3048. end
  3049. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  3050. if v:FindFirstChild("HumanoidRootPart") then
  3051. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  3052. S = Instance.new("Sound")
  3053. S.Parent = Character.Torso
  3054. S.SoundId = "rbxassetid://1063050323"
  3055. S.Volume = 8
  3056. S.Looped = false
  3057. S.Pitch = 1
  3058. S:Play()
  3059. end
  3060. end
  3061. for i = 0, 0.06, 0.01 do
  3062. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3063. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3064. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(110), math.rad(0), math.rad(0)), 0.15)
  3065. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3066. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(-20), math.rad(0)), 0.15)
  3067. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  3068. swait()
  3069. end
  3070. Animations = false
  3071. attack = false
  3072. end
  3073. function attackfive()
  3074. attack = true
  3075. Animations = true
  3076. Head.face.Texture = "rbxassetid://149227955"
  3077. for i = 0, 0.01, 0.01 do
  3078. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3079. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3080. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3081. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3082. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3083. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3084. end
  3085. for i = 0, 0.08, 0.01 do
  3086. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(0)), 0.15)
  3087. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(0)), 0.15)
  3088. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3089. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-25), math.rad(0), math.rad(0)), 0.15)
  3090. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3091. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3092. swait()
  3093. end
  3094. S = Instance.new("Sound")
  3095. S.Parent = Character.Torso
  3096. S.SoundId = "rbxassetid://1278006076"
  3097. S.Volume = 10
  3098. S.Looped = false
  3099. S.Pitch = 1
  3100. S:Play()
  3101. for i = 0, 0.05, 0.01 do
  3102. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(-40)), 0.15)
  3103. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(40)), 0.15)
  3104. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3105. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3106. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3107. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3108. swait()
  3109. end
  3110. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  3111. if v:FindFirstChild("HumanoidRootPart") then
  3112. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(25, 35)
  3113. S = Instance.new("Sound")
  3114. S.Parent = Character.Torso
  3115. S.SoundId = "rbxassetid://1063050323"
  3116. S.Volume = 8
  3117. S.Looped = false
  3118. S.Pitch = 1
  3119. S:Play()
  3120. end
  3121. end
  3122. for i = 0, 0.01, 0.01 do
  3123. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0) * c_angles(math.rad(80), math.rad(0), math.rad(-40)), 0.15)
  3124. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-0.8, 0.5, 0) * c_angles(math.rad(80), math.rad(0), math.rad(40)), 0.15)
  3125. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3126. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3127. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3128. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3129. swait()
  3130. end
  3131. for i = 0, 0.04, 0.01 do
  3132. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.2, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(-40)), 0.15)
  3133. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.2, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(40)), 0.15)
  3134. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3135. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3136. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3137. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3138. swait()
  3139. end
  3140. wait(0.1)
  3141. Head.face.Texture = "rbxassetid://315622231"
  3142. Animations = false
  3143. attack = false
  3144. end
  3145. function attackoneA()
  3146. attack = true
  3147. Animations = true
  3148. Head.face.Texture = "rbxassetid://1895698679"
  3149. S = Instance.new("Sound")
  3150. S.Parent = Character.Torso
  3151. s2 = math.random(1, 4)
  3152. if s2 == 1 then
  3153. S.SoundId = "rbxassetid://1146556706"
  3154. elseif s2 == 2 then
  3155. S.SoundId = "rbxassetid://1146556975"
  3156. elseif s2 == 3 or s2 == 4 then
  3157. S.SoundId = "rbxassetid://0"
  3158. end
  3159. S.Volume = 10
  3160. S.Looped = false
  3161. S.Pitch = 1
  3162. S:Play()
  3163. for i = 0, 0.2, 0.01 do
  3164. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(80), math.rad(0), math.rad(120)), 0.15)
  3165. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3166. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.15)
  3167. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.15)
  3168. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3169. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3170. swait()
  3171. end
  3172. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 6)) do
  3173. if v:FindFirstChild("HumanoidRootPart") then
  3174. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(20, 30)
  3175. S = Instance.new("Sound")
  3176. S.Parent = Character.Torso
  3177. S.SoundId = "rbxassetid://1063050323"
  3178. S.Volume = 2
  3179. S.Looped = false
  3180. S.Pitch = 1
  3181. S:Play()
  3182. end
  3183. end
  3184. for i = 0, 0.2, 0.01 do
  3185. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.5, -0.8) * c_angles(math.rad(75), math.rad(0), math.rad(-50)), 0.15)
  3186. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.15)
  3187. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.15)
  3188. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-30), math.rad(0)), 0.15)
  3189. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3190. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3191. swait()
  3192. end
  3193. Head.face.Texture = "rbxassetid://1895706696"
  3194. Animations = false
  3195. attack = false
  3196. end
  3197. function attacktwoA()
  3198. attack = true
  3199. Animations = true
  3200. Head.face.Texture = "rbxassetid://1895698679"
  3201. S = Instance.new("Sound")
  3202. S.Parent = Character.Torso
  3203. s2 = math.random(1, 4)
  3204. if s2 == 1 then
  3205. S.SoundId = "rbxassetid://1146556706"
  3206. elseif s2 == 2 then
  3207. S.SoundId = "rbxassetid://1146556975"
  3208. elseif s2 == 3 or s2 == 4 then
  3209. S.SoundId = "rbxassetid://0"
  3210. end
  3211. S.Volume = 10
  3212. S.Looped = false
  3213. S.Pitch = 1
  3214. S:Play()
  3215. for i = 0, 0.08, 0.01 do
  3216. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3217. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(120), math.rad(0), math.rad(-20)), 0.15)
  3218. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.15)
  3219. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-20), math.rad(0)), 0.15)
  3220. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3221. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3222. swait()
  3223. end
  3224. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 4)) do
  3225. if v:FindFirstChild("HumanoidRootPart") then
  3226. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(2, 15)
  3227. S = Instance.new("Sound")
  3228. S.Parent = Character.Torso
  3229. S.SoundId = "rbxassetid://1063050323"
  3230. S.Volume = 8
  3231. S.Looped = false
  3232. S.Pitch = 1
  3233. S:Play()
  3234. end
  3235. end
  3236. for i = 0, 0.08, 0.01 do
  3237. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.5)
  3238. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.5, -0.8) * c_angles(math.rad(90), math.rad(0), math.rad(20)), 0.5)
  3239. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.5)
  3240. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.5)
  3241. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5)
  3242. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.5)
  3243. swait()
  3244. end
  3245. Head.face.Texture = "rbxassetid://1895706696"
  3246. Animations = false
  3247. attack = false
  3248. end
  3249. function attacktwoB()
  3250. attack = true
  3251. Animations = true
  3252. Head.face.Texture = "rbxassetid://1895698679"
  3253. S = Instance.new("Sound")
  3254. S.Parent = Character.Torso
  3255. s2 = math.random(1, 4)
  3256. if s2 == 1 then
  3257. S.SoundId = "rbxassetid://1146556706"
  3258. elseif s2 == 2 then
  3259. S.SoundId = "rbxassetid://1146556975"
  3260. elseif s2 == 3 or s2 == 4 then
  3261. S.SoundId = "rbxassetid://0"
  3262. end
  3263. S.Volume = 10
  3264. S.Looped = false
  3265. S.Pitch = 1
  3266. S:Play()
  3267. for i = 0, 0.2, 0.01 do
  3268. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
  3269. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(80), math.rad(0), math.rad(-120)), 0.15)
  3270. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(5), math.rad(-20), math.rad(0)), 0.15)
  3271. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-5), math.rad(-20), math.rad(0)), 0.15)
  3272. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3273. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(-20), math.rad(0)), 0.15)
  3274. swait()
  3275. end
  3276. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 6)) do
  3277. if v:FindFirstChild("HumanoidRootPart") then
  3278. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(20, 30)
  3279. S = Instance.new("Sound")
  3280. S.Parent = Character.Torso
  3281. S.SoundId = "rbxassetid://1063050323"
  3282. S.Volume = 8
  3283. S.Looped = false
  3284. S.Pitch = 1
  3285. S:Play()
  3286. end
  3287. end
  3288. for i = 0, 0.2, 0.01 do
  3289. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(50)), 0.15)
  3290. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.5, -0.8) * c_angles(math.rad(75), math.rad(0), math.rad(20)), 0.15)
  3291. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-5), math.rad(20), math.rad(0)), 0.15)
  3292. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(5), math.rad(20), math.rad(0)), 0.15)
  3293. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(-30), math.rad(0)), 0.15)
  3294. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(20), math.rad(0)), 0.15)
  3295. swait()
  3296. end
  3297. Head.face.Texture = "rbxassetid://1895706696"
  3298. Animations = false
  3299. attack = false
  3300. end
  3301. function attackthreeB()
  3302. attack = true
  3303. Animations = true
  3304. Head.face.Texture = "rbxassetid://1895698679"
  3305. for i = 0, 0.2, 0.01 do
  3306. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  3307. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(-20)), 0.15)
  3308. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3309. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3310. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3311. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3312. end
  3313. for i = 0, 0.2, 0.01 do
  3314. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(20)), 0.1)
  3315. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(180), math.rad(0), math.rad(-20)), 0.15)
  3316. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3317. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3318. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3319. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3320. swait()
  3321. end
  3322. Head.face.Texture = "rbxassetid://1895670162"
  3323. S = Instance.new("Sound")
  3324. S.Parent = Character.Torso
  3325. S.SoundId = "rbxassetid://1278006076"
  3326. S.Volume = 10
  3327. S.Looped = false
  3328. S.Pitch = 1
  3329. S:Play()
  3330. for i = 0, 0.05, 0.01 do
  3331. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(20)), 0.15)
  3332. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(200), math.rad(0), math.rad(-20)), 0.15)
  3333. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3334. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3335. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3336. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3337. swait()
  3338. end
  3339. local rng2 = Instance.new("Part", Character)
  3340. rng2.Anchored = true
  3341. rng2.BrickColor = BrickColor.new("Really black")
  3342. rng2.CanCollide = false
  3343. rng2.FormFactor = 3
  3344. rng2.Name = "Shockwave"
  3345. rng2.Size = Vector3.new(1, 1, 1)
  3346. rng2.Transparency = 0.35
  3347. rng2.TopSurface = 0
  3348. rng2.BottomSurface = 0
  3349. rng2.CFrame = rootPart.CFrame
  3350. local rngm2 = Instance.new("SpecialMesh", rng2)
  3351. rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3352. rngm2.Scale = Vector3.new(1, 0, 1)
  3353. rngm2.Offset = Vector3.new(0, 0, -5)
  3354. Spawn(function()
  3355. for i = 1, 60, 2 do
  3356. rngm2.Scale = Vector3.new(1 + i * 0.8, 5 - i * 0.1, 1 + i * 0.8)
  3357. rng2.Transparency = i / 30
  3358. rng2.CFrame = rng2.CFrame - Vector3.new(0, 0.2, 0)
  3359. swait()
  3360. end
  3361. wait()
  3362. rng2:Destroy()
  3363. end)
  3364. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  3365. if v:FindFirstChild("HumanoidRootPart") then
  3366. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(100, 150)
  3367. S = Instance.new("Sound")
  3368. S.Parent = Character.Torso
  3369. S.SoundId = "rbxassetid://1063050323"
  3370. S.Volume = 8
  3371. S.Looped = false
  3372. S.Pitch = 1
  3373. S:Play()
  3374. end
  3375. end
  3376. S = Instance.new("Sound")
  3377. S.Parent = Character.Torso
  3378. S.SoundId = "rbxassetid://2248511"
  3379. S.Volume = 10
  3380. S.Looped = false
  3381. S.Pitch = 1
  3382. S:Play()
  3383. for i = 0, 0.01, 0.01 do
  3384. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0, -0.5) * c_angles(math.rad(25), math.rad(0), math.rad(20)), 0.15)
  3385. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(25), math.rad(0), math.rad(-20)), 0.15)
  3386. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3387. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3388. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3389. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3390. swait()
  3391. end
  3392. for i = 0, 0.04, 0.01 do
  3393. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3394. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
  3395. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3396. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3397. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3398. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3399. swait()
  3400. end
  3401. wait(0.1)
  3402. Head.face.Texture = "rbxassetid://1895706696"
  3403. Animations = false
  3404. attack = false
  3405. end
  3406. function attackthreeA()
  3407. attack = true
  3408. Animations = true
  3409. Head.face.Texture = "rbxassetid://1895698679"
  3410. for i = 0, 0.2, 0.01 do
  3411. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
  3412. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3413. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3414. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3415. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3416. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3417. end
  3418. for i = 0, 0.2, 0.01 do
  3419. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 1.2, 0) * c_angles(math.rad(180), math.rad(0), math.rad(20)), 0.1)
  3420. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3421. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3422. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3423. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3424. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3425. swait()
  3426. end
  3427. Head.face.Texture = "rbxassetid://1895670162"
  3428. S = Instance.new("Sound")
  3429. S.Parent = Character.Torso
  3430. S.SoundId = "rbxassetid://1278006076"
  3431. S.Volume = 10
  3432. S.Looped = false
  3433. S.Pitch = 1
  3434. S:Play()
  3435. for i = 0, 0.05, 0.01 do
  3436. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0.5, 0.2) * c_angles(math.rad(200), math.rad(0), math.rad(20)), 0.15)
  3437. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3438. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3439. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3440. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3441. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3442. swait()
  3443. end
  3444. local rng2 = Instance.new("Part", Character)
  3445. rng2.Anchored = true
  3446. rng2.BrickColor = BrickColor.new("Really black")
  3447. rng2.CanCollide = false
  3448. rng2.FormFactor = 3
  3449. rng2.Name = "Shockwave"
  3450. rng2.Size = Vector3.new(1, 1, 1)
  3451. rng2.Transparency = 0.35
  3452. rng2.TopSurface = 0
  3453. rng2.BottomSurface = 0
  3454. rng2.CFrame = rootPart.CFrame
  3455. local rngm2 = Instance.new("SpecialMesh", rng2)
  3456. rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3457. rngm2.Scale = Vector3.new(1, 0, 1)
  3458. rngm2.Offset = Vector3.new(0.5, 0, -5)
  3459. Spawn(function()
  3460. for i = 1, 60, 2 do
  3461. rngm2.Scale = Vector3.new(1 + i * 0.3, 5 - i * 0.1, 1 + i * 0.3)
  3462. rng2.Transparency = i / 30
  3463. rng2.CFrame = rng2.CFrame - Vector3.new(0, 0.2, 0)
  3464. swait()
  3465. end
  3466. wait()
  3467. rng2:Destroy()
  3468. end)
  3469. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 7)) do
  3470. if v:FindFirstChild("HumanoidRootPart") then
  3471. v:FindFirstChild("Humanoid").Health = v:FindFirstChild("Humanoid").Health - math.random(40, 45)
  3472. S = Instance.new("Sound")
  3473. S.Parent = Character.Torso
  3474. S.SoundId = "rbxassetid://1063050323"
  3475. S.Volume = 8
  3476. S.Looped = false
  3477. S.Pitch = 1
  3478. S:Play()
  3479. end
  3480. end
  3481. S = Instance.new("Sound")
  3482. S.Parent = Character.Torso
  3483. S.SoundId = "rbxassetid://1310889008"
  3484. S.Volume = 10
  3485. S.Looped = false
  3486. S.Pitch = 1
  3487. S:Play()
  3488. for i = 0, 0.01, 0.01 do
  3489. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(0.8, 0, -0.5) * c_angles(math.rad(25), math.rad(0), math.rad(20)), 0.15)
  3490. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3491. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3492. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3493. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3494. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3495. swait()
  3496. end
  3497. for i = 0, 0.04, 0.01 do
  3498. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
  3499. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3500. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3501. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3502. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3503. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3504. swait()
  3505. end
  3506. wait(0.1)
  3507. Head.face.Texture = "rbxassetid://1895706696"
  3508. Animations = false
  3509. attack = false
  3510. end
  3511. attktype = 1
  3512. mouse.Button1Down:connect(function(key)
  3513. if attack == false and crouching == false then
  3514. if gun == false then
  3515. if transformed == false then
  3516. if attktype == 1 then
  3517. attackone()
  3518. elseif attktype == 2 then
  3519. attacktwo()
  3520. elseif attktype == 3 then
  3521. attackthree()
  3522. elseif attktype == 4 then
  3523. attackfour()
  3524. elseif attktype == 5 then
  3525. attackfive()
  3526. elseif attktype == 6 then
  3527. CobraPunch()
  3528. attktype = 0
  3529. end
  3530. attktype = attktype + 1
  3531. elseif transformed == true then
  3532. if attktype == 1 then
  3533. attackoneA()
  3534. elseif attktype == 2 then
  3535. if transformed2 == false then
  3536. attacktwoA()
  3537. elseif transformed2 == true then
  3538. attacktwoB()
  3539. end
  3540. elseif attktype == 3 then
  3541. if transformed2 == false then
  3542. attackthreeA()
  3543. elseif transformed2 == true then
  3544. attackthreeB()
  3545. end
  3546. attktype = 0
  3547. end
  3548. attktype = attktype + 1
  3549. end
  3550. end
  3551. elseif gun == true then
  3552. shoot = true
  3553. elseif attack == false and crouching == true then
  3554. UpperCut()
  3555. end
  3556. end)
  3557. function findCloseHumanoid(centre, distance)
  3558. local tab = {}
  3559. for _, child in pairs(game.Workspace:GetChildren()) do
  3560. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
  3561. local vtors = child.Torso
  3562. local mag = math.abs((vtors.Position - centre).magnitude)
  3563. if distance >= mag then
  3564. table.insert(tab, child.Humanoid)
  3565. end
  3566. end
  3567. end
  3568. return tab
  3569. end
  3570. function rayCast(Pos, Dir, Max, Ignore)
  3571. return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3572. end
  3573. function QuaternionFromCFrame(cf)
  3574. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  3575. local trace = m00 + m11 + m22
  3576. if trace > 0 then
  3577. local s = math.sqrt(1 + trace)
  3578. local recip = 0.5 / s
  3579. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  3580. else
  3581. local i = 0
  3582. if m00 < m11 then
  3583. i = 1
  3584. end
  3585. if m22 > (i == 0 and m00 or m11) then
  3586. i = 2
  3587. end
  3588. if i == 0 then
  3589. local s = math.sqrt(m00 - m11 - m22 + 1)
  3590. local recip = 0.5 / s
  3591. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  3592. elseif i == 1 then
  3593. local s = math.sqrt(m11 - m22 - m00 + 1)
  3594. local recip = 0.5 / s
  3595. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  3596. elseif i == 2 then
  3597. local s = math.sqrt(m22 - m00 - m11 + 1)
  3598. local recip = 0.5 / s
  3599. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  3600. end
  3601. end
  3602. end
  3603. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  3604. local xs, ys, zs = x + x, y + y, z + z
  3605. local wx, wy, wz = w * xs, w * ys, w * zs
  3606. local xx = x * xs
  3607. local xy = x * ys
  3608. local xz = x * zs
  3609. local yy = y * ys
  3610. local yz = y * zs
  3611. local zz = z * zs
  3612. 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))
  3613. end
  3614. function QuaternionSlerp(a, b, t)
  3615. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  3616. local startInterp, finishInterp
  3617. if cosTheta >= 1.0E-4 then
  3618. if 1 - cosTheta > 1.0E-4 then
  3619. local theta = math.acos(cosTheta)
  3620. local invSinTheta = 1 / math.sin(theta)
  3621. startInterp = math.sin((1 - t) * theta) * invSinTheta
  3622. finishInterp = math.sin(t * theta) * invSinTheta
  3623. else
  3624. startInterp = 1 - t
  3625. finishInterp = t
  3626. end
  3627. elseif 1 + cosTheta > 1.0E-4 then
  3628. local theta = math.acos(-cosTheta)
  3629. local invSinTheta = 1 / math.sin(theta)
  3630. startInterp = math.sin((t - 1) * theta) * invSinTheta
  3631. finishInterp = math.sin(t * theta) * invSinTheta
  3632. else
  3633. startInterp = t - 1
  3634. finishInterp = t
  3635. end
  3636. 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
  3637. end
  3638. function clerp(a, b, t)
  3639. local qa = {
  3640. QuaternionFromCFrame(a)
  3641. }
  3642. local qb = {
  3643. QuaternionFromCFrame(b)
  3644. }
  3645. local ax, ay, az = a.x, a.y, a.z
  3646. local bx, by, bz = b.x, b.y, b.z
  3647. local _t = 1 - t
  3648. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  3649. end
  3650. swait()
  3651. LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
  3652. Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  3653. RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
  3654. Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  3655. LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
  3656. Left_Leg.Weld.C1 = CFrame.new(0, 1, 0)
  3657. RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
  3658. Right_Leg.Weld.C1 = CFrame.new(0, 1, 0)
  3659. Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
  3660. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  3661. Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
  3662. for i, v in pairs(Character:GetChildren()) do
  3663. if v:IsA("Accoutrement") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("CharacterMesh") then
  3664. v:Destroy()
  3665. elseif v:IsA("Part") and v.Name == "Head" then
  3666. v.face.Texture = "rbxassetid://315622231"
  3667. end
  3668. end
  3669. shirt = Instance.new("Shirt", Character)
  3670. pants = Instance.new("Pants", Character)
  3671. shirt.ShirtTemplate = "rbxassetid://155329817"
  3672. pants.PantsTemplate = "rbxassetid://155329869"
  3673. Character["Body Colors"].HeadColor = BrickColor.new("Cashmere")
  3674. Character["Body Colors"].TorsoColor = BrickColor.new("Cashmere")
  3675. Character["Body Colors"].RightArmColor = BrickColor.new("Cashmere")
  3676. Character["Body Colors"].LeftArmColor = BrickColor.new("Cashmere")
  3677. Character["Body Colors"].RightLegColor = BrickColor.new("Cashmere")
  3678. Character["Body Colors"].LeftLegColor = BrickColor.new("Cashmere")
  3679. Humanoid.DisplayDistanceType = "None"
  3680. sine = 0
  3681. change = 1
  3682. sprint = false
  3683. local punches = {
  3684. a = false,
  3685. b = false,
  3686. c = false
  3687. }
  3688. UIService.InputBegan:connect(function(Input, GUIProcessed)
  3689. if not GUIProcessed and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  3690. if punches.a == false then
  3691. punches.a = true
  3692. wait(0.4)
  3693. punches.a = false
  3694. else
  3695. punches.a = true
  3696. if punches.b == false then
  3697. punches.b = true
  3698. wait(0.4)
  3699. punches.b = false
  3700. else
  3701. punches.b = true
  3702. if punches.c == false then
  3703. punches.c = true
  3704. wait(0.4)
  3705. punches.c = false
  3706. else
  3707. punches.c = true
  3708. end
  3709. end
  3710. end
  3711. elseif not GUIProcessed and Input.KeyCode == Enum.KeyCode.LeftShift then
  3712. sprint = true
  3713. end
  3714. end)
  3715. Humanoid.Died:connect(function()
  3716. Theme:Destroy()
  3717. for i, v in pairs(Character:GetChildren()) do
  3718. if v:IsA("Part") or v:IsA("Accessory") then
  3719. v:Destroy()
  3720. end
  3721. end
  3722. end)
  3723. UIService.InputEnded:connect(function(Input, GUIProcessed)
  3724. if not GUIProcessed and Input.KeyCode == Enum.KeyCode.LeftShift then
  3725. sprint = false
  3726. end
  3727. end)
  3728. coroutine.wrap(function()
  3729. while true do
  3730. if sprint == false then
  3731. if attack2 == false and crouching == false then
  3732. Humanoid.WalkSpeed = 8
  3733. Humanoid.JumpPower = 50
  3734. elseif attack2 == true or crouching == true then
  3735. Humanoid.WalkSpeed = 0
  3736. Humanoid.JumpPower = 0
  3737. end
  3738. elseif sprint == true then
  3739. if attack2 == false and crouching == false then
  3740. Humanoid.WalkSpeed = 25
  3741. Humanoid.JumpPower = 100
  3742. elseif attack2 == true or crouching == true then
  3743. Humanoid.WalkSpeed = 0
  3744. Humanoid.JumpPower = 0
  3745. end
  3746. end
  3747. wait()
  3748. end
  3749. end)()
  3750. game:GetService("RunService").RenderStepped:connect(function()
  3751. Angle = Angle % 100 + angleSpeed / 10
  3752. Axis = Axis % 100 + axisSpeed / 10
  3753. walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  3754. jumpVel = Torso.Velocity.Y
  3755. sine = change + sine
  3756. if jumpVel > 1 then
  3757. currentAnim = "Jumping"
  3758. elseif jumpVel < -1 then
  3759. currentAnim = "Falling"
  3760. elseif walkingMagnitude < 2 then
  3761. currentAnim = "Idling"
  3762. elseif isSprinting == true then
  3763. currentAnim = "Sprinting"
  3764. elseif walkingMagnitude > 2 then
  3765. currentAnim = "Walking"
  3766. elseif isAttacking == true then
  3767. currentAnim = "Attacking"
  3768. end
  3769. if currentAnim == "Jumping" and Animations == false then
  3770. angleSpeed = 2
  3771. axisSpeed = 2
  3772. change = 0.5
  3773. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(15), math.rad(0), math.rad(20)), 0.15)
  3774. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(-20)), 0.15)
  3775. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  3776. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.5, -0.5) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3777. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  3778. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
  3779. elseif currentAnim == "Falling" and Animations == false then
  3780. if transformed == false then
  3781. angleSpeed = 2
  3782. axisSpeed = 2
  3783. change = 0.5
  3784. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(25)), 0.15)
  3785. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-25)), 0.15)
  3786. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.8, 0.2) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3787. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.8, -0.5) * c_angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  3788. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0.5) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  3789. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.3) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3790. elseif transformed == true and transformed2 == false then
  3791. angleSpeed = 2
  3792. axisSpeed = 2
  3793. change = 0.5
  3794. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(80)), 0.15)
  3795. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(-20), math.rad(0), math.rad(-25)), 0.15)
  3796. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.8, 0.2) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3797. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.8, -0.5) * c_angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  3798. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0.5) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  3799. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.3) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3800. elseif transformed == true and transformed2 == true then
  3801. angleSpeed = 2
  3802. axisSpeed = 2
  3803. change = 0.5
  3804. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(80)), 0.15)
  3805. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(20), math.rad(0), math.rad(-80)), 0.15)
  3806. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -0.8, 0.2) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3807. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -0.8, -0.5) * c_angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
  3808. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0.5) * c_angles(math.rad(-15), math.rad(0), math.rad(0)), 0.15)
  3809. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.3) * c_angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
  3810. end
  3811. elseif currentAnim == "Idling" and Animations == false then
  3812. if transformed == false then
  3813. angleSpeed = 1
  3814. axisSpeed = 1
  3815. change = 0.5
  3816. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.15)
  3817. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5 + math.sin(sine / 15) / 10, 0.5) * c_angles(math.rad(-20), math.rad(0), math.rad(30)), 0.15)
  3818. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  3819. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) - math.sin(sine / 15) / 20, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  3820. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0) + math.sin(sine / 15) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  3821. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-20) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  3822. elseif transformed == true and transformed2 == false then
  3823. angleSpeed = 1
  3824. axisSpeed = 1
  3825. change = 0.5
  3826. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(50) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  3827. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(10) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-10) - math.sin(sine / 15) / 10), 0.15)
  3828. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(10), math.rad(0)), 0.15)
  3829. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(-10), math.rad(0)), 0.15)
  3830. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.05 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  3831. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  3832. elseif transformed == true and transformed2 == true then
  3833. angleSpeed = 1
  3834. axisSpeed = 1
  3835. change = 0.5
  3836. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(50) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  3837. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(50) - math.sin(sine / 15) / 10, math.rad(0), math.rad(-50) - math.sin(sine / 15) / 10), 0.15)
  3838. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(10), math.rad(0)), 0.15)
  3839. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.55, -0.9 + -math.sin(sine / 15) / 10, -0.2) * c_angles(math.rad(10), math.rad(-10), math.rad(0)), 0.15)
  3840. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1.05 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(-10), math.rad(0), math.rad(0)), 0.15)
  3841. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
  3842. end
  3843. elseif currentAnim == "Walking" and Animations == false then
  3844. if transformed == false then
  3845. if sprint == false then
  3846. angleSpeed = 1
  3847. axisSpeed = 1
  3848. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(5)), 0.15)
  3849. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  3850. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.sin(sine / 4) / 3, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  3851. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(-math.sin(sine / 4) / 3, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  3852. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0), math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  3853. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  3854. else
  3855. angleSpeed = 10
  3856. axisSpeed = 10
  3857. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.sin(sine / 3) / 1, math.rad(0), math.rad(10)), 0.15)
  3858. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(-10)), 0.15)
  3859. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  3860. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  3861. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-20) + math.sin(sine / 3) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 15) / 2), 0.15)
  3862. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.sin(rootPart.RotVelocity.Y / 1) / 2, math.rad(0)), 0.15)
  3863. end
  3864. elseif transformed == true and transformed2 == false then
  3865. if sprint == false then
  3866. angleSpeed = 1
  3867. axisSpeed = 1
  3868. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  3869. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-5)), 0.15)
  3870. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.sin(sine / 4) / 3, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  3871. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(-math.sin(sine / 4) / 3, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  3872. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0), math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  3873. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  3874. else
  3875. angleSpeed = 10
  3876. axisSpeed = 10
  3877. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(-45) + math.sin(sine / 3) / 10, math.rad(0), math.rad(20) + math.sin(sine / 3) / 10), 0.15)
  3878. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(-10)), 0.15)
  3879. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  3880. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  3881. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-20) + math.sin(sine / 3) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 15) / 2), 0.15)
  3882. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.sin(rootPart.RotVelocity.Y / 1) / 2, math.rad(0)), 0.15)
  3883. end
  3884. elseif transformed == true and transformed2 == true then
  3885. if sprint == false then
  3886. angleSpeed = 1
  3887. axisSpeed = 1
  3888. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(20) + math.sin(sine / 15) / 10, math.rad(0), math.rad(50) + math.sin(sine / 15) / 10), 0.15)
  3889. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.4, 0.5 + math.sin(sine / 15) / 10, 0.2) * c_angles(math.rad(20) + math.sin(sine / 15) / 10, math.rad(0), math.rad(-50) - math.sin(sine / 15) / 10), 0.15)
  3890. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(math.sin(sine / 4) / 3, math.sin(rootPart.RotVelocity.Y / 10) / 2, -math.sin(rootPart.RotVelocity.Y / 10) / 2), 0.15)
  3891. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1 + -math.sin(sine / 15) / 10, 0) * c_angles(-math.sin(sine / 4) / 3, -math.sin(rootPart.RotVelocity.Y / 10) / 2, math.sin(-rootPart.RotVelocity.Y / 10) / 2), 0.15)
  3892. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 15) / 10, 0) * c_angles(math.rad(0), math.rad(0), math.sin(rootPart.RotVelocity.Y / 30) / 2), 0.15)
  3893. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, -0.2 + math.sin(sine / 15) / 10) * c_angles(math.rad(-10) + math.sin(sine / 15) / 10, math.sin(rootPart.RotVelocity.Y / 2.5) / 2, math.rad(0)), 0.15)
  3894. else
  3895. angleSpeed = 10
  3896. axisSpeed = 10
  3897. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-45) + math.sin(sine / 3) / 10, math.rad(0), math.rad(20) + math.sin(sine / 3) / 10), 0.15)
  3898. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-45) + math.sin(sine / 3) / 10, math.rad(0), math.rad(-20) - math.sin(sine / 3) / 10), 0.15)
  3899. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  3900. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine / 3) / 1, math.rad(0), math.rad(0)), 0.15)
  3901. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1 + math.sin(sine / 1.5) / 5, 0) * c_angles(math.rad(-20) + math.sin(sine / 3) / 20, math.rad(0), math.sin(rootPart.RotVelocity.Y / 15) / 2), 0.15)
  3902. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(20), math.sin(rootPart.RotVelocity.Y / 1) / 2, math.rad(0)), 0.15)
  3903. end
  3904. end
  3905. end
  3906. end)
Add Comment
Please, Sign In to add comment