Advertisement
Zach_script_stealer2

The Eyes

Sep 21st, 2019
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.77 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("For god Sake Say h/ instead of hl/ ") end
  2. print(" this script was converted by An ignorant / zach ")
  3. warn(" credits goes to the real creator ")
  4. warn(" pls dont abuse ")
  5. warn(" i beg u ")
  6. local Player,game,owner = owner,game
  7. local RealPlayer = Player
  8. do
  9. print("FE Compatibility code by Mokiros")
  10. local rp = RealPlayer
  11. script.Parent = rp.Character
  12.  
  13. --RemoteEvent for communicating
  14. local Event = Instance.new("RemoteEvent")
  15. Event.Name = "UserInput_Event"
  16.  
  17. --Fake event to make stuff like Mouse.KeyDown work
  18. local function fakeEvent()
  19. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  20. t.connect = t.Connect
  21. return t
  22. end
  23.  
  24. --Creating fake input objects with fake variables
  25. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  26. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  27. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  28. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  29. end}
  30. --Merged 2 functions into one by checking amount of arguments
  31. CAS.UnbindAction = CAS.BindAction
  32.  
  33. --This function will trigger the events that have been :Connect()'ed
  34. local function te(self,ev,...)
  35. local t = m[ev]
  36. if t and t._fakeEvent then
  37. for _,f in pairs(t.Functions) do
  38. f(...)
  39. end
  40. end
  41. end
  42. m.TrigEvent = te
  43. UIS.TrigEvent = te
  44.  
  45. Event.OnServerEvent:Connect(function(plr,io)
  46. if plr~=rp then return end
  47. m.Target = io.Target
  48. m.Hit = io.Hit
  49. if not io.isMouse then
  50. local b = io.UserInputState == Enum.UserInputState.Begin
  51. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  52. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then return s[k] end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end,
  103. __call = function(self,...)
  104. local s = rawget(self,"_RealService")
  105. if s then return s(...) end
  106. end
  107. }
  108. local function FakeService(t,RealService)
  109. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  110. return setmetatable(t,fsmt)
  111. end
  112.  
  113. --Fake game object
  114. local g = {
  115. GetService = function(self,s)
  116. return self[s]
  117. end,
  118. Players = FakeService({
  119. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  120. },"Players"),
  121. UserInputService = FakeService(UIS,"UserInputService"),
  122. ContextActionService = FakeService(CAS,"ContextActionService"),
  123. }
  124. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  125. g.service = g.GetService
  126.  
  127. g.RunService = FakeService({
  128. RenderStepped = _rg:GetService("RunService").Heartbeat,
  129. BindToRenderStep = function(self,name,_,fun)
  130.  
  131. end,
  132. UnbindFromRenderStep = function(self,name)
  133. self._btrs[name]:Disconnect()
  134. end,
  135. },"RunService")
  136.  
  137. setmetatable(g,{
  138. __index=function(self,s)
  139. return _rg:GetService(s) or typeof(_rg[s])=="function"
  140. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  141. end,
  142. __newindex = fsmt.__newindex,
  143. __call = fsmt.__call
  144. })
  145. --Changing owner to fake player object to support owner:GetMouse()
  146. game,owner = g,g.Players.LocalPlayer
  147. end
  148.  
  149.  
  150. wait(0.2)
  151.  
  152. Player = game:GetService("Players").LocalPlayer
  153. PlayerGui = Player.PlayerGui
  154. Cam = workspace.CurrentCamera
  155. Backpack = Player.Backpack
  156. Character = Player.Character
  157. Humanoid = Character.Humanoid
  158. RootPart = Character["HumanoidRootPart"]
  159. Torso = Character["Torso"]
  160. Head = Character["Head"]
  161. RightArm = Character["Right Arm"]
  162. LeftArm = Character["Left Arm"]
  163. RightLeg = Character["Right Leg"]
  164. LeftLeg = Character["Left Leg"]
  165. Mouse = Player:GetMouse()
  166. RootJoint = RootPart["RootJoint"]
  167. Neck = Torso["Neck"]
  168. RightShoulder = Torso["Right Shoulder"]
  169. LeftShoulder = Torso["Left Shoulder"]
  170. RightHip = Torso["Right Hip"]
  171. LeftHip = Torso["Left Hip"]
  172. q = Character:GetChildren()
  173. for u = 1, #q do
  174. if q[u].ClassName == "Accessory" then
  175. q[u]:Destroy()
  176. elseif q[u].ClassName == "CharacterMesh" then
  177. q[u]:Destroy()
  178. end
  179. end
  180. Head.face:Destroy()
  181. Head.Mesh:Destroy()
  182. newmesh = Instance.new("SpecialMesh")
  183. newmesh.Scale = Vector3.new(1.1,1.1,1.1)
  184. newmesh.MeshId = "http://www.roblox.com/asset/?id=0"
  185. newmesh.TextureId = "http://www.roblox.com/asset/?id=0"
  186. newmesh.Parent = Head
  187.  
  188. local function weldBetween(a, b)
  189. local weldd = Instance.new("ManualWeld")
  190. weldd.Part0 = a
  191. weldd.Part1 = b
  192. weldd.C0 = CFrame.new()
  193. weldd.C1 = b.CFrame:inverse() * a.CFrame
  194. weldd.Parent = a
  195. return weldd
  196. end
  197.  
  198. local sick = Instance.new("Sound",Character)
  199. sick.SoundId = "rbxassetid://1591230720"
  200. sick.Looped = true
  201. sick.Pitch = 1
  202. sick.Volume = 1.3
  203. sick:Play()
  204.  
  205. IT = Instance.new
  206. CF = CFrame.new
  207. VT = Vector3.new
  208. RAD = math.rad
  209. C3 = Color3.new
  210. UD2 = UDim2.new
  211. BRICKC = BrickColor.new
  212. ANGLES = CFrame.Angles
  213. EULER = CFrame.fromEulerAnglesXYZ
  214. COS = math.cos
  215. ACOS = math.acos
  216. SIN = math.sin
  217. ASIN = math.asin
  218. ABS = math.abs
  219. MRANDOM = math.random
  220. FLOOR = math.floor
  221. local CLOAKED = false
  222. local KILLINSTINCT = 0
  223.  
  224. --//=================================\\
  225. --|| SOME OTHER STUFF
  226. --\\=================================//
  227. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  228. ff.Visible = false
  229. Humanoid.Name = "God Mode"
  230.  
  231.  
  232. --//=================================\\
  233. --|| USEFUL VALUES
  234. --\\=================================//
  235.  
  236. Animation_Speed = 3
  237. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  238. local Speed = 16
  239. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  240. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  241. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  242. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  243. local DAMAGEMULTIPLIER = 1
  244. local ANIM = "Idle"
  245. local ATTACK = false
  246. local EQUIPPED = false
  247. local HOLD = false
  248. local COMBO = 1
  249. local Rooted = false
  250. local SINE = 0
  251. local KEYHOLD = false
  252. local CHANGE = 2 / Animation_Speed
  253. local WALKINGANIM = false
  254. local VALUE1 = false
  255. local VALUE2 = false
  256. local ROBLOXIDLEANIMATION = IT("Animation")
  257. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  258. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  259. --ROBLOXIDLEANIMATION.Parent = Humanoid
  260. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  261. WEAPONGUI.Name = "Weapon GUI"
  262. local Weapon = IT("Model")
  263. Weapon.Name = "Adds"
  264. local Effects = IT("Folder", Weapon)
  265. Effects.Name = "Effects"
  266. local ANIMATOR = Humanoid.Animator
  267. local ANIMATE = Character.Animate
  268. local UNANCHOR = true
  269. local ENERGYSOUND = 1417051162
  270. local BEAMSOUND = 1417056781
  271. local EXPLOSIONSOUND = 1417056081
  272.  
  273. --//=================================\\
  274. --\\=================================//
  275.  
  276. local asd = Instance.new("ParticleEmitter")
  277. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  278. asd.LightEmission = .1
  279. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  280. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  281. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  282. asd.Transparency = bbb
  283. asd.Size = aaa
  284. asd.ZOffset = .9
  285. asd.Acceleration = Vector3.new(0, -15, 0)
  286. asd.LockedToPart = false
  287. asd.EmissionDirection = "Back"
  288. asd.Lifetime = NumberRange.new(1, 2)
  289. asd.Rotation = NumberRange.new(-100, 100)
  290. asd.RotSpeed = NumberRange.new(-100, 100)
  291. asd.Speed = NumberRange.new(10)
  292. asd.Enabled = false
  293. asd.VelocitySpread = 999
  294.  
  295. function getbloody(victim,amount)
  296. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  297. PART.CFrame = victim.CFrame
  298. local HITPLAYERSOUNDS = {"356551938","264486467"}
  299. Debris:AddItem(PART,5)
  300. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  301. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  302. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  303. local prtcl = asd:Clone()
  304. prtcl.Parent = PART
  305. prtcl:Emit(amount*10)
  306. end
  307.  
  308. --//=================================\\
  309. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  310. --\\=================================//
  311.  
  312. ArtificialHB = Instance.new("BindableEvent", script)
  313. ArtificialHB.Name = "ArtificialHB"
  314.  
  315. script:WaitForChild("ArtificialHB")
  316.  
  317. frame = Frame_Speed
  318. tf = 0
  319. allowframeloss = false
  320. tossremainder = false
  321. lastframe = tick()
  322. script.ArtificialHB:Fire()
  323.  
  324. game:GetService("RunService").Heartbeat:connect(function(s, p)
  325. tf = tf + s
  326. if tf >= frame then
  327. if allowframeloss then
  328. script.ArtificialHB:Fire()
  329. lastframe = tick()
  330. else
  331. for i = 1, math.floor(tf / frame) do
  332. script.ArtificialHB:Fire()
  333. end
  334. lastframe = tick()
  335. end
  336. if tossremainder then
  337. tf = 0
  338. else
  339. tf = tf - frame * math.floor(tf / frame)
  340. end
  341. end
  342. end)
  343.  
  344. --//=================================\\
  345. --\\=================================//
  346. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  347. ff.Visible = false
  348. Humanoid.Name = "God Mode"
  349.  
  350. local l = game.Lighting
  351. local sky = Instance.new("Sky",l)
  352. l.TimeOfDay = "17:32:00"
  353. l.Brightness = 1
  354. l.Ambient = Color3.new(0.25, 0.5, 0.75)
  355. ---
  356.  
  357.  
  358.  
  359. --//=================================\\
  360. --|| SOME FUNCTIONS
  361. --\\=================================//
  362.  
  363. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  364. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  365. end
  366.  
  367. function PositiveAngle(NUMBER)
  368. if NUMBER >= 0 then
  369. NUMBER = 0
  370. end
  371. return NUMBER
  372. end
  373.  
  374. function NegativeAngle(NUMBER)
  375. if NUMBER <= 0 then
  376. NUMBER = 0
  377. end
  378. return NUMBER
  379. end
  380.  
  381. function Swait(NUMBER)
  382. if NUMBER == 0 or NUMBER == nil then
  383. ArtificialHB.Event:wait()
  384. else
  385. for i = 1, NUMBER do
  386. ArtificialHB.Event:wait()
  387. end
  388. end
  389. end
  390.  
  391. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  392. local NEWMESH = IT(MESH)
  393. if MESH == "SpecialMesh" then
  394. NEWMESH.MeshType = MESHTYPE
  395. if MESHID ~= "nil" and MESHID ~= "" then
  396. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  397. end
  398. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  399. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  400. end
  401. end
  402. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  403. NEWMESH.Scale = SCALE
  404. NEWMESH.Parent = PARENT
  405. return NEWMESH
  406. end
  407.  
  408. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  409. local NEWPART = IT("Part")
  410. NEWPART.formFactor = FORMFACTOR
  411. NEWPART.Reflectance = REFLECTANCE
  412. NEWPART.Transparency = TRANSPARENCY
  413. NEWPART.CanCollide = false
  414. NEWPART.Locked = true
  415. NEWPART.Anchored = true
  416. if ANCHOR == false then
  417. NEWPART.Anchored = false
  418. end
  419. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  420. NEWPART.Name = NAME
  421. NEWPART.Size = SIZE
  422. NEWPART.Position = Torso.Position
  423. NEWPART.Material = MATERIAL
  424. NEWPART:BreakJoints()
  425. NEWPART.Parent = PARENT
  426. return NEWPART
  427. end
  428.  
  429. local function weldBetween(a, b)
  430. local weldd = Instance.new("ManualWeld")
  431. weldd.Part0 = a
  432. weldd.Part1 = b
  433. weldd.C0 = CFrame.new()
  434. weldd.C1 = b.CFrame:inverse() * a.CFrame
  435. weldd.Parent = a
  436. return weldd
  437. end
  438.  
  439.  
  440. function QuaternionFromCFrame(cf)
  441. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  442. local trace = m00 + m11 + m22
  443. if trace > 0 then
  444. local s = math.sqrt(1 + trace)
  445. local recip = 0.5 / s
  446. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  447. else
  448. local i = 0
  449. if m11 > m00 then
  450. i = 1
  451. end
  452. if m22 > (i == 0 and m00 or m11) then
  453. i = 2
  454. end
  455. if i == 0 then
  456. local s = math.sqrt(m00 - m11 - m22 + 1)
  457. local recip = 0.5 / s
  458. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  459. elseif i == 1 then
  460. local s = math.sqrt(m11 - m22 - m00 + 1)
  461. local recip = 0.5 / s
  462. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  463. elseif i == 2 then
  464. local s = math.sqrt(m22 - m00 - m11 + 1)
  465. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  466. end
  467. end
  468. end
  469.  
  470. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  471. local xs, ys, zs = x + x, y + y, z + z
  472. local wx, wy, wz = w * xs, w * ys, w * zs
  473. local xx = x * xs
  474. local xy = x * ys
  475. local xz = x * zs
  476. local yy = y * ys
  477. local yz = y * zs
  478. local zz = z * zs
  479. 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))
  480. end
  481.  
  482. function QuaternionSlerp(a, b, t)
  483. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  484. local startInterp, finishInterp;
  485. if cosTheta >= 0.0001 then
  486. if (1 - cosTheta) > 0.0001 then
  487. local theta = ACOS(cosTheta)
  488. local invSinTheta = 1 / SIN(theta)
  489. startInterp = SIN((1 - t) * theta) * invSinTheta
  490. finishInterp = SIN(t * theta) * invSinTheta
  491. else
  492. startInterp = 1 - t
  493. finishInterp = t
  494. end
  495. else
  496. if (1 + cosTheta) > 0.0001 then
  497. local theta = ACOS(-cosTheta)
  498. local invSinTheta = 1 / SIN(theta)
  499. startInterp = SIN((t - 1) * theta) * invSinTheta
  500. finishInterp = SIN(t * theta) * invSinTheta
  501. else
  502. startInterp = t - 1
  503. finishInterp = t
  504. end
  505. end
  506. 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
  507. end
  508.  
  509. function Clerp(a, b, t)
  510. local qa = {QuaternionFromCFrame(a)}
  511. local qb = {QuaternionFromCFrame(b)}
  512. local ax, ay, az = a.x, a.y, a.z
  513. local bx, by, bz = b.x, b.y, b.z
  514. local _t = 1 - t
  515. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  516. end
  517.  
  518. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  519. local frame = IT("Frame")
  520. frame.BackgroundTransparency = TRANSPARENCY
  521. frame.BorderSizePixel = BORDERSIZEPIXEL
  522. frame.Position = POSITION
  523. frame.Size = SIZE
  524. frame.BackgroundColor3 = COLOR
  525. frame.BorderColor3 = BORDERCOLOR
  526. frame.Name = NAME
  527. frame.Parent = PARENT
  528. return frame
  529. end
  530.  
  531. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  532. local label = IT("TextLabel")
  533. label.BackgroundTransparency = 1
  534. label.Size = UD2(1, 0, 1, 0)
  535. label.Position = UD2(0, 0, 0, 0)
  536. label.TextColor3 = TEXTCOLOR
  537. label.TextStrokeTransparency = STROKETRANSPARENCY
  538. label.TextTransparency = TRANSPARENCY
  539. label.FontSize = TEXTFONTSIZE
  540. label.Font = TEXTFONT
  541. label.BorderSizePixel = BORDERSIZEPIXEL
  542. label.TextScaled = false
  543. label.Text = TEXT
  544. label.Name = NAME
  545. label.Parent = PARENT
  546. return label
  547. end
  548.  
  549. function NoOutlines(PART)
  550. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  551. end
  552.  
  553. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  554. local NEWWELD = IT(TYPE)
  555. NEWWELD.Part0 = PART0
  556. NEWWELD.Part1 = PART1
  557. NEWWELD.C0 = C0
  558. NEWWELD.C1 = C1
  559. NEWWELD.Parent = PARENT
  560. return NEWWELD
  561. end
  562.  
  563. local S = IT("Sound")
  564. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  565. local NEWSOUND = nil
  566. coroutine.resume(coroutine.create(function()
  567. NEWSOUND = S:Clone()
  568. NEWSOUND.Parent = PARENT
  569. NEWSOUND.Volume = VOLUME
  570. NEWSOUND.Pitch = PITCH
  571. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  572. NEWSOUND:play()
  573. if DOESLOOP == true then
  574. NEWSOUND.Looped = true
  575. else
  576. repeat wait(1) until NEWSOUND.Playing == false
  577. NEWSOUND:remove()
  578. end
  579. end))
  580. return NEWSOUND
  581. end
  582.  
  583. function CFrameFromTopBack(at, top, back)
  584. local right = top:Cross(back)
  585. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  586. end
  587.  
  588. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  589. function WACKYEFFECT(Table)
  590. local TYPE = (Table.EffectType or "Sphere")
  591. local SIZE = (Table.Size or VT(1,1,1))
  592. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  593. local TRANSPARENCY = (Table.Transparency or 0)
  594. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  595. local CFRAME = (Table.CFrame or Torso.CFrame)
  596. local MOVEDIRECTION = (Table.MoveToPos or nil)
  597. local ROTATION1 = (Table.RotationX or 0)
  598. local ROTATION2 = (Table.RotationY or 0)
  599. local ROTATION3 = (Table.RotationZ or 0)
  600. local MATERIAL = (Table.Material or "Neon")
  601. local COLOR = (Table.Color or C3(1,1,1))
  602. local TIME = (Table.Time or 45)
  603. local SOUNDID = (Table.SoundID or nil)
  604. local SOUNDPITCH = (Table.SoundPitch or nil)
  605. local SOUNDVOLUME = (Table.SoundVolume or nil)
  606. coroutine.resume(coroutine.create(function()
  607. local PLAYSSOUND = false
  608. local SOUND = nil
  609. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  610. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  611. PLAYSSOUND = true
  612. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  613. end
  614. EFFECT.Color = COLOR
  615. local MSH = nil
  616. if TYPE == "Sphere" then
  617. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  618. elseif TYPE == "Block" then
  619. MSH = IT("BlockMesh",EFFECT)
  620. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  621. elseif TYPE == "Wave" then
  622. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  623. elseif TYPE == "Ring" then
  624. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  625. elseif TYPE == "Slash" then
  626. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  627. elseif TYPE == "Round Slash" then
  628. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  629. elseif TYPE == "Swirl" then
  630. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  631. elseif TYPE == "Skull" then
  632. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  633. elseif TYPE == "Crystal" then
  634. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  635. end
  636. if MSH ~= nil then
  637. local MOVESPEED = nil
  638. if MOVEDIRECTION ~= nil then
  639. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  640. end
  641. local GROWTH = SIZE - ENDSIZE
  642. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  643. if TYPE == "Block" then
  644. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  645. else
  646. EFFECT.CFrame = CFRAME
  647. end
  648. for LOOP = 1, TIME+1 do
  649. Swait()
  650. MSH.Scale = MSH.Scale - GROWTH/TIME
  651. if TYPE == "Wave" then
  652. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  653. end
  654. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  655. if TYPE == "Block" then
  656. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  657. else
  658. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  659. end
  660. if MOVEDIRECTION ~= nil then
  661. local ORI = EFFECT.Orientation
  662. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  663. EFFECT.Orientation = ORI
  664. end
  665. end
  666. if PLAYSSOUND == false then
  667. EFFECT:remove()
  668. else
  669. repeat Swait() until SOUND.Playing == false
  670. EFFECT:remove()
  671. end
  672. else
  673. if PLAYSSOUND == false then
  674. EFFECT:remove()
  675. else
  676. repeat Swait() until SOUND.Playing == false
  677. EFFECT:remove()
  678. end
  679. end
  680. end))
  681. end
  682.  
  683. function MakeForm(PART,TYPE)
  684. if TYPE == "Cyl" then
  685. local MSH = IT("CylinderMesh",PART)
  686. elseif TYPE == "Ball" then
  687. local MSH = IT("SpecialMesh",PART)
  688. MSH.MeshType = "Sphere"
  689. elseif TYPE == "Wedge" then
  690. local MSH = IT("SpecialMesh",PART)
  691. MSH.MeshType = "Wedge"
  692. end
  693. end
  694.  
  695. Debris = game:GetService("Debris")
  696.  
  697. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  698. local DIRECTION = CF(StartPos,EndPos).lookVector
  699. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  700. end
  701.  
  702. function turnto(position)
  703. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  704. end
  705.  
  706. --//=================================\\
  707. --|| WEAPON CREATION
  708. --\\=================================//
  709.  
  710. for i = 1, 35 do
  711. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  712. FACE.Color = C3(0,0,0)
  713. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  714. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  715. end
  716.  
  717. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
  718. MakeForm(Eye,"Ball")
  719. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,-0.4) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  720. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false)
  721. MakeForm(Eye,"Ball")
  722. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,-0.4) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  723. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false)
  724. MakeForm(Eye,"Ball")
  725. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,-0.4) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  726. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false)
  727. MakeForm(Eye,"Ball")
  728. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,-0.4) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  729.  
  730. -----------------------------------------------Made By NameClan-----------------------------------------------
  731.  
  732. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.01,1.6,1),false)
  733. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  734.  
  735. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.01,1.9,1),false)
  736. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.04, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  737.  
  738. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  739. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  740.  
  741. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  742. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  743.  
  744. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  745. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(4), RAD(0)), CF(0, 0, 0))
  746.  
  747. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  748. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(-4), RAD(0)), CF(0, 0, 0))
  749.  
  750. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  751. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, 0.9, 0) * ANGLES(RAD(0), RAD(7), RAD(0)), CF(0, 0, 0))
  752.  
  753. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  754. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, 0.9, 0) * ANGLES(RAD(0), RAD(-7), RAD(0)), CF(0, 0, 0))
  755.  
  756. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  757. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, 1, 0) * ANGLES(RAD(0), RAD(12), RAD(0)), CF(0, 0, 0))
  758.  
  759. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  760. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, 1, 0) * ANGLES(RAD(0), RAD(-12), RAD(0)), CF(0, 0, 0))
  761.  
  762. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.01,1.9,1),false)
  763. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, -0.04, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  764.  
  765. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.01,1.6,1),false)
  766. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  767.  
  768. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.9),false)
  769. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  770.  
  771. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  772. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  773.  
  774. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  775. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(4), RAD(0)), CF(0, 0, 0))
  776.  
  777. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  778. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, 0.8, 0) * ANGLES(RAD(0), RAD(-4), RAD(0)), CF(0, 0, 0))
  779.  
  780. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  781. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, 0.9, 0) * ANGLES(RAD(0), RAD(7), RAD(0)), CF(0, 0, 0))
  782.  
  783. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  784. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, 0.9, 0) * ANGLES(RAD(0), RAD(-7), RAD(0)), CF(0, 0, 0))
  785.  
  786. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  787. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, 1, 0) * ANGLES(RAD(0), RAD(12), RAD(0)), CF(0, 0, 0))
  788.  
  789. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.09,0.3,-0.7),false)
  790. CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, 1, 0) * ANGLES(RAD(0), RAD(-12), RAD(0)), CF(0, 0, 0))
  791.  
  792. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really white", "Eye", VT(0.3,0.3,0.3),false)
  793. CreateWeldOrSnapOrMotor("Weld", EYE, RightArm, EYE, CF(0.15,0.19,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  794. MakeForm(EYE,"Ball")
  795.  
  796. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really white", "Eye", VT(0.3,0.3,0.3),false)
  797. CreateWeldOrSnapOrMotor("Weld", EYE, LeftArm, EYE, CF(-0.15,0.19,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  798. MakeForm(EYE,"Ball")
  799.  
  800. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.2,0.2,0.2),false)
  801. CreateWeldOrSnapOrMotor("Weld", EYE, RightArm, EYE, CF(0.15,0.20,-0.62) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  802. MakeForm(EYE,"Ball")
  803.  
  804. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.2,0.2,0.2),false)
  805. CreateWeldOrSnapOrMotor("Weld", EYE, LeftArm, EYE, CF(-0.15,0.20,-0.62) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  806. MakeForm(EYE,"Ball")
  807.  
  808. local EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Really white", "Eye", VT(2,2,2),false)
  809. CreateWeldOrSnapOrMotor("Weld", EYE, Head, EYE, CF(0,0.19,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  810. MakeForm(EYE,"Ball")
  811.  
  812. local GUN2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun2", VT(1, 0.8, 3),false)
  813. CreateMesh("SpecialMesh", GUN2, "FileMesh", "698835348", "698831630", VT(0.5, 0.5, 0.5), VT(0,0,0))
  814. local GUN2WELD = CreateWeldOrSnapOrMotor("Weld", GUN2, Torso, GUN2, CF(-0.5,0.5,-0.4) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  815.  
  816. local GUN2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gun2", VT(1, 0.8, 3),false)
  817. CreateMesh("SpecialMesh", GUN2, "FileMesh", "1033714", "1033717", VT(0.4, 0.4, 0.4), VT(0,0,0))
  818. local GUN2WELD = CreateWeldOrSnapOrMotor("Weld", GUN2, Torso, GUN2, CF(-0.5,0.7,-0.4) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  819.  
  820. -----------------------------------------------END Of NameClan-----------------------------------------------
  821.  
  822. for _, c in pairs(Weapon:GetChildren()) do
  823. if c.ClassName == "Part" then
  824. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  825. local AURA = c:Clone()
  826. AURA:BreakJoints()
  827. AURA.Parent = c
  828. AURA.CFrame = c.CFrame
  829. AURA.Size = AURA.Size*1.001
  830. AURA.Transparency = 0.8
  831. AURA.BrickColor = BRICKC" "
  832. AURA.Material = "Neon"
  833. weldBetween(c,AURA)
  834. end
  835. end
  836.  
  837. local SKILLTEXTCOLOR = BRICKC"Really red".Color
  838. local SKILLFONT = "Bodoni"
  839. local SKILLTEXTSIZE = 7
  840.  
  841. Weapon.Parent = Character
  842.  
  843. Humanoid.Died:connect(function()
  844.  
  845. ATTACK = true
  846. end)
  847.  
  848. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  849. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  850. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  851.  
  852. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  853. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  854. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  855.  
  856. --//=================================\\
  857. --|| DAMAGE FUNCTIONS
  858. --\\=================================//
  859.  
  860. function StatLabel(CFRAME, TEXT, COLOR)
  861. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  862. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  863. local BODYGYRO = IT("BodyGyro", STATPART)
  864. game:GetService("Debris"):AddItem(STATPART ,5)
  865. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  866. BILLBOARDGUI.Adornee = STATPART
  867. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  868. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  869. BILLBOARDGUI.AlwaysOnTop = false
  870. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  871. TEXTLABEL.BackgroundTransparency = 1
  872. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  873. TEXTLABEL.Text = TEXT
  874. TEXTLABEL.Font = SKILLFONT
  875. TEXTLABEL.FontSize="Size42"
  876. TEXTLABEL.TextColor3 = COLOR
  877. TEXTLABEL.TextStrokeTransparency = 0
  878. TEXTLABEL.TextScaled = true
  879. TEXTLABEL.TextWrapped = true
  880. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  881. for i = 1, 50 do
  882. Swait()
  883. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  884. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  885. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  886. end
  887. THEPART.Parent = nil
  888. end),STATPART, TEXTLABEL)
  889. end
  890.  
  891. --//=================================\\
  892. --|| DAMAGING
  893. --\\=================================//
  894.  
  895.  
  896. function Kill(Char)
  897. local NewCharacter = IT("Model",Effects)
  898. NewCharacter.Name = "Ow im ded ;-;"
  899. for _, c in pairs(Char:GetDescendants()) do
  900. if c:IsA("BasePart") and c.Transparency == 0 then
  901. if c.Parent == Char then
  902. getbloody(c,5)
  903. end
  904. c:BreakJoints()
  905. c.Material = "Glass"
  906. c.Color = C3(0.5,0,0)
  907. c.CanCollide = true
  908. c.Transparency = 0.3
  909. if c:FindFirstChildOfClass("SpecialMesh") then
  910. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  911. end
  912. if c.Name == "Head" then
  913. c:ClearAllChildren()
  914. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  915. end
  916. if c.ClassName == "MeshPart" then
  917. c.TextureID = ""
  918. end
  919. if c:FindFirstChildOfClass("BodyPosition") then
  920. c:FindFirstChildOfClass("BodyPosition"):remove()
  921. end
  922. if c:FindFirstChildOfClass("ParticleEmitter") then
  923. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  924. end
  925. c.Parent = NewCharacter
  926. c.Name = "DeadPart"
  927. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  928. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  929. end
  930. end
  931. Char:remove()
  932. Debris:AddItem(NewCharacter,5)
  933. end
  934.  
  935. function ApplyAoE(POSITION,RANGE,BRUTAL)
  936. local CHILDREN = workspace:GetDescendants()
  937. for index, CHILD in pairs(CHILDREN) do
  938. if CHILD.ClassName == "Model" and CHILD ~= Character then
  939. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  940. if HUM then
  941. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  942. if TORSO then
  943. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  944. if BRUTAL == true then
  945. Kill(CHILD)
  946. else
  947. CHILD:BreakJoints()
  948. end
  949. end
  950. end
  951. end
  952. end
  953. end
  954. end
  955.  
  956. --//=================================\\
  957. --|| ATTACK FUNCTIONS AND STUFF
  958. --\\=================================//
  959.  
  960. function Charge(TIME,GYRO)
  961. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  962. local G = nil
  963. if GYRO == true then
  964. G = IT("BodyGyro",RootPart)
  965. G.D = 250
  966. G.P = 200000
  967. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  968. end
  969. for i=0, TIME, 0.1 / Animation_Speed do
  970. Swait()
  971. if G then
  972. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  973. end
  974. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  975. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  976. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  977. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  978. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  979. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  980. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  981. end
  982. SND:remove()
  983. if G then
  984. return G
  985. end
  986. end
  987.  
  988. function Corrupted_Beam()
  989. ATTACK = true
  990. Rooted = false
  991. local GRAV = IT("BodyPosition",RootPart)
  992. GRAV.D = 75
  993. GRAV.P = 20000
  994. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  995. GRAV.Position = RootPart.Position
  996. local GYRO = Charge(2,true)
  997. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Beam", VT(15,15,0))
  998. MakeForm(BEAM,"Ball")
  999. CreateSound(BEAMSOUND,BEAM,10,1,false)
  1000. CreateSound(BEAMSOUND,BEAM,10,0.9,false)
  1001. CreateSound(BEAMSOUND,BEAM,10,0.8,false)
  1002. for i = 1, 150 do
  1003. Swait()
  1004. BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2)
  1005. ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,50,200,0,false)
  1006. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1007. BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2))
  1008. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1009. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1010. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1011. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1012. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1013. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1014. end
  1015. GRAV:remove()
  1016. BEAM:remove()
  1017. GYRO:remove()
  1018. ATTACK = false
  1019. Rooted = false
  1020. end
  1021.  
  1022. function Corrupted_Explosion()
  1023. ATTACK = true
  1024. Rooted = true
  1025. for i=0, 1, 0.1 / Animation_Speed do
  1026. Swait()
  1027. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
  1028. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
  1029. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  1030. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  1031. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1032. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1033. end
  1034. for i=0, 0.4, 0.1 / Animation_Speed do
  1035. Swait()
  1036. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  1037. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  1038. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1039. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1040. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1041. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1042. end
  1043. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Beam", VT(0,0,0))
  1044. local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Beam", VT(0,0,0))
  1045. MakeForm(BEAM,"Ball")
  1046. MakeForm(BEAM2,"Ball")
  1047. BEAM.CFrame = CF(RootPart.Position)
  1048. BEAM2.CFrame = CF(RootPart.Position)
  1049. CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  1050. for i=1, 100 do
  1051. Swait()
  1052. BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
  1053. BEAM2.Size = BEAM2.Size + VT(2,2,2)
  1054. ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,5,5,15,true)
  1055. BEAM.CFrame = CF(RootPart.Position)
  1056. BEAM2.CFrame = CF(RootPart.Position)
  1057. WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1058. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  1059. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  1060. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1061. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1062. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1063. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1064. end
  1065. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1066. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1067. BEAM2:remove()
  1068. BEAM:remove()
  1069. ATTACK = false
  1070. Rooted = false
  1071. end
  1072.  
  1073. function Corrupted_Immobilization()
  1074. ATTACK = true
  1075. Rooted = true
  1076. Charge(2,false)
  1077. local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  1078. local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
  1079. for i = 1, 60 do
  1080. Swait()
  1081. ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true)
  1082. SND.Pitch = SND.Pitch - 1/60
  1083. SND2.Pitch = SND.Pitch
  1084. WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1085. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1086. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1087. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1088. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1089. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1090. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1091. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1092. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1093. end
  1094. SND:remove()
  1095. SND2:remove()
  1096. ATTACK = false
  1097. Rooted = false
  1098. end
  1099.  
  1100. --//=================================\\
  1101. --|| ASSIGN THINGS TO KEYS
  1102. --\\=================================//
  1103.  
  1104. function MouseDown(Mouse)
  1105. if ATTACK == false then
  1106. end
  1107. end
  1108.  
  1109. function MouseUp(Mouse)
  1110. HOLD = false
  1111. end
  1112.  
  1113. function KeyDown(Key)
  1114. KEYHOLD = true
  1115. if Key == "z" and ATTACK == false then
  1116. Corrupted_Beam()
  1117. end
  1118.  
  1119. if Key == "x" and ATTACK == false then
  1120. Corrupted_Explosion()
  1121. end
  1122.  
  1123. if Key == "c" and ATTACK == false then
  1124. Corrupted_Immobilization()
  1125. end
  1126. end
  1127.  
  1128.  
  1129.  
  1130. function KeyUp(Key)
  1131. KEYHOLD = false
  1132. end
  1133.  
  1134. Mouse.Button1Down:connect(function(NEWKEY)
  1135. MouseDown(NEWKEY)
  1136. end)
  1137. Mouse.Button1Up:connect(function(NEWKEY)
  1138. MouseUp(NEWKEY)
  1139. end)
  1140. Mouse.KeyDown:connect(function(NEWKEY)
  1141. KeyDown(NEWKEY)
  1142. end)
  1143. Mouse.KeyUp:connect(function(NEWKEY)
  1144. KeyUp(NEWKEY)
  1145. end)
  1146.  
  1147. --//=================================\\
  1148. --\\=================================//
  1149.  
  1150. function unanchor()
  1151. if UNANCHOR == true then
  1152. g = Character:GetChildren()
  1153. for i = 1, #g do
  1154. if g[i].ClassName == "Part" then
  1155. g[i].Anchored = false
  1156. end
  1157. end
  1158. end
  1159. end
  1160.  
  1161. --//=================================\\
  1162. --|| WRAP THE WHOLE SCRIPT UP
  1163. --\\=================================//
  1164.  
  1165. Humanoid.Changed:connect(function(Jump)
  1166. if Jump == "Jump" and (Disable_Jump == true) then
  1167. Humanoid.Jump = false
  1168. end
  1169. end)
  1170.  
  1171. while true do
  1172. Swait()
  1173. script.Parent = WEAPONGUI
  1174. ANIMATE.Parent = nil
  1175. if Humanoid then
  1176. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1177. IDLEANIMATION:Play()
  1178. end
  1179. SINE = SINE + CHANGE
  1180. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1181. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1182. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1183. local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16)
  1184. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1185. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1186. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1187. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  1188. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  1189. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1190. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1191. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1192. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1193. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1194. end
  1195. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1196. ANIM = "Jump"
  1197. if ATTACK == false then
  1198. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1199. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1200. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1201. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1202. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1203. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1204. end
  1205. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1206. ANIM = "Fall"
  1207. if ATTACK == false then
  1208. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1209. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1210. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1211. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1212. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1213. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1214. end
  1215. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1216. ANIM = "Idle"
  1217. if ATTACK == false then
  1218. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 7), 0 + 0.05 * COS(SINE / 7)) * ANGLES(RAD(-2 + 2 * COS(SINE / 7)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1219. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 7)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1220. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(15 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1221. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-15 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1222. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 7), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 7)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1223. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 7), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 7)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1224. if VALUE1 == false and MRANDOM(1,200) == 1 then
  1225. coroutine.resume(coroutine.create(function()
  1226. VALUE1 = true
  1227. CreateSound(363808674, Torso, 6, 1, false)
  1228. for i = 1, 25 do
  1229. Swait()
  1230. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 1)), RAD(-47), RAD(150)), 0.15 / Animation_Speed)
  1231.  
  1232. end
  1233. VALUE1 = false
  1234. end))
  1235. end
  1236. end
  1237.  
  1238. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1239. ANIM = "Walk"
  1240. if ATTACK == false then
  1241. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1242. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1243. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1244. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(21), RAD(-21)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1245. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1246. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1247. end
  1248. end
  1249.  
  1250.  
  1251. sick.Parent = Torso
  1252. sick.Playing = true
  1253.  
  1254.  
  1255. unanchor()
  1256. Humanoid.MaxHealth = "inf"
  1257. Humanoid.Health = "inf"
  1258. if Rooted == false then
  1259. Disable_Jump = false
  1260. Humanoid.WalkSpeed = Speed
  1261. elseif Rooted == true then
  1262. Disable_Jump = true
  1263. Humanoid.WalkSpeed = 0
  1264. end
  1265. end
  1266.  
  1267. --//=================================\\
  1268. --\\=================================//
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274. --//====================================================\\--
  1275. --|| END OF SCRIPT
  1276. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement