Advertisement
Tetezaza1542

lunar warden

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