Advertisement
1nubloku

sla

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