Advertisement
megaluxe

e

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