Advertisement
refrop

Server security v1

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