Advertisement
jasonskg1234

lunar warden

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