Fullgamer309

Untitled

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