Advertisement
ItzInfern

warden

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