sawgamer1

Untitled

Nov 15th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 118.11 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5.  
  6.  
  7. Player = game.Players.LocalPlayer
  8. Character = Player.Character
  9. local txt = Instance.new("BillboardGui", Character)
  10. txt.Adornee = Character.Head
  11. txt.Name = "_status"
  12. txt.Size = UDim2.new(2, 0, 1.2, 0)
  13. txt.StudsOffset = Vector3.new(-9, 8, 0)
  14. local text = Instance.new("TextLabel", txt)
  15. text.Size = UDim2.new(10, 0, 7, 0)
  16. text.FontSize = "Size24"
  17. text.TextScaled = true
  18. text.TextTransparency = 0
  19. text.BackgroundTransparency = 1
  20. text.TextTransparency = 0
  21. text.TextStrokeTransparency = 0
  22. text.Font = "Antique"
  23. text.TextStrokeColor3 = Color3.new(196, 40, 28)
  24. text.Text = "The Corrupted Doctor"
  25. script.Name = "The Corrupted Doctor"
  26. --//====================================================\\--
  27. --|| CREATED BY SHACKLUSTER-EDITED BY PROMLG112
  28. --\\====================================================//--
  29. local chara = Character
  30.  
  31. function chat(...)
  32. local txxt = {...}
  33. local ch = coroutine.wrap(function()
  34. if chara:FindFirstChild("Chatt")~= nil then
  35. Character:FindFirstChild("Chatt"):destroy()
  36. end
  37. local txt = Instance.new("BillboardGui", chara)
  38. txt.Adornee = chara.Head
  39. txt.Name = "Chatt"
  40. txt.Size = UDim2.new(2, 0, 1.2, 0)
  41. txt.StudsOffset = Vector3.new(-9, 7, 0)
  42. local text = Instance.new("TextLabel", txt)
  43. text.Size = UDim2.new(10, 0, 7, 0)
  44. text.TextSize = 32
  45. text.Font = Enum.Font.Antique
  46. text.TextScaled = false
  47. text.BackgroundTransparency = 1
  48. text.TextColor3 = Color3.new(0,0,0)
  49. text.TextStrokeTransparency = 0
  50. text.TextStrokeColor3 = Color3.new(0/0, 0/0, 0/0)
  51. text.Text = ""
  52. txxt = table.concat(txxt,"\t")
  53. for i = 1, #txxt do
  54. text.Text = txxt:sub(1,i)
  55.  
  56. end
  57. wait(2)
  58. for trans = 0,1,00.1 do
  59. text.TextTransparency = trans
  60. text.TextStrokeTransparency = trans
  61. wait()
  62. end
  63. wait()
  64. txt:destroy()
  65. end)
  66.  
  67. ch(...)
  68. end
  69. Player.Chatted:connect(chat)
  70.  
  71. wait(0.2)
  72.  
  73. Player = game:GetService("Players").LocalPlayer
  74. PlayerGui = Player.PlayerGui
  75. Cam = workspace.CurrentCamera
  76. Backpack = Player.Backpack
  77. Character = Player.Character
  78. Humanoid = Character.Humanoid
  79. Mouse = Player:GetMouse()
  80. RootPart = Character["HumanoidRootPart"]
  81. Torso = Character["Torso"]
  82. Head = Character["Head"]
  83. RightArm = Character["Right Arm"]
  84. LeftArm = Character["Left Arm"]
  85. RightLeg = Character["Right Leg"]
  86. LeftLeg = Character["Left Leg"]
  87. RootJoint = RootPart["RootJoint"]
  88. Neck = Torso["Neck"]
  89. RightShoulder = Torso["Right Shoulder"]
  90. LeftShoulder = Torso["Left Shoulder"]
  91. RightHip = Torso["Right Hip"]
  92. LeftHip = Torso["Left Hip"]
  93.  
  94. for i,v in pairs(Character:GetChildren()) do
  95. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "CharacterMesh" then
  96. v:Destroy()
  97. end
  98. end
  99.  
  100. for i,v in pairs(Character:GetChildren()) do
  101. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  102. v:Destroy()
  103. end
  104. end
  105.  
  106. local Shirt = Instance.new("Shirt",Character)
  107. local Pants = Instance.new("Pants",Character)
  108. Shirt.ShirtTemplate = "rbxassetid://648758131"
  109. Pants.PantsTemplate = "rbxassetid://472675863"
  110.  
  111. local sick = Instance.new("Sound",Character)
  112. sick.SoundId = "rbxassetid://561833161"
  113. sick.Looped = true
  114. sick.Pitch = 1
  115. sick.Volume = 1.3
  116. sick:Play()
  117.  
  118. IT = Instance.new
  119. CF = CFrame.new
  120. VT = Vector3.new
  121. RAD = math.rad
  122. C3 = Color3.new
  123. UD2 = UDim2.new
  124. BRICKC = BrickColor.new
  125. ANGLES = CFrame.Angles
  126. EULER = CFrame.fromEulerAnglesXYZ
  127. COS = math.cos
  128. ACOS = math.acos
  129. SIN = math.sin
  130. ASIN = math.asin
  131. ABS = math.abs
  132. MRANDOM = math.random
  133. FLOOR = math.floor
  134. local CLOAKED = false
  135. local KILLINSTINCT = 0
  136. --//=================================\\
  137. --|| SOME OTHER STUFF
  138. --\\=================================//
  139. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  140. ff.Visible = false
  141. Humanoid.Name = "God Mode"
  142.  
  143. --//=================================\\
  144. --|| CUSTOMIZATION
  145. --\\=================================//
  146.  
  147. Player_Size = 1 --Size of the player.
  148. Animation_Speed = 3
  149. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  150.  
  151. local Speed = 16
  152. local Effects2 = {}
  153.  
  154. --//=================================\\
  155. --|| END OF CUSTOMIZATION
  156. --\\=================================//
  157.  
  158. local function weldBetween(a, b)
  159. local weldd = Instance.new("ManualWeld")
  160. weldd.Part0 = a
  161. weldd.Part1 = b
  162. weldd.C0 = CFrame.new()
  163. weldd.C1 = b.CFrame:inverse() * a.CFrame
  164. weldd.Parent = a
  165. return weldd
  166. end
  167. --//=================================\\
  168. --|| USEFUL VALUES
  169. --\\=================================//
  170.  
  171. Animation_Speed = 3
  172. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  173. local Speed = 16
  174. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  175. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  176. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  177. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  178. local DAMAGEMULTIPLIER = 1
  179. local ANIM = "Idle"
  180. local ATTACK = false
  181. local EQUIPPED = false
  182. local HOLD = false
  183. local CLOCKTARGET = nil
  184. local CLOCKSPEED = 2.5
  185. local CLOCKLOOP = 0
  186. local COMBO = 1
  187. local Rooted = false
  188. local SINE = 0
  189. local KEYHOLD = false
  190. local CHANGE = 2 / Animation_Speed
  191. local WALKINGANIM = false
  192. local VALUE1 = false
  193. local VALUE2 = false
  194. local ROBLOXIDLEANIMATION = IT("Animation")
  195. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  196. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  197. --ROBLOXIDLEANIMATION.Parent = Humanoid
  198. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  199. WEAPONGUI.Name = "Weapon GUI"
  200. local Weapon = IT("Model")
  201. Weapon.Name = "Adds"
  202. local Effects = IT("Folder", Weapon)
  203. Effects.Name = "Effects"
  204. local ANIMATOR = Humanoid.Animator
  205. local ANIMATE = Character.Animate
  206. local UNANCHOR = true
  207. local ENERGYSOUND = 1417051162
  208. local BEAMSOUND = 1417056781
  209. local EXPLOSIONSOUND = 1417056081
  210.  
  211. --//=================================\\
  212. --\\=================================//
  213.  
  214. local asd = Instance.new("ParticleEmitter")
  215. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  216. asd.LightEmission = .1
  217. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  218. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  219. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  220. asd.Transparency = bbb
  221. asd.Size = aaa
  222. asd.ZOffset = .9
  223. asd.Acceleration = Vector3.new(0, -15, 0)
  224. asd.LockedToPart = false
  225. asd.EmissionDirection = "Back"
  226. asd.Lifetime = NumberRange.new(1, 2)
  227. asd.Rotation = NumberRange.new(-100, 100)
  228. asd.RotSpeed = NumberRange.new(-100, 100)
  229. asd.Speed = NumberRange.new(10)
  230. asd.Enabled = false
  231. asd.VelocitySpread = 999
  232.  
  233. function getbloody(victim,amount)
  234. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  235. PART.CFrame = victim.CFrame
  236. local HITPLAYERSOUNDS = {"356551938","264486467"}
  237. Debris:AddItem(PART,5)
  238. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  239. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  240. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  241. local prtcl = asd:Clone()
  242. prtcl.Parent = PART
  243. prtcl:Emit(amount*10)
  244. end
  245.  
  246. --//=================================\\
  247. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  248. --\\=================================//
  249.  
  250. ArtificialHB = Instance.new("BindableEvent", script)
  251. ArtificialHB.Name = "ArtificialHB"
  252.  
  253. script:WaitForChild("ArtificialHB")
  254.  
  255. frame = Frame_Speed
  256. tf = 0
  257. allowframeloss = false
  258. tossremainder = false
  259. lastframe = tick()
  260. script.ArtificialHB:Fire()
  261.  
  262. game:GetService("RunService").Heartbeat:connect(function(s, p)
  263. tf = tf + s
  264. if tf >= frame then
  265. if allowframeloss then
  266. script.ArtificialHB:Fire()
  267. lastframe = tick()
  268. else
  269. for i = 1, math.floor(tf / frame) do
  270. script.ArtificialHB:Fire()
  271. end
  272. lastframe = tick()
  273. end
  274. if tossremainder then
  275. tf = 0
  276. else
  277. tf = tf - frame * math.floor(tf / frame)
  278. end
  279. end
  280. end)
  281.  
  282. --//=================================\\
  283. --\\=================================//
  284. ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
  285. ff.Visible = false
  286. Humanoid.Name = "God Mode"
  287.  
  288. local l = game.Lighting
  289. local sky = Instance.new("Sky",l)
  290. l.TimeOfDay = "00:00:00"
  291. l.Brightness = 1
  292. l.Ambient = Color3.new(0.25, 0.5, 0.75)
  293. ---
  294.  
  295.  
  296.  
  297. --//=================================\\
  298. --|| SOME FUNCTIONS
  299. --\\=================================//
  300. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  301. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  302. end
  303.  
  304. function PositiveAngle(NUMBER)
  305. if NUMBER >= 0 then
  306. NUMBER = 0
  307. end
  308. return NUMBER
  309. end
  310.  
  311. function NegativeAngle(NUMBER)
  312. if NUMBER <= 0 then
  313. NUMBER = 0
  314. end
  315. return NUMBER
  316. end
  317.  
  318. function Swait(NUMBER)
  319. if NUMBER == 0 or NUMBER == nil then
  320. ArtificialHB.Event:wait()
  321. else
  322. for i = 1, NUMBER do
  323. ArtificialHB.Event:wait()
  324. end
  325. end
  326. end
  327.  
  328. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  329. local NEWMESH = IT(MESH)
  330. if MESH == "SpecialMesh" then
  331. NEWMESH.MeshType = MESHTYPE
  332. if MESHID ~= "nil" and MESHID ~= "" then
  333. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  334. end
  335. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  336. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  337. end
  338. end
  339. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  340. NEWMESH.Scale = SCALE
  341. NEWMESH.Parent = PARENT
  342. return NEWMESH
  343. end
  344.  
  345. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  346. local NEWPART = IT("Part")
  347. NEWPART.formFactor = FORMFACTOR
  348. NEWPART.Reflectance = REFLECTANCE
  349. NEWPART.Transparency = TRANSPARENCY
  350. NEWPART.CanCollide = false
  351. NEWPART.Locked = true
  352. NEWPART.Anchored = true
  353. if ANCHOR == false then
  354. NEWPART.Anchored = false
  355. end
  356. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  357. NEWPART.Name = NAME
  358. NEWPART.Size = SIZE
  359. NEWPART.Position = Torso.Position
  360. NEWPART.Material = MATERIAL
  361. NEWPART:BreakJoints()
  362. NEWPART.Parent = PARENT
  363. return NEWPART
  364. end
  365.  
  366. local function weldBetween(a, b)
  367. local weldd = Instance.new("ManualWeld")
  368. weldd.Part0 = a
  369. weldd.Part1 = b
  370. weldd.C0 = CFrame.new()
  371. weldd.C1 = b.CFrame:inverse() * a.CFrame
  372. weldd.Parent = a
  373. return weldd
  374. end
  375.  
  376.  
  377. function QuaternionFromCFrame(cf)
  378. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  379. local trace = m00 + m11 + m22
  380. if trace > 0 then
  381. local s = math.sqrt(1 + trace)
  382. local recip = 0.5 / s
  383. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  384. else
  385. local i = 0
  386. if m11 > m00 then
  387. i = 1
  388. end
  389. if m22 > (i == 0 and m00 or m11) then
  390. i = 2
  391. end
  392. if i == 0 then
  393. local s = math.sqrt(m00 - m11 - m22 + 1)
  394. local recip = 0.5 / s
  395. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  396. elseif i == 1 then
  397. local s = math.sqrt(m11 - m22 - m00 + 1)
  398. local recip = 0.5 / s
  399. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  400. elseif i == 2 then
  401. local s = math.sqrt(m22 - m00 - m11 + 1)
  402. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  403. end
  404. end
  405. end
  406.  
  407. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  408. local xs, ys, zs = x + x, y + y, z + z
  409. local wx, wy, wz = w * xs, w * ys, w * zs
  410. local xx = x * xs
  411. local xy = x * ys
  412. local xz = x * zs
  413. local yy = y * ys
  414. local yz = y * zs
  415. local zz = z * zs
  416. 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))
  417. end
  418.  
  419. function QuaternionSlerp(a, b, t)
  420. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  421. local startInterp, finishInterp;
  422. if cosTheta >= 0.0001 then
  423. if (1 - cosTheta) > 0.0001 then
  424. local theta = ACOS(cosTheta)
  425. local invSinTheta = 1 / SIN(theta)
  426. startInterp = SIN((1 - t) * theta) * invSinTheta
  427. finishInterp = SIN(t * theta) * invSinTheta
  428. else
  429. startInterp = 1 - t
  430. finishInterp = t
  431. end
  432. else
  433. if (1 + cosTheta) > 0.0001 then
  434. local theta = ACOS(-cosTheta)
  435. local invSinTheta = 1 / SIN(theta)
  436. startInterp = SIN((t - 1) * theta) * invSinTheta
  437. finishInterp = SIN(t * theta) * invSinTheta
  438. else
  439. startInterp = t - 1
  440. finishInterp = t
  441. end
  442. end
  443. 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
  444. end
  445.  
  446. function Clerp(a, b, t)
  447. local qa = {QuaternionFromCFrame(a)}
  448. local qb = {QuaternionFromCFrame(b)}
  449. local ax, ay, az = a.x, a.y, a.z
  450. local bx, by, bz = b.x, b.y, b.z
  451. local _t = 1 - t
  452. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  453. end
  454.  
  455. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  456. local frame = IT("Frame")
  457. frame.BackgroundTransparency = TRANSPARENCY
  458. frame.BorderSizePixel = BORDERSIZEPIXEL
  459. frame.Position = POSITION
  460. frame.Size = SIZE
  461. frame.BackgroundColor3 = COLOR
  462. frame.BorderColor3 = BORDERCOLOR
  463. frame.Name = NAME
  464. frame.Parent = PARENT
  465. return frame
  466. end
  467.  
  468. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  469. local label = IT("TextLabel")
  470. label.BackgroundTransparency = 1
  471. label.Size = UD2(1, 0, 1, 0)
  472. label.Position = UD2(0, 0, 0, 0)
  473. label.TextColor3 = TEXTCOLOR
  474. label.TextStrokeTransparency = STROKETRANSPARENCY
  475. label.TextTransparency = TRANSPARENCY
  476. label.FontSize = TEXTFONTSIZE
  477. label.Font = TEXTFONT
  478. label.BorderSizePixel = BORDERSIZEPIXEL
  479. label.TextStrokeColor3 = C3(1,1,1)
  480. label.TextScaled = false
  481. label.Text = TEXT
  482. label.Name = NAME
  483. label.Parent = PARENT
  484. return label
  485. end
  486.  
  487. function NoOutlines(PART)
  488. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  489. end
  490.  
  491. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  492. local NEWWELD = IT(TYPE)
  493. NEWWELD.Part0 = PART0
  494. NEWWELD.Part1 = PART1
  495. NEWWELD.C0 = C0
  496. NEWWELD.C1 = C1
  497. NEWWELD.Parent = PARENT
  498. return NEWWELD
  499. end
  500.  
  501. local S = IT("Sound")
  502. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  503. local NEWSOUND = nil
  504. coroutine.resume(coroutine.create(function()
  505. NEWSOUND = S:Clone()
  506. NEWSOUND.Parent = PARENT
  507. NEWSOUND.Volume = VOLUME
  508. NEWSOUND.Pitch = PITCH
  509. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  510. NEWSOUND:play()
  511. if DOESLOOP == true then
  512. NEWSOUND.Looped = true
  513. else
  514. repeat wait(1) until NEWSOUND.Playing == false
  515. NEWSOUND:remove()
  516. end
  517. end))
  518. return NEWSOUND
  519. end
  520.  
  521. function CFrameFromTopBack(at, top, back)
  522. local right = top:Cross(back)
  523. 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)
  524. end
  525.  
  526. --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})
  527. function WACKYEFFECT(Table)
  528. local TYPE = (Table.EffectType or "Sphere")
  529. local SIZE = (Table.Size or VT(1,1,1))
  530. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  531. local TRANSPARENCY = (Table.Transparency or 0)
  532. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  533. local CFRAME = (Table.CFrame or Torso.CFrame)
  534. local MOVEDIRECTION = (Table.MoveToPos or nil)
  535. local ROTATION1 = (Table.RotationX or 0)
  536. local ROTATION2 = (Table.RotationY or 0)
  537. local ROTATION3 = (Table.RotationZ or 0)
  538. local MATERIAL = (Table.Material or "Neon")
  539. local COLOR = (Table.Color or C3(1,1,1))
  540. local TIME = (Table.Time or 45)
  541. local SOUNDID = (Table.SoundID or nil)
  542. local SOUNDPITCH = (Table.SoundPitch or nil)
  543. local SOUNDVOLUME = (Table.SoundVolume or nil)
  544. coroutine.resume(coroutine.create(function()
  545. local PLAYSSOUND = false
  546. local SOUND = nil
  547. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  548. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  549. PLAYSSOUND = true
  550. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  551. end
  552. EFFECT.Color = COLOR
  553. local MSH = nil
  554. if TYPE == "Sphere" then
  555. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  556. elseif TYPE == "Block" then
  557. MSH = IT("BlockMesh",EFFECT)
  558. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  559. elseif TYPE == "Wave" then
  560. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  561. elseif TYPE == "Ring" then
  562. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  563. elseif TYPE == "Slash" then
  564. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  565. elseif TYPE == "Round Slash" then
  566. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  567. elseif TYPE == "Swirl" then
  568. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  569. elseif TYPE == "Skull" then
  570. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  571. elseif TYPE == "Crystal" then
  572. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  573. end
  574. if MSH ~= nil then
  575. local MOVESPEED = nil
  576. if MOVEDIRECTION ~= nil then
  577. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  578. end
  579. local GROWTH = SIZE - ENDSIZE
  580. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  581. if TYPE == "Block" then
  582. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  583. else
  584. EFFECT.CFrame = CFRAME
  585. end
  586. for LOOP = 1, TIME+1 do
  587. Swait()
  588. MSH.Scale = MSH.Scale - GROWTH/TIME
  589. if TYPE == "Wave" then
  590. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  591. end
  592. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  593. if TYPE == "Block" then
  594. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  595. else
  596. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  597. end
  598. if MOVEDIRECTION ~= nil then
  599. local ORI = EFFECT.Orientation
  600. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  601. EFFECT.Orientation = ORI
  602. end
  603. end
  604. if PLAYSSOUND == false then
  605. EFFECT:remove()
  606. else
  607. repeat Swait() until SOUND.Playing == false
  608. EFFECT:remove()
  609. end
  610. else
  611. if PLAYSSOUND == false then
  612. EFFECT:remove()
  613. else
  614. repeat Swait() until SOUND.Playing == false
  615. EFFECT:remove()
  616. end
  617. end
  618. end))
  619. end
  620.  
  621. function MakeForm(PART,TYPE)
  622. if TYPE == "Cyl" then
  623. local MSH = IT("CylinderMesh",PART)
  624. elseif TYPE == "Ball" then
  625. local MSH = IT("SpecialMesh",PART)
  626. MSH.MeshType = "Sphere"
  627. elseif TYPE == "Wedge" then
  628. local MSH = IT("SpecialMesh",PART)
  629. MSH.MeshType = "Wedge"
  630. end
  631. end
  632.  
  633. Debris = game:GetService("Debris")
  634.  
  635. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  636. local DIRECTION = CF(StartPos,EndPos).lookVector
  637. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  638. end
  639.  
  640. function turnto(position)
  641. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  642. end
  643.  
  644. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  645. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  646. end
  647.  
  648. function PositiveAngle(NUMBER)
  649. if NUMBER >= 0 then
  650. NUMBER = 0
  651. end
  652. return NUMBER
  653. end
  654.  
  655. function NegativeAngle(NUMBER)
  656. if NUMBER <= 0 then
  657. NUMBER = 0
  658. end
  659. return NUMBER
  660. end
  661.  
  662. function Swait(NUMBER)
  663. if NUMBER == 0 or NUMBER == nil then
  664. ArtificialHB.Event:wait()
  665. else
  666. for i = 1, NUMBER do
  667. ArtificialHB.Event:wait()
  668. end
  669. end
  670. end
  671.  
  672. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  673. local NEWMESH = IT(MESH)
  674. if MESH == "SpecialMesh" then
  675. NEWMESH.MeshType = MESHTYPE
  676. if MESHID ~= "nil" and MESHID ~= "" then
  677. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  678. end
  679. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  680. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  681. end
  682. end
  683. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  684. NEWMESH.Scale = SCALE
  685. NEWMESH.Parent = PARENT
  686. return NEWMESH
  687. end
  688.  
  689. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  690. local NEWPART = IT("Part")
  691. NEWPART.formFactor = FORMFACTOR
  692. NEWPART.Reflectance = REFLECTANCE
  693. NEWPART.Transparency = TRANSPARENCY
  694. NEWPART.CanCollide = false
  695. NEWPART.Locked = true
  696. NEWPART.Anchored = true
  697. if ANCHOR == false then
  698. NEWPART.Anchored = false
  699. end
  700. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  701. NEWPART.Name = NAME
  702. NEWPART.Size = SIZE
  703. NEWPART.Position = Torso.Position
  704. NEWPART.Material = MATERIAL
  705. NEWPART:BreakJoints()
  706. NEWPART.Parent = PARENT
  707. return NEWPART
  708. end
  709.  
  710. local function weldBetween(a, b)
  711. local weldd = Instance.new("ManualWeld")
  712. weldd.Part0 = a
  713. weldd.Part1 = b
  714. weldd.C0 = CFrame.new()
  715. weldd.C1 = b.CFrame:inverse() * a.CFrame
  716. weldd.Parent = a
  717. return weldd
  718. end
  719.  
  720.  
  721. function QuaternionFromCFrame(cf)
  722. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  723. local trace = m00 + m11 + m22
  724. if trace > 0 then
  725. local s = math.sqrt(1 + trace)
  726. local recip = 0.5 / s
  727. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  728. else
  729. local i = 0
  730. if m11 > m00 then
  731. i = 1
  732. end
  733. if m22 > (i == 0 and m00 or m11) then
  734. i = 2
  735. end
  736. if i == 0 then
  737. local s = math.sqrt(m00 - m11 - m22 + 1)
  738. local recip = 0.5 / s
  739. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  740. elseif i == 1 then
  741. local s = math.sqrt(m11 - m22 - m00 + 1)
  742. local recip = 0.5 / s
  743. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  744. elseif i == 2 then
  745. local s = math.sqrt(m22 - m00 - m11 + 1)
  746. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  747. end
  748. end
  749. end
  750.  
  751. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  752. local xs, ys, zs = x + x, y + y, z + z
  753. local wx, wy, wz = w * xs, w * ys, w * zs
  754. local xx = x * xs
  755. local xy = x * ys
  756. local xz = x * zs
  757. local yy = y * ys
  758. local yz = y * zs
  759. local zz = z * zs
  760. 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))
  761. end
  762.  
  763. function QuaternionSlerp(a, b, t)
  764. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  765. local startInterp, finishInterp;
  766. if cosTheta >= 0.0001 then
  767. if (1 - cosTheta) > 0.0001 then
  768. local theta = ACOS(cosTheta)
  769. local invSinTheta = 1 / SIN(theta)
  770. startInterp = SIN((1 - t) * theta) * invSinTheta
  771. finishInterp = SIN(t * theta) * invSinTheta
  772. else
  773. startInterp = 1 - t
  774. finishInterp = t
  775. end
  776. else
  777. if (1 + cosTheta) > 0.0001 then
  778. local theta = ACOS(-cosTheta)
  779. local invSinTheta = 1 / SIN(theta)
  780. startInterp = SIN((t - 1) * theta) * invSinTheta
  781. finishInterp = SIN(t * theta) * invSinTheta
  782. else
  783. startInterp = t - 1
  784. finishInterp = t
  785. end
  786. end
  787. 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
  788. end
  789.  
  790. function Clerp(a, b, t)
  791. local qa = {QuaternionFromCFrame(a)}
  792. local qb = {QuaternionFromCFrame(b)}
  793. local ax, ay, az = a.x, a.y, a.z
  794. local bx, by, bz = b.x, b.y, b.z
  795. local _t = 1 - t
  796. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  797. end
  798.  
  799. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  800. local frame = IT("Frame")
  801. frame.BackgroundTransparency = TRANSPARENCY
  802. frame.BorderSizePixel = BORDERSIZEPIXEL
  803. frame.Position = POSITION
  804. frame.Size = SIZE
  805. frame.BackgroundColor3 = COLOR
  806. frame.BorderColor3 = BORDERCOLOR
  807. frame.Name = NAME
  808. frame.Parent = PARENT
  809. return frame
  810. end
  811.  
  812. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  813. local label = IT("TextLabel")
  814. label.BackgroundTransparency = 1
  815. label.Size = UD2(1, 0, 1, 0)
  816. label.Position = UD2(0, 0, 0, 0)
  817. label.TextColor3 = TEXTCOLOR
  818. label.TextStrokeTransparency = STROKETRANSPARENCY
  819. label.TextTransparency = TRANSPARENCY
  820. label.FontSize = TEXTFONTSIZE
  821. label.Font = TEXTFONT
  822. label.BorderSizePixel = BORDERSIZEPIXEL
  823. label.TextScaled = false
  824. label.Text = TEXT
  825. label.Name = NAME
  826. label.Parent = PARENT
  827. return label
  828. end
  829.  
  830. function NoOutlines(PART)
  831. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  832. end
  833.  
  834. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  835. local NEWWELD = IT(TYPE)
  836. NEWWELD.Part0 = PART0
  837. NEWWELD.Part1 = PART1
  838. NEWWELD.C0 = C0
  839. NEWWELD.C1 = C1
  840. NEWWELD.Parent = PARENT
  841. return NEWWELD
  842. end
  843.  
  844. local S = IT("Sound")
  845. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  846. local NEWSOUND = nil
  847. coroutine.resume(coroutine.create(function()
  848. NEWSOUND = S:Clone()
  849. NEWSOUND.Parent = PARENT
  850. NEWSOUND.Volume = VOLUME
  851. NEWSOUND.Pitch = PITCH
  852. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  853. NEWSOUND:play()
  854. if DOESLOOP == true then
  855. NEWSOUND.Looped = true
  856. else
  857. repeat wait(1) until NEWSOUND.Playing == false
  858. NEWSOUND:remove()
  859. end
  860. end))
  861. return NEWSOUND
  862. end
  863.  
  864. function CFrameFromTopBack(at, top, back)
  865. local right = top:Cross(back)
  866. 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)
  867. end
  868.  
  869. --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})
  870. function WACKYEFFECT(Table)
  871. local TYPE = (Table.EffectType or "Sphere")
  872. local SIZE = (Table.Size or VT(1,1,1))
  873. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  874. local TRANSPARENCY = (Table.Transparency or 0)
  875. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  876. local CFRAME = (Table.CFrame or Torso.CFrame)
  877. local MOVEDIRECTION = (Table.MoveToPos or nil)
  878. local ROTATION1 = (Table.RotationX or 0)
  879. local ROTATION2 = (Table.RotationY or 0)
  880. local ROTATION3 = (Table.RotationZ or 0)
  881. local MATERIAL = (Table.Material or "Neon")
  882. local COLOR = (Table.Color or C3(1,1,1))
  883. local TIME = (Table.Time or 45)
  884. local SOUNDID = (Table.SoundID or nil)
  885. local SOUNDPITCH = (Table.SoundPitch or nil)
  886. local SOUNDVOLUME = (Table.SoundVolume or nil)
  887. coroutine.resume(coroutine.create(function()
  888. local PLAYSSOUND = false
  889. local SOUND = nil
  890. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  891. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  892. PLAYSSOUND = true
  893. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  894. end
  895. EFFECT.Color = COLOR
  896. local MSH = nil
  897. if TYPE == "Sphere" then
  898. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  899. elseif TYPE == "Block" then
  900. MSH = IT("BlockMesh",EFFECT)
  901. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  902. elseif TYPE == "Wave" then
  903. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  904. elseif TYPE == "Ring" then
  905. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  906. elseif TYPE == "Slash" then
  907. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  908. elseif TYPE == "Round Slash" then
  909. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  910. elseif TYPE == "Swirl" then
  911. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  912. elseif TYPE == "Skull" then
  913. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  914. elseif TYPE == "Crystal" then
  915. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  916. end
  917. if MSH ~= nil then
  918. local MOVESPEED = nil
  919. if MOVEDIRECTION ~= nil then
  920. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  921. end
  922. local GROWTH = SIZE - ENDSIZE
  923. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  924. if TYPE == "Block" then
  925. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  926. else
  927. EFFECT.CFrame = CFRAME
  928. end
  929. for LOOP = 1, TIME+1 do
  930. Swait()
  931. MSH.Scale = MSH.Scale - GROWTH/TIME
  932. if TYPE == "Wave" then
  933. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  934. end
  935. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  936. if TYPE == "Block" then
  937. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  938. else
  939. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  940. end
  941. if MOVEDIRECTION ~= nil then
  942. local ORI = EFFECT.Orientation
  943. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  944. EFFECT.Orientation = ORI
  945. end
  946. end
  947. if PLAYSSOUND == false then
  948. EFFECT:remove()
  949. else
  950. SOUND.Stopped:Connect(function()
  951. EFFECT:remove()
  952. end)
  953. end
  954. else
  955. if PLAYSSOUND == false then
  956. EFFECT:remove()
  957. else
  958. repeat Swait() until SOUND.Playing == false
  959. EFFECT:remove()
  960. end
  961. end
  962. end))
  963. end
  964.  
  965. function MakeForm(PART,TYPE)
  966. if TYPE == "Cyl" then
  967. local MSH = IT("CylinderMesh",PART)
  968. elseif TYPE == "Ball" then
  969. local MSH = IT("SpecialMesh",PART)
  970. MSH.MeshType = "Sphere"
  971. elseif TYPE == "Wedge" then
  972. local MSH = IT("SpecialMesh",PART)
  973. MSH.MeshType = "Wedge"
  974. end
  975. end
  976.  
  977. Debris = game:GetService("Debris")
  978.  
  979. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  980. local DIRECTION = CF(StartPos,EndPos).lookVector
  981. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  982. end
  983.  
  984. local EyeSizes={
  985. NumberSequenceKeypoint.new(0,1,0),
  986. NumberSequenceKeypoint.new(1,0,0)
  987. }
  988. local EyeTrans={
  989. NumberSequenceKeypoint.new(0,0.8,0),
  990. NumberSequenceKeypoint.new(1,1,0)
  991. }
  992. local PE=Instance.new("ParticleEmitter",nil)
  993. PE.LightEmission=.8
  994. PE.Color = ColorSequence.new(BRICKC("Black").Color)
  995. PE.Size=NumberSequence.new(EyeSizes)
  996. PE.Transparency=NumberSequence.new(EyeTrans)
  997. PE.Lifetime=NumberRange.new(0.35,1.5)
  998. PE.Rotation=NumberRange.new(0,360)
  999. PE.Rate=999
  1000. PE.VelocitySpread = 10000
  1001. PE.Acceleration = Vector3.new(0,0,0)
  1002. PE.Drag = 5
  1003. PE.Speed = NumberRange.new(0,0,0)
  1004. PE.Texture="http://www.roblox.com/asset/?id=1351966707"
  1005. PE.ZOffset = -0
  1006. PE.Name = "PE"
  1007. PE.Enabled = false
  1008.  
  1009. function particles(art)
  1010. local PARTICLES = PE:Clone()
  1011. PARTICLES.Parent = art
  1012. end
  1013.  
  1014. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1015. if FLOOR ~= nil then
  1016. coroutine.resume(coroutine.create(function()
  1017. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  1018. PART.CFrame = CF(POSITION)
  1019. for i = 1, 45 do
  1020. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  1021. RingPiece.Material = FLOOR.Material
  1022. RingPiece.Color = FLOOR.Color
  1023. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1024. Debris:AddItem(RingPiece,SWAIT)
  1025. end
  1026. PART:remove()
  1027. end))
  1028. end
  1029. end
  1030.  
  1031. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1032. if FLOOR ~= nil then
  1033. for i = 1, AMOUNT do
  1034. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  1035. DEBREE.Material = FLOOR.Material
  1036. DEBREE.Color = FLOOR.Color
  1037. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1038. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  1039. coroutine.resume(coroutine.create(function()
  1040. Swait(15)
  1041. DEBREE.Parent = workspace
  1042. DEBREE.CanCollide = true
  1043. Debris:AddItem(DEBREE,SWAIT)
  1044. end))
  1045. end
  1046. end
  1047. end
  1048.  
  1049. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1050. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1051. end
  1052.  
  1053. function PositiveAngle(NUMBER)
  1054. if NUMBER >= 0 then
  1055. NUMBER = 0
  1056. end
  1057. return NUMBER
  1058. end
  1059.  
  1060. function NegativeAngle(NUMBER)
  1061. if NUMBER <= 0 then
  1062. NUMBER = 0
  1063. end
  1064. return NUMBER
  1065. end
  1066.  
  1067. function Swait(NUMBER)
  1068. if NUMBER == 0 or NUMBER == nil then
  1069. ArtificialHB.Event:wait()
  1070. else
  1071. for i = 1, NUMBER do
  1072. ArtificialHB.Event:wait()
  1073. end
  1074. end
  1075. end
  1076.  
  1077. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1078. local NEWMESH = IT(MESH)
  1079. if MESH == "SpecialMesh" then
  1080. NEWMESH.MeshType = MESHTYPE
  1081. if MESHID ~= "nil" and MESHID ~= "" then
  1082. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1083. end
  1084. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1085. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1086. end
  1087. end
  1088. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1089. NEWMESH.Scale = SCALE
  1090. NEWMESH.Parent = PARENT
  1091. return NEWMESH
  1092. end
  1093.  
  1094. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1095. local NEWPART = IT("Part")
  1096. NEWPART.formFactor = FORMFACTOR
  1097. NEWPART.Reflectance = REFLECTANCE
  1098. NEWPART.Transparency = TRANSPARENCY
  1099. NEWPART.CanCollide = false
  1100. NEWPART.Locked = true
  1101. NEWPART.Anchored = true
  1102. if ANCHOR == false then
  1103. NEWPART.Anchored = false
  1104. end
  1105. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1106. NEWPART.Name = NAME
  1107. NEWPART.Size = SIZE
  1108. NEWPART.Position = Torso.Position
  1109. NEWPART.Material = MATERIAL
  1110. NEWPART:BreakJoints()
  1111. NEWPART.Parent = PARENT
  1112. return NEWPART
  1113. end
  1114.  
  1115. local function weldBetween(a, b)
  1116. local weldd = Instance.new("ManualWeld")
  1117. weldd.Part0 = a
  1118. weldd.Part1 = b
  1119. weldd.C0 = CFrame.new()
  1120. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1121. weldd.Parent = a
  1122. return weldd
  1123. end
  1124.  
  1125.  
  1126. function QuaternionFromCFrame(cf)
  1127. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1128. local trace = m00 + m11 + m22
  1129. if trace > 0 then
  1130. local s = math.sqrt(1 + trace)
  1131. local recip = 0.5 / s
  1132. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1133. else
  1134. local i = 0
  1135. if m11 > m00 then
  1136. i = 1
  1137. end
  1138. if m22 > (i == 0 and m00 or m11) then
  1139. i = 2
  1140. end
  1141. if i == 0 then
  1142. local s = math.sqrt(m00 - m11 - m22 + 1)
  1143. local recip = 0.5 / s
  1144. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1145. elseif i == 1 then
  1146. local s = math.sqrt(m11 - m22 - m00 + 1)
  1147. local recip = 0.5 / s
  1148. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1149. elseif i == 2 then
  1150. local s = math.sqrt(m22 - m00 - m11 + 1)
  1151. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1152. end
  1153. end
  1154. end
  1155.  
  1156. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1157. local xs, ys, zs = x + x, y + y, z + z
  1158. local wx, wy, wz = w * xs, w * ys, w * zs
  1159. local xx = x * xs
  1160. local xy = x * ys
  1161. local xz = x * zs
  1162. local yy = y * ys
  1163. local yz = y * zs
  1164. local zz = z * zs
  1165. 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))
  1166. end
  1167.  
  1168. function QuaternionSlerp(a, b, t)
  1169. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1170. local startInterp, finishInterp;
  1171. if cosTheta >= 0.0001 then
  1172. if (1 - cosTheta) > 0.0001 then
  1173. local theta = ACOS(cosTheta)
  1174. local invSinTheta = 1 / SIN(theta)
  1175. startInterp = SIN((1 - t) * theta) * invSinTheta
  1176. finishInterp = SIN(t * theta) * invSinTheta
  1177. else
  1178. startInterp = 1 - t
  1179. finishInterp = t
  1180. end
  1181. else
  1182. if (1 + cosTheta) > 0.0001 then
  1183. local theta = ACOS(-cosTheta)
  1184. local invSinTheta = 1 / SIN(theta)
  1185. startInterp = SIN((t - 1) * theta) * invSinTheta
  1186. finishInterp = SIN(t * theta) * invSinTheta
  1187. else
  1188. startInterp = t - 1
  1189. finishInterp = t
  1190. end
  1191. end
  1192. 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
  1193. end
  1194.  
  1195. function Clerp(a, b, t)
  1196. local qa = {QuaternionFromCFrame(a)}
  1197. local qb = {QuaternionFromCFrame(b)}
  1198. local ax, ay, az = a.x, a.y, a.z
  1199. local bx, by, bz = b.x, b.y, b.z
  1200. local _t = 1 - t
  1201. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1202. end
  1203.  
  1204. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1205. local frame = IT("Frame")
  1206. frame.BackgroundTransparency = TRANSPARENCY
  1207. frame.BorderSizePixel = BORDERSIZEPIXEL
  1208. frame.Position = POSITION
  1209. frame.Size = SIZE
  1210. frame.BackgroundColor3 = COLOR
  1211. frame.BorderColor3 = BORDERCOLOR
  1212. frame.Name = NAME
  1213. frame.Parent = PARENT
  1214. return frame
  1215. end
  1216.  
  1217. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1218. local label = IT("TextLabel")
  1219. label.BackgroundTransparency = 1
  1220. label.Size = UD2(1, 0, 1, 0)
  1221. label.Position = UD2(0, 0, 0, 0)
  1222. label.TextColor3 = TEXTCOLOR
  1223. label.TextStrokeTransparency = STROKETRANSPARENCY
  1224. label.TextTransparency = TRANSPARENCY
  1225. label.FontSize = TEXTFONTSIZE
  1226. label.Font = TEXTFONT
  1227. label.BorderSizePixel = BORDERSIZEPIXEL
  1228. label.TextScaled = false
  1229. label.Text = TEXT
  1230. label.Name = NAME
  1231. label.Parent = PARENT
  1232. return label
  1233. end
  1234.  
  1235. function NoOutlines(PART)
  1236. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1237. end
  1238.  
  1239. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1240. local NEWWELD = IT(TYPE)
  1241. NEWWELD.Part0 = PART0
  1242. NEWWELD.Part1 = PART1
  1243. NEWWELD.C0 = C0
  1244. NEWWELD.C1 = C1
  1245. NEWWELD.Parent = PARENT
  1246. return NEWWELD
  1247. end
  1248.  
  1249. local S = IT("Sound")
  1250. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1251. local NEWSOUND = nil
  1252. coroutine.resume(coroutine.create(function()
  1253. NEWSOUND = S:Clone()
  1254. NEWSOUND.Parent = PARENT
  1255. NEWSOUND.Volume = VOLUME
  1256. NEWSOUND.Pitch = PITCH
  1257. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1258. NEWSOUND:play()
  1259. if DOESLOOP == true then
  1260. NEWSOUND.Looped = true
  1261. else
  1262. repeat wait(1) until NEWSOUND.Playing == false
  1263. NEWSOUND:remove()
  1264. end
  1265. end))
  1266. return NEWSOUND
  1267. end
  1268.  
  1269. function CFrameFromTopBack(at, top, back)
  1270. local right = top:Cross(back)
  1271. 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)
  1272. end
  1273.  
  1274. --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})
  1275. function WACKYEFFECT(Table)
  1276. local TYPE = (Table.EffectType or "Sphere")
  1277. local SIZE = (Table.Size or VT(1,1,1))
  1278. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1279. local TRANSPARENCY = (Table.Transparency or 0)
  1280. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1281. local CFRAME = (Table.CFrame or Torso.CFrame)
  1282. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1283. local ROTATION1 = (Table.RotationX or 0)
  1284. local ROTATION2 = (Table.RotationY or 0)
  1285. local ROTATION3 = (Table.RotationZ or 0)
  1286. local MATERIAL = (Table.Material or "Neon")
  1287. local COLOR = (Table.Color or C3(1,1,1))
  1288. local TIME = (Table.Time or 45)
  1289. local SOUNDID = (Table.SoundID or nil)
  1290. local SOUNDPITCH = (Table.SoundPitch or nil)
  1291. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1292. coroutine.resume(coroutine.create(function()
  1293. local PLAYSSOUND = false
  1294. local SOUND = nil
  1295. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1296. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1297. PLAYSSOUND = true
  1298. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1299. end
  1300. EFFECT.Color = COLOR
  1301. local MSH = nil
  1302. if TYPE == "Sphere" then
  1303. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1304. elseif TYPE == "Block" then
  1305. MSH = IT("BlockMesh",EFFECT)
  1306. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1307. elseif TYPE == "Wave" then
  1308. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1309. elseif TYPE == "Ring" then
  1310. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1311. elseif TYPE == "Slash" then
  1312. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1313. elseif TYPE == "Round Slash" then
  1314. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1315. elseif TYPE == "Swirl" then
  1316. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1317. elseif TYPE == "Skull" then
  1318. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1319. elseif TYPE == "Crystal" then
  1320. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1321. end
  1322. if MSH ~= nil then
  1323. local MOVESPEED = nil
  1324. if MOVEDIRECTION ~= nil then
  1325. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1326. end
  1327. local GROWTH = SIZE - ENDSIZE
  1328. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1329. if TYPE == "Block" then
  1330. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1331. else
  1332. EFFECT.CFrame = CFRAME
  1333. end
  1334. for LOOP = 1, TIME+1 do
  1335. Swait()
  1336. MSH.Scale = MSH.Scale - GROWTH/TIME
  1337. if TYPE == "Wave" then
  1338. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1339. end
  1340. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1341. if TYPE == "Block" then
  1342. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1343. else
  1344. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1345. end
  1346. if MOVEDIRECTION ~= nil then
  1347. local ORI = EFFECT.Orientation
  1348. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1349. EFFECT.Orientation = ORI
  1350. end
  1351. end
  1352. if PLAYSSOUND == false then
  1353. EFFECT:remove()
  1354. else
  1355. repeat Swait() until SOUND.Playing == false
  1356. EFFECT:remove()
  1357. end
  1358. else
  1359. if PLAYSSOUND == false then
  1360. EFFECT:remove()
  1361. else
  1362. repeat Swait() until SOUND.Playing == false
  1363. EFFECT:remove()
  1364. end
  1365. end
  1366. end))
  1367. end
  1368.  
  1369. function MakeForm(PART,TYPE)
  1370. if TYPE == "Cyl" then
  1371. local MSH = IT("CylinderMesh",PART)
  1372. elseif TYPE == "Ball" then
  1373. local MSH = IT("SpecialMesh",PART)
  1374. MSH.MeshType = "Sphere"
  1375. elseif TYPE == "Wedge" then
  1376. local MSH = IT("SpecialMesh",PART)
  1377. MSH.MeshType = "Wedge"
  1378. end
  1379. end
  1380.  
  1381. Debris = game:GetService("Debris")
  1382.  
  1383. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1384. local DIRECTION = CF(StartPos,EndPos).lookVector
  1385. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1386. end
  1387.  
  1388. function turnto(position)
  1389. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1390. end
  1391.  
  1392. --//=================================\\
  1393. --|| WEAPON CREATION
  1394. --\\=================================//
  1395. local BODY = {}
  1396.  
  1397. for _, c in pairs(Character:GetDescendants()) do
  1398. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1399. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  1400. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1401. end
  1402. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1403. elseif c:IsA("JointInstance") then
  1404. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  1405. end
  1406. end
  1407.  
  1408. for e = 1, #BODY do
  1409. if BODY[e] ~= nil then
  1410. local STUFF = BODY[e]
  1411. local PART = STUFF[1]
  1412. local PARENT = STUFF[2]
  1413. local MATERIAL = STUFF[3]
  1414. local COLOR = STUFF[4]
  1415. local TRANSPARENCY = STUFF[5]
  1416. if PART.ClassName == "Part" and PART ~= RootPart then
  1417. PART.Material = MATERIAL
  1418. PART.Color = COLOR
  1419. PART.Transparency = TRANSPARENCY
  1420. end
  1421. PART.AncestryChanged:Connect(function()
  1422. PART.Parent = PARENT
  1423. end)
  1424. end
  1425. end
  1426.  
  1427. -------------------------------------------------------
  1428. local Orbd = Instance.new("Part", Character)
  1429. Orbd.Name = "Orbd"
  1430. Orbd.Shape = Enum.PartType.Ball
  1431. Orbd.CanCollide = false
  1432. Orbd.BrickColor = BrickColor.new("Really black")
  1433. Orbd.Transparency = 0
  1434. Orbd.Material = "Neon"
  1435. Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
  1436. Orbd.TopSurface = Enum.SurfaceType.Smooth
  1437. Orbd.BottomSurface = Enum.SurfaceType.Smooth
  1438.  
  1439. local Weld = Instance.new("Weld", Orbd)
  1440. Weld.Part0 = Character.Head
  1441. Weld.Part1 = Orbd
  1442. Weld.C1 = CFrame.new(-0.26, -0.24, 0.55)
  1443.  
  1444. --------------------------------------------------------
  1445. local Orbvc = Instance.new("Part", Character)
  1446. Orbvc.Name = "Orbvc"
  1447. Orbvc.Shape = Enum.PartType.Ball
  1448. Orbvc.CanCollide = false
  1449. Orbvc.BrickColor = BrickColor.new("Really black")
  1450. Orbvc.Transparency = 0
  1451. Orbvc.Material = "Neon"
  1452. Orbvc.Size = Vector3.new(0.3, 0.3, 0.3)
  1453. Orbvc.TopSurface = Enum.SurfaceType.Smooth
  1454. Orbvc.BottomSurface = Enum.SurfaceType.Smooth
  1455.  
  1456. local Weld = Instance.new("Weld", Orbvc)
  1457. Weld.Part0 = Character.Head
  1458. Weld.Part1 = Orbvc
  1459. Weld.C1 = CFrame.new(0.26, -0.24, 0.55)
  1460. ---------------------------------------------------------
  1461. local Mask = Instance.new("Part", Character)
  1462. Mask.Name = "Mask"
  1463. Mask.CanCollide = false
  1464. Mask.BrickColor = BrickColor.new("Medium stone grey")
  1465. Mask.Transparency = 0
  1466. Mask.Material = "Neon"
  1467. Mask.Size = Vector3.new(0.1, 0.1, 0.1)
  1468. Mask.TopSurface = Enum.SurfaceType.Smooth
  1469. Mask.BottomSurface = Enum.SurfaceType.Smooth
  1470.  
  1471. local Weld = Instance.new("Weld", Mask)
  1472. Weld.Part0 = Character.Head
  1473. Weld.Part1 = Mask
  1474. Weld.C1 = CFrame.new(0, -0.1, 0.8)
  1475.  
  1476. local M1 = Instance.new("SpecialMesh")
  1477. M1.Parent = Mask
  1478. M1.MeshId = "http://www.roblox.com/asset/?id=62679079"
  1479. M1.Scale = Vector3.new( 1, 1, 2)
  1480. ----------------------------------------------------------
  1481. local Hood = Instance.new("Part", Character)
  1482. Hood.Name = "Hood"
  1483. Hood.CanCollide = false
  1484. Hood.BrickColor = BrickColor.new("Really black")
  1485. Hood.Transparency = 0
  1486. Hood.Material = "Plastic"
  1487. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  1488. Hood.TopSurface = Enum.SurfaceType.Smooth
  1489. Hood.BottomSurface = Enum.SurfaceType.Smooth
  1490.  
  1491. local Weld = Instance.new("Weld", Hood)
  1492. Weld.Part0 = Character.Head
  1493. Weld.Part1 = Hood
  1494. Weld.C1 = CFrame.new(0, -0.2, 0)
  1495.  
  1496. local M2 = Instance.new("SpecialMesh")
  1497. M2.Parent = Hood
  1498. M2.MeshId = "http://www.roblox.com/asset/?id=83499032"
  1499. M2.Scale = Vector3.new( 1, 1.2, 1.1)
  1500. ------------------------------------------------------
  1501. --[[
  1502. Thanks for using Build-To-Lua by jarredbcv.
  1503. ]]--
  1504.  
  1505. New = function(Object, Parent, Name, Data)
  1506. local Object = Instance.new(Object)
  1507. for Index, Value in pairs(Data or {}) do
  1508. Object[Index] = Value
  1509. end
  1510. Object.Parent = Parent
  1511. Object.Name = Name
  1512. return Object
  1513. end
  1514.  
  1515. for i = 1, 35 do
  1516. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  1517. FACE.Color = C3(0,0,0)
  1518. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  1519. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  1520. end
  1521.  
  1522. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
  1523. MakeForm(Eye,"Ball")
  1524. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  1525. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.6,0.1,1)/2,false)
  1526. MakeForm(Eye,"Ball")
  1527. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  1528. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.1,1,1)/2,false)
  1529. MakeForm(Eye,"Ball")
  1530. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  1531. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.1,1,1)/2,false)
  1532. MakeForm(Eye,"Ball")
  1533. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  1534.  
  1535. local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(1.01,0.3,1.01),false)
  1536. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1537. for i = 1, 3 do
  1538. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.2,1.02,0.2),false)
  1539. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
  1540. MakeForm(Part,"Cyl")
  1541. end
  1542. for i = 1, 3 do
  1543. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.2,1.02,0.2),false)
  1544. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0))
  1545. MakeForm(Part,"Cyl")
  1546. end
  1547. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.51,0.6,0.25),false)
  1548. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  1549. MakeForm(Part,"Wedge")
  1550. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.51,0.6,0.25),false)
  1551. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  1552. MakeForm(Part,"Wedge")
  1553. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  1554. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
  1555. MakeForm(Part,"Wedge")
  1556. local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
  1557. CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
  1558. MakeForm(Part,"Wedge")
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566. for _, c in pairs(Weapon:GetChildren()) do
  1567. if c.ClassName == "Part" then
  1568. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1569. local AURA = c:Clone()
  1570. AURA:BreakJoints()
  1571. AURA.Parent = c
  1572. AURA.CFrame = c.CFrame
  1573. AURA.Size = AURA.Size*1.001
  1574. AURA.Transparency = 0.8
  1575. AURA.BrickColor = BRICKC"Royal purple"
  1576. AURA.Material = "Neon"
  1577. weldBetween(c,AURA)
  1578. end
  1579. end
  1580. function refit()
  1581. Character.Parent = workspace
  1582. for e = 1, #BODY do
  1583. if BODY[e] ~= nil then
  1584. local STUFF = BODY[e]
  1585. local PART = STUFF[1]
  1586. local PARENT = STUFF[2]
  1587. local MATERIAL = STUFF[3]
  1588. local COLOR = STUFF[4]
  1589. local TRANSPARENCY = STUFF[5]
  1590. if PART.ClassName == "Part" and PART ~= RootPart then
  1591. PART.Material = MATERIAL
  1592. PART.Color = COLOR
  1593. PART.Transparency = TRANSPARENCY
  1594. end
  1595. if PART.Parent ~= PARENT then
  1596. Humanoid:remove()
  1597. PART.Parent = PARENT
  1598. Humanoid = IT("Humanoid",Character)
  1599. end
  1600. end
  1601. end
  1602. end
  1603.  
  1604. local SKILLTEXTCOLOR = BRICKC"Black".Color
  1605. local SKILLFONT = "Bodoni"
  1606. local SKILLTEXTSIZE = 7
  1607.  
  1608. Weapon.Parent = Character
  1609.  
  1610. Humanoid.Died:connect(function()
  1611.  
  1612. ATTACK = true
  1613. end)
  1614.  
  1615. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1616. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1617. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 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")
  1618. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 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")
  1619. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  1620. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1621.  
  1622.  
  1623. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] BEAM OF CORRUPTION", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 1")
  1624. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] EXPLOSION", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 2")
  1625. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] STUN", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 3")
  1626. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] SCREAM", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 4")
  1627. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[R] WARP", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 5")
  1628. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] PAIN", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 6")
  1629.  
  1630. --//=================================\\
  1631. --|| RAGDOLL STUFF
  1632. --\\=================================//
  1633.  
  1634. function recurse(root,callback,i)
  1635. i= i or 0
  1636. for _,v in pairs(root:GetChildren()) do
  1637. i = i + 1
  1638. callback(i,v)
  1639.  
  1640. if #v:GetChildren() > 0 then
  1641. i = recurse(v,callback,i)
  1642. end
  1643. end
  1644.  
  1645. return i
  1646. end
  1647.  
  1648. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  1649. attachmentName = attachmentName.."RigAttachment"
  1650. local constraint = Instance.new(className.."Constraint")
  1651. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1652. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1653. constraint.Name = "RagdollConstraint"..part1.Name
  1654.  
  1655. for _,propertyData in next,properties or {} do
  1656. constraint[propertyData[1]] = propertyData[2]
  1657. end
  1658.  
  1659. constraint.Parent = character
  1660. end
  1661.  
  1662. function getAttachment0(character, attachmentName)
  1663. for _,child in next,character:GetChildren() do
  1664. local attachment = child:FindFirstChild(attachmentName)
  1665. if attachment then
  1666. return attachment
  1667. end
  1668. end
  1669. end
  1670.  
  1671. function ArtificialHitbox(Part)
  1672. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  1673. HITBOX.CanCollide = true
  1674. HITBOX.CFrame = Part.CFrame
  1675. weldBetween(Part,HITBOX)
  1676. end
  1677.  
  1678. function R15Ragdoll(character,KeepArms)
  1679. character:BreakJoints()
  1680. coroutine.resume(coroutine.create(function()
  1681. recurse(character, function(_,v)
  1682. if v:IsA("Attachment") then
  1683. v.Axis = Vector3.new(0, 1, 0)
  1684. v.SecondaryAxis = Vector3.new(0, 0, 1)
  1685. v.Rotation = Vector3.new(0, 0, 0)
  1686. end
  1687. end)
  1688. for _,child in next,character:GetChildren() do
  1689. if child:IsA("Accoutrement") then
  1690. for _,part in next,child:GetChildren() do
  1691. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  1692. local attachment1 = part:FindFirstChildOfClass("Attachment")
  1693. local attachment0 = getAttachment0(character,attachment1.Name)
  1694. if attachment0 and attachment1 then
  1695. local constraint = Instance.new("HingeConstraint")
  1696. constraint.Attachment0 = attachment0
  1697. constraint.Attachment1 = attachment1
  1698. constraint.LimitsEnabled = true
  1699. constraint.UpperAngle = 0
  1700. constraint.LowerAngle = 0
  1701. constraint.Parent = character
  1702. end
  1703. ArtificialHitbox(part)
  1704. elseif part.Name == "HumanoidRootPart" then
  1705. part:remove()
  1706. end
  1707. end
  1708. end
  1709. end
  1710.  
  1711. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  1712. {"LimitsEnabled",true};
  1713. {"UpperAngle",5};
  1714. })
  1715. if character:FindFirstChild("Head") then
  1716. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  1717. {"LimitsEnabled",true};
  1718. {"UpperAngle",15};
  1719. })
  1720. end
  1721.  
  1722. local handProperties = {
  1723. {"LimitsEnabled", true};
  1724. {"UpperAngle",0};
  1725. {"LowerAngle",0};
  1726. }
  1727. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  1728. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  1729.  
  1730. local shinProperties = {
  1731. {"LimitsEnabled", true};
  1732. {"UpperAngle", 0};
  1733. {"LowerAngle", -75};
  1734. }
  1735. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  1736. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  1737.  
  1738. local footProperties = {
  1739. {"LimitsEnabled", true};
  1740. {"UpperAngle", 15};
  1741. {"LowerAngle", -45};
  1742. }
  1743. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  1744. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  1745. if KeepArms == true then
  1746. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  1747. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  1748. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  1749. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  1750. end
  1751. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  1752. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  1753. Debris:AddItem(character,5)
  1754. end))
  1755. end
  1756.  
  1757. function Ragdoll(Character2,CharTorso,KeepArms)
  1758. coroutine.resume(coroutine.create(function()
  1759. Character2:BreakJoints()
  1760. local hum = Character2:findFirstChild("Humanoid")
  1761. hum:remove()
  1762. local function Scan(ch)
  1763. local e
  1764. for e = 1,#ch do
  1765. Scan(ch[e]:GetChildren())
  1766. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1767. ch[e]:remove()
  1768. end
  1769. end
  1770. end
  1771. local NEWHUM = IT("Humanoid")
  1772. NEWHUM.Name = "Corpse"
  1773. NEWHUM.Health = 0
  1774. NEWHUM.MaxHealth = 0
  1775. NEWHUM.PlatformStand = true
  1776. NEWHUM.Parent = Character2
  1777. NEWHUM.DisplayDistanceType = "None"
  1778.  
  1779. local ch = Character2:GetChildren()
  1780. local i
  1781. for i = 1,#ch do
  1782. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1783. ch[i]:remove()
  1784. end
  1785. end
  1786.  
  1787. local Torso2 = Character2.Torso
  1788. local movevector = Vector3.new()
  1789.  
  1790. if Torso2 then
  1791. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1792. local Head = Character2:FindFirstChild("Head")
  1793. if Head then
  1794. local Neck = Instance.new("Weld")
  1795. Neck.Name = "Neck"
  1796. Neck.Part0 = Torso2
  1797. Neck.Part1 = Head
  1798. Neck.C0 = CFrame.new(0, 1.5, 0)
  1799. Neck.C1 = CFrame.new()
  1800. Neck.Parent = Torso2
  1801.  
  1802. end
  1803. local Limb = Character2:FindFirstChild("Right Arm")
  1804. if Limb and KeepArms == true then
  1805.  
  1806. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1807. local Joint = Instance.new("Glue")
  1808. Joint.Name = "RightShoulder"
  1809. Joint.Part0 = Torso2
  1810. Joint.Part1 = Limb
  1811. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1812. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1813. Joint.Parent = Torso2
  1814.  
  1815. local B = Instance.new("Part")
  1816. B.TopSurface = 0
  1817. B.BottomSurface = 0
  1818. B.formFactor = "Symmetric"
  1819. B.Size = Vector3.new(1, 1, 1)
  1820. B.Transparency = 1
  1821. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1822. B.Parent = Character2
  1823. local W = Instance.new("Weld")
  1824. W.Part0 = Limb
  1825. W.Part1 = B
  1826. W.C0 = CFrame.new(0, -0.5, 0)
  1827. W.Parent = Limb
  1828.  
  1829. end
  1830. local Limb = Character2:FindFirstChild("Left Arm")
  1831. if Limb and KeepArms == true then
  1832.  
  1833. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1834. local Joint = Instance.new("Glue")
  1835. Joint.Name = "LeftShoulder"
  1836. Joint.Part0 = Torso2
  1837. Joint.Part1 = Limb
  1838. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1839. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1840. Joint.Parent = Torso2
  1841.  
  1842. local B = Instance.new("Part")
  1843. B.TopSurface = 0
  1844. B.BottomSurface = 0
  1845. B.formFactor = "Symmetric"
  1846. B.Size = Vector3.new(1, 1, 1)
  1847. B.Transparency = 1
  1848. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1849. B.Parent = Character2
  1850. local W = Instance.new("Weld")
  1851. W.Part0 = Limb
  1852. W.Part1 = B
  1853. W.C0 = CFrame.new(0, -0.5, 0)
  1854. W.Parent = Limb
  1855.  
  1856. end
  1857. local Limb = Character2:FindFirstChild("Right Leg")
  1858. if Limb then
  1859.  
  1860. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1861. local Joint = Instance.new("Glue")
  1862. Joint.Name = "RightHip"
  1863. Joint.Part0 = Torso2
  1864. Joint.Part1 = Limb
  1865. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1866. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1867. Joint.Parent = Torso2
  1868.  
  1869. local B = Instance.new("Part")
  1870. B.TopSurface = 0
  1871. B.BottomSurface = 0
  1872. B.formFactor = "Symmetric"
  1873. B.Size = Vector3.new(1, 1, 1)
  1874. B.Transparency = 1
  1875. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1876. B.Parent = Character2
  1877. local W = Instance.new("Weld")
  1878. W.Part0 = Limb
  1879. W.Part1 = B
  1880. W.C0 = CFrame.new(0, -0.5, 0)
  1881. W.Parent = Limb
  1882.  
  1883. end
  1884. local Limb = Character2:FindFirstChild("Left Leg")
  1885. if Limb then
  1886.  
  1887. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1888. local Joint = Instance.new("Glue")
  1889. Joint.Name = "LeftHip"
  1890. Joint.Part0 = Torso2
  1891. Joint.Part1 = Limb
  1892. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1893. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1894. Joint.Parent = Torso2
  1895.  
  1896. local B = Instance.new("Part")
  1897. B.TopSurface = 0
  1898. B.BottomSurface = 0
  1899. B.formFactor = "Symmetric"
  1900. B.Size = Vector3.new(1, 1, 1)
  1901. B.Transparency = 1
  1902. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1903. B.Parent = Character2
  1904. local W = Instance.new("Weld")
  1905. W.Part0 = Limb
  1906. W.Part1 = B
  1907. W.C0 = CFrame.new(0, -0.5, 0)
  1908. W.Parent = Limb
  1909.  
  1910. end
  1911. --[
  1912. local Bar = Instance.new("Part")
  1913. Bar.TopSurface = 0
  1914. Bar.BottomSurface = 0
  1915. Bar.formFactor = "Symmetric"
  1916. Bar.Size = Vector3.new(1, 1, 1)
  1917. Bar.Transparency = 1
  1918. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1919. Bar.Parent = Character2
  1920. local Weld = Instance.new("Weld")
  1921. Weld.Part0 = Torso2
  1922. Weld.Part1 = Bar
  1923. Weld.C0 = CFrame.new(0, 0.5, 0)
  1924. Weld.Parent = Torso2
  1925. --]]
  1926. end
  1927. Character2.Parent = workspace
  1928. Debris:AddItem(Character2,5)
  1929.  
  1930. return Character2,Torso2
  1931. end))
  1932. end
  1933.  
  1934. --//=================================\\
  1935. --|| DAMAGE FUNCTIONS
  1936. --\\=================================//
  1937. function StatLabel(CFRAME, TEXT, COLOR)
  1938. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1939. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1940. local BODYGYRO = IT("BodyGyro", STATPART)
  1941. game:GetService("Debris"):AddItem(STATPART ,5)
  1942. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1943. BILLBOARDGUI.Adornee = STATPART
  1944. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1945. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1946. BILLBOARDGUI.AlwaysOnTop = false
  1947. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1948. TEXTLABEL.BackgroundTransparency = 1
  1949. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1950. TEXTLABEL.Text = TEXT
  1951. TEXTLABEL.Font = SKILLFONT
  1952. TEXTLABEL.FontSize="Size42"
  1953. TEXTLABEL.TextColor3 = COLOR
  1954. TEXTLABEL.TextStrokeTransparency = 0
  1955. TEXTLABEL.TextScaled = true
  1956. TEXTLABEL.TextWrapped = true
  1957. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1958. for i = 1, 50 do
  1959. Swait()
  1960. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1961. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1962. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1963. end
  1964. THEPART.Parent = nil
  1965. end),STATPART, TEXTLABEL)
  1966. end
  1967.  
  1968. function StatLabel(CFRAME, TEXT, COLOR)
  1969. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  1970. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  1971. local BODYGYRO = IT("BodyGyro", STATPART)
  1972. game:GetService("Debris"):AddItem(STATPART ,5)
  1973. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  1974. BILLBOARDGUI.Adornee = STATPART
  1975. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  1976. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  1977. BILLBOARDGUI.AlwaysOnTop = false
  1978. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  1979. TEXTLABEL.BackgroundTransparency = 1
  1980. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  1981. TEXTLABEL.Text = TEXT
  1982. TEXTLABEL.Font = "Fantasy"
  1983. TEXTLABEL.FontSize="Size42"
  1984. TEXTLABEL.TextColor3 = COLOR
  1985. TEXTLABEL.TextStrokeTransparency = 0
  1986. TEXTLABEL.TextScaled = true
  1987. TEXTLABEL.TextWrapped = true
  1988. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  1989. for i = 1, 50 do
  1990. Swait()
  1991. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  1992. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  1993. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  1994. end
  1995. THEPART.Parent = nil
  1996. end),STATPART, TEXTLABEL)
  1997. end
  1998.  
  1999. function StatLabel(CFRAME, TEXT, COLOR)
  2000. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  2001. STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
  2002. local BODYGYRO = IT("BodyGyro", STATPART)
  2003. game:GetService("Debris"):AddItem(STATPART ,5)
  2004. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  2005. BILLBOARDGUI.Adornee = STATPART
  2006. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  2007. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  2008. BILLBOARDGUI.AlwaysOnTop = false
  2009. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  2010. TEXTLABEL.BackgroundTransparency = 1
  2011. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  2012. TEXTLABEL.Text = TEXT
  2013. TEXTLABEL.Font = SKILLFONT
  2014. TEXTLABEL.FontSize="Size42"
  2015. TEXTLABEL.TextColor3 = COLOR
  2016. TEXTLABEL.TextStrokeTransparency = 0
  2017. TEXTLABEL.TextScaled = true
  2018. TEXTLABEL.TextWrapped = true
  2019. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  2020. for i = 1, 50 do
  2021. Swait()
  2022. STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
  2023. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
  2024. TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
  2025. end
  2026. THEPART.Parent = nil
  2027. end),STATPART, TEXTLABEL)
  2028. end
  2029.  
  2030. --//=================================\\
  2031. --|| DAMAGING
  2032. --\\=================================//
  2033. function ApplyDamage(Humanoid,Damage,TorsoPart)
  2034. local defence = Instance.new("BoolValue",Humanoid.Parent)
  2035. defence.Name = ("HitBy"..Player.Name)
  2036. game:GetService("Debris"):AddItem(defence, 0.001)
  2037. Damage = Damage * DAMAGEMULTIPLIER
  2038. if Humanoid.Health ~= 0 then
  2039. local CritChance = MRANDOM(1,100)
  2040. if Damage > Humanoid.Health then
  2041. Damage = math.ceil(Humanoid.Health)
  2042. if Damage == 0 then
  2043. Damage = 0.1
  2044. end
  2045. end
  2046. Humanoid.Health = Humanoid.Health - Damage
  2047. end
  2048. end
  2049.  
  2050. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  2051. local CHILDREN = workspace:GetDescendants()
  2052. for index, CHILD in pairs(CHILDREN) do
  2053. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  2054. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2055. if HUM then
  2056. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2057. if TORSO then
  2058. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2059. if INSTAKILL == false then
  2060. CHILD:BreakJoints()
  2061. else
  2062. local DMG = MRANDOM(MINDMG,MAXDMG)
  2063. ApplyDamage(HUM,DMG,TORSO)
  2064. end
  2065. if FLING > 0 then
  2066. for _, c in pairs(CHILD:GetChildren()) do
  2067. if c:IsA("BasePart") then
  2068. local bv = Instance.new("BodyVelocity")
  2069. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2070. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  2071. bv.Parent = c
  2072. Debris:AddItem(bv,0.05)
  2073. end
  2074. end
  2075. end
  2076. end
  2077. end
  2078. end
  2079. end
  2080. end
  2081. end
  2082.  
  2083. function KillChildren(v)
  2084. v:BreakJoints()
  2085. for _, c in pairs(v:GetChildren()) do
  2086. if c:IsA("BasePart") then
  2087. if c.Transparency < 1 then
  2088. if c:FindFirstChildOfClass("Decal") then
  2089. c:FindFirstChildOfClass("Decal"):remove()
  2090. end
  2091. particles(c)
  2092. c.PE.Enabled = true
  2093. c.Parent = Effects
  2094. c.CanCollide = false
  2095. c.Material = "Neon"
  2096. c.Color = C3(0,0,0)
  2097. c.Transparency = 1
  2098. local grav = Instance.new("BodyPosition",c)
  2099. grav.P = 20000
  2100. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2101. grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
  2102. grav.Name = "GravityForce"
  2103. coroutine.resume(coroutine.create(function()
  2104. for i = 1, 20 do
  2105. Swait()
  2106. c.Transparency = c.Transparency + 1/20
  2107. end
  2108. c.PE.Enabled = false
  2109. Debris:AddItem(c,2)
  2110. end))
  2111. end
  2112. end
  2113. end
  2114. end
  2115.  
  2116. function ApplyAoE(POSITION,RANGE)
  2117. local CHILDREN = workspace:GetDescendants()
  2118. for index, CHILD in pairs(CHILDREN) do
  2119. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2120. local LISTED = false
  2121. for LIST = 1, #WHITELIST do
  2122. if WHITELIST[LIST] ~= nil then
  2123. if CHILD.Name == WHITELIST[LIST] then
  2124. LISTED = true
  2125. end
  2126. end
  2127. end
  2128. if LISTED == false then
  2129. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2130. if HUM then
  2131. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2132. if TORSO then
  2133. if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
  2134. KillChildren(CHILD)
  2135. end
  2136. end
  2137. end
  2138. end
  2139. end
  2140. end
  2141. end
  2142.  
  2143. function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
  2144. local defence = Instance.new("BoolValue",Humanoid.Parent)
  2145. defence.Name = ("HitBy"..Player.Name)
  2146. game:GetService("Debris"):AddItem(defence, 0.001)
  2147. if Humanoid.Health ~= 0 then
  2148. local CritChance = MRANDOM(1,100)
  2149. if CritChance < CritRate + 1 then
  2150. Damage = Damage*CritMultiplier
  2151. end
  2152. if Damage > Humanoid.Health then
  2153. Damage = math.ceil(Humanoid.Health)
  2154. if Damage == 0 then
  2155. Damage = 0.1
  2156. end
  2157. end
  2158. Humanoid.Health = Humanoid.Health - Damage
  2159. if Humanoid.Parent:FindFirstChild("Head") then
  2160. CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1)
  2161. if CritChance < CritRate + 1 then
  2162. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
  2163. else
  2164. StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, SKILLTEXTCOLOR)
  2165. end
  2166. end
  2167. end
  2168. end
  2169.  
  2170. function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
  2171. local dmg = math.random(min,max)
  2172. for i,v in ipairs(workspace:GetChildren()) do
  2173. if v:FindFirstChild("HitBy"..Player.Name) == nil then
  2174. local body = v:GetChildren()
  2175. for part = 1, #body do
  2176. if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  2177. if(body[part].Position - position).Magnitude < radius then
  2178. if v.ClassName == "Model" then
  2179. if v:FindFirstChildOfClass("Humanoid") then
  2180. if CanBeDodgedByJumping == true then
  2181. if body[part].Position.Y < position.Y+5 then
  2182. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  2183. end
  2184. else
  2185. ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
  2186. end
  2187. local bv = Instance.new("BodyVelocity")
  2188. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2189. bv.velocity = RootPart.CFrame.lookVector*maxstrength
  2190. bv.Parent = body[part]
  2191. Debris:AddItem(bv,0.2)
  2192. end
  2193. end
  2194. end
  2195. end
  2196. end
  2197. end
  2198. if v:FindFirstChild("HitBy"..Player.Name) then
  2199. v:FindFirstChild("HitBy"..Player.Name):remove()
  2200. end
  2201. end
  2202. end
  2203.  
  2204. function Kill(Char)
  2205. local NewCharacter = IT("Model",Effects)
  2206. NewCharacter.Name = "Ow im ded ;-;"
  2207. for _, c in pairs(Char:GetDescendants()) do
  2208. if c:IsA("BasePart") and c.Transparency == 0 then
  2209. if c.Parent == Char then
  2210. getbloody(c,5)
  2211. end
  2212. c:BreakJoints()
  2213. c.Material = "Glass"
  2214. c.Color = C3(0.5,0,0)
  2215. c.CanCollide = true
  2216. c.Transparency = 0.3
  2217. if c:FindFirstChildOfClass("SpecialMesh") then
  2218. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  2219. end
  2220. if c.Name == "Head" then
  2221. c:ClearAllChildren()
  2222. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  2223. end
  2224. if c.ClassName == "MeshPart" then
  2225. c.TextureID = ""
  2226. end
  2227. if c:FindFirstChildOfClass("BodyPosition") then
  2228. c:FindFirstChildOfClass("BodyPosition"):remove()
  2229. end
  2230. if c:FindFirstChildOfClass("ParticleEmitter") then
  2231. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2232. end
  2233. c.Parent = NewCharacter
  2234. c.Name = "DeadPart"
  2235. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  2236. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  2237. end
  2238. end
  2239. Char:remove()
  2240. Debris:AddItem(NewCharacter,5)
  2241. end
  2242.  
  2243. function ApplyAoE(POSITION,RANGE,BRUTAL)
  2244. local CHILDREN = workspace:GetDescendants()
  2245. for index, CHILD in pairs(CHILDREN) do
  2246. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2247. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2248. if HUM then
  2249. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2250. if TORSO then
  2251. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2252. if BRUTAL == true then
  2253. Kill(CHILD)
  2254. else
  2255. CHILD:BreakJoints()
  2256. end
  2257. end
  2258. end
  2259. end
  2260. end
  2261. end
  2262. end
  2263.  
  2264. --//=================================\\
  2265. --|| ATTACK FUNCTIONS AND STUFF
  2266. --\\=================================//
  2267. function Click()
  2268. ATTACK = true
  2269. Rooted = false
  2270. local HIT = nil
  2271. OFFSET = -45
  2272. for i=0, 1, 0.1 / Animation_Speed do
  2273. Swait()
  2274. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(45)), 0.15 / Animation_Speed)
  2275. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2276. end
  2277. OFFSET = 45
  2278. local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false)
  2279. PUNCH.CanCollide = true
  2280. CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0))
  2281. TAUNT = true
  2282. local TOUCH = PUNCH.Touched:Connect(function(hit)
  2283. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  2284. HIT = hit.Parent
  2285. end
  2286. end)
  2287. for i=0, 0.3, 0.1 / Animation_Speed do
  2288. Swait()
  2289. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3)
  2290. if HIT ~= nil then
  2291. break
  2292. end
  2293. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
  2294. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2295. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2296. end
  2297. PUNCH:remove()
  2298. TOUCH:disconnect()
  2299. if HIT ~= nil then
  2300. for _, c in pairs(HIT:GetChildren()) do
  2301. if c:IsA("BasePart") then
  2302. c.Anchored = true
  2303. end
  2304. end
  2305. Rooted = true
  2306. CreateSound(649634100, Torso, 10, 0.8)
  2307. CreateSound(1368573150, RightArm, 3, 1.5)
  2308. for i=0, 0.6, 0.1 / Animation_Speed do
  2309. Swait()
  2310. WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2311. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(25), RAD(-45)), 0.05 / Animation_Speed)
  2312. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2313. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2314. end
  2315. for _, c in pairs(HIT:GetChildren()) do
  2316. if c:IsA("BasePart") then
  2317. c.Anchored = false
  2318. end
  2319. end
  2320. KillChildren(HIT)
  2321. end
  2322. OFFSET = 0
  2323. ATTACK = false
  2324. Rooted = false
  2325. TAUNT = false
  2326. end
  2327.  
  2328. function Teleport()
  2329. ATTACK = true
  2330. Rooted = false
  2331. for i=0, 0.5, 0.1 / Animation_Speed do
  2332. Swait()
  2333. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2334. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
  2335. end
  2336. for e = 1, #BODY do
  2337. if BODY[e] ~= nil then
  2338. local STUFF = BODY[e]
  2339. local PART = STUFF[1]
  2340. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  2341. local PRT = PART:Clone()
  2342. PRT.Anchored = true
  2343. PRT.CanCollide = false
  2344. PRT.Material = "Neon"
  2345. PRT.Color = C3(0,0,0)
  2346. PRT.Name = "WarpEffect"
  2347. PRT.Parent = Effects
  2348. PRT.CFrame = PART.CFrame
  2349. PRT:BreakJoints()
  2350. if PRT:FindFirstChildOfClass("Sound") then
  2351. PRT:FindFirstChildOfClass("Sound"):remove()
  2352. end
  2353. if PRT:FindFirstChildOfClass("Decal") then
  2354. PRT:FindFirstChildOfClass("Decal"):remove()
  2355. end
  2356. coroutine.resume(coroutine.create(function()
  2357. for i = 1, 100 do
  2358. Swait()
  2359. PRT.Transparency = PRT.Transparency + 1/100
  2360. end
  2361. PRT:remove()
  2362. end))
  2363. end
  2364. end
  2365. end
  2366. CreateSound(217767125, Torso, 10, 1)
  2367. local POS = RootPart.Orientation
  2368. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  2369. RootPart.Orientation = POS
  2370. RootJoint.Parent = RootPart
  2371. for i=0, 0.5, 0.1 / Animation_Speed do
  2372. Swait()
  2373. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2374. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
  2375. end
  2376. for i=0, 0.1, 0.1 / Animation_Speed do
  2377. Swait()
  2378. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
  2379. end
  2380. ATTACK = false
  2381. Rooted = false
  2382. end
  2383.  
  2384. function SpawnSmite(POS)
  2385. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  2386. local EMITPOS = HITPOS
  2387. if HITFLOOR ~= nil then
  2388. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  2389. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  2390. EMITPOS = HITPOS
  2391. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2392. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  2393. EMITPOS = HITPOS
  2394. end
  2395. end
  2396. if HITFLOOR ~= nil then
  2397. ApplyAoE(EMITPOS,10)
  2398. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  2399. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2400. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  2401. for i = 1, 5 do
  2402. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  2403. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  2404. end
  2405. end
  2406. end
  2407.  
  2408. function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
  2409. coroutine.resume(coroutine.create(function()
  2410. local METEOR = IT("Model",Effects)
  2411. METEOR.Name = "Meteorite"
  2412. local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  2413. METEOR.PrimaryPart = CENTER
  2414. local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
  2415. PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2416. for i = 1, 15 do
  2417. local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really black", "Fire", VT(5.1,1,5.1)*SIZE)
  2418. FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  2419. end
  2420. if ISDEBREE ~= true then
  2421. METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2422. else
  2423. METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2424. end
  2425. local IMPACT = false
  2426. CreateSound(463593339, CENTER, 10, 0.6)
  2427. if SIZE >= 3.5 then
  2428. for i = 1, MRANDOM(3,7) do
  2429. SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
  2430. end
  2431. end
  2432. for i = 1, 200 do
  2433. Swait()
  2434. local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
  2435. if HITFLOOR == nil then
  2436. local ORI = CENTER.Orientation
  2437. METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
  2438. else
  2439. if HITFLOOR.Anchored == true then
  2440. CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
  2441. CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
  2442. end
  2443. IMPACT = true
  2444. break
  2445. end
  2446. end
  2447. if IMPACT == true then
  2448. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  2449. WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
  2450. WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
  2451. ApplyAoE(CENTER.Position,30*SIZE)
  2452. end
  2453. METEOR:remove()
  2454. end))
  2455. end
  2456. function Equivalent_Pain()
  2457. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2458. if HITFLOOR then
  2459. ATTACK = true
  2460. Rooted = true
  2461. FULL = true
  2462. local GYRO = IT("BodyGyro",RootPart)
  2463. GYRO.D = 25
  2464. GYRO.P = 20000
  2465. GYRO.MaxTorque = VT(0,math.huge,0)
  2466. for i=0, 0.3, 0.1 / Animation_Speed do
  2467. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2468. Swait()
  2469. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 1 / Animation_Speed)
  2470. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2471. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2472. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2473. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-35)), 1 / Animation_Speed)
  2474. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(5)), 1 / Animation_Speed)
  2475. end
  2476. GYRO:remove()
  2477. CreateSound(12222200, RightArm, 10, 1)
  2478. for i=0, 0.4, 0.1 / Animation_Speed do
  2479. Swait()
  2480. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  2481. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2482. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2483. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2484. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
  2485. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
  2486. end
  2487. CreateSound(289842971, RightArm, 10, 1)
  2488. coroutine.resume(coroutine.create(function()
  2489. local HIT,POS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(Mouse.Hit.p+VT(0,1,0), Mouse.Hit.p-VT(0,1,0))).lookVector, 45, Character)
  2490. local ECHO = POS
  2491. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  2492. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  2493. ECHO = POS
  2494. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  2495. HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  2496. ECHO = POS
  2497. end
  2498. if ECHO.Y == HITPOS.Y then
  2499. local DISTANCE = (HITPOS - ECHO).Magnitude/3
  2500. local CFRAME = CF(HITPOS,ECHO)
  2501. local RANGE = math.ceil(DISTANCE)
  2502. for i = 1, RANGE-1 do
  2503. Swait(3)
  2504. local A = CFRAME*CF(0,0,-i*3)
  2505. ApplyAoE(A.p,4)
  2506. CreateFlyingDebree(HITFLOOR,A,2,VT(2,2,2),2,65)
  2507. end
  2508. local SIZE = 3
  2509. local POS = CFRAME*CF(0,0,-RANGE*3).p
  2510. WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(55,0,55)*SIZE, Size2 = VT(55,15,55)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 0.8, SoundVolume = 10})
  2511. WACKYEFFECT({EffectType = "Sphere", Size = VT(10,250,10)*SIZE, Size2 = VT(20,1000,20)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  2512. WACKYEFFECT({EffectType = "Sphere", Size = VT(30,150,30)*SIZE, Size2 = VT(50,300,50)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
  2513. for i = 1, 9 do
  2514. WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  2515. end
  2516. for i = 1, 9 do
  2517. WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
  2518. end
  2519. ApplyAoE(POS,30*SIZE)
  2520. CreateDebreeRing(HITFLOOR,POS,30*SIZE,VT(8,8,8)*SIZE,5)
  2521. CreateDebreeRing(HITFLOOR,POS,50*SIZE,VT(2,2,2)*SIZE,5)
  2522. end
  2523. end))
  2524. for i=0, 0.6, 0.1 / Animation_Speed do
  2525. Swait()
  2526. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
  2527. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2528. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2529. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2530. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
  2531. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
  2532. end
  2533. FULL = false
  2534. ATTACK = false
  2535. Rooted = false
  2536. end
  2537. end
  2538.  
  2539. function ReeeEEEEEE()
  2540. ATTACK = true
  2541. Rooted = false
  2542. Speed = 12
  2543. local FX = CreateSound(198165368, Head, 4, 0.5, false)
  2544. repeat
  2545. Swait()
  2546. FX.Parent = Head
  2547. local CHILDREN = workspace:GetDescendants()
  2548. for index, CHILD in pairs(CHILDREN) do
  2549. if CHILD.ClassName == "Model" and CHILD ~= Character then
  2550. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2551. if HUM then
  2552. local TORSO = CHILD:FindFirstChild("Head")
  2553. if TORSO then
  2554. if (TORSO.Position - Head.Position).Magnitude <= 25 then
  2555. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2556. TORSO:remove()
  2557. if CHILD:FindFirstChild("Torso") then
  2558. Ragdoll(CHILD,Torso,true)
  2559. elseif CHILD:FindFirstChild("UpperTorso") then
  2560. R15Ragdoll(CHILD,true)
  2561. end
  2562. end
  2563. end
  2564. end
  2565. end
  2566. end
  2567. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
  2568. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
  2569. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2570. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2571. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-45), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2572. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-45), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2573. until FX.Playing == false
  2574. Speed = 16
  2575. ATTACK = false
  2576. Rooted = false
  2577. end
  2578.  
  2579. function Charge(TIME,GYRO)
  2580. local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
  2581. local G = nil
  2582. if GYRO == true then
  2583. G = IT("BodyGyro",RootPart)
  2584. G.D = 250
  2585. G.P = 200000
  2586. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  2587. end
  2588. for i=0, TIME, 0.1 / Animation_Speed do
  2589. Swait()
  2590. if G then
  2591. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  2592. end
  2593. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2594. 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)
  2595. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2596. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2597. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2598. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2599. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2600. end
  2601. SND:remove()
  2602. if G then
  2603. return G
  2604. end
  2605. end
  2606.  
  2607. function Corrupted_Beam()
  2608. ATTACK = true
  2609. Rooted = false
  2610. local GRAV = IT("BodyPosition",RootPart)
  2611. GRAV.D = 75
  2612. GRAV.P = 20000
  2613. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  2614. GRAV.Position = RootPart.Position
  2615. local GYRO = Charge(2,true)
  2616. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Beam", VT(15,15,0))
  2617. MakeForm(BEAM,"Ball")
  2618. CreateSound(BEAMSOUND,BEAM,10,1,false)
  2619. CreateSound(BEAMSOUND,BEAM,10,0.9,false)
  2620. CreateSound(BEAMSOUND,BEAM,10,0.8,false)
  2621. for i = 1, 150 do
  2622. Swait()
  2623. BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2)
  2624. ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,50,200,0,false)
  2625. WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2626. BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2))
  2627. 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)
  2628. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2629. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2630. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2631. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2632. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2633. end
  2634. GRAV:remove()
  2635. BEAM:remove()
  2636. GYRO:remove()
  2637. ATTACK = false
  2638. Rooted = false
  2639. end
  2640.  
  2641. function Corrupted_Explosion()
  2642. ATTACK = true
  2643. Rooted = true
  2644. for i=0, 1, 0.1 / Animation_Speed do
  2645. Swait()
  2646. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
  2647. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
  2648. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
  2649. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
  2650. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2651. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2652. end
  2653. for i=0, 0.4, 0.1 / Animation_Speed do
  2654. Swait()
  2655. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2656. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2657. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2658. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2659. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2660. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2661. end
  2662. local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Beam", VT(0,0,0))
  2663. local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Beam", VT(0,0,0))
  2664. MakeForm(BEAM,"Ball")
  2665. MakeForm(BEAM2,"Ball")
  2666. BEAM.CFrame = CF(RootPart.Position)
  2667. BEAM2.CFrame = CF(RootPart.Position)
  2668. CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  2669. for i=1, 100 do
  2670. Swait()
  2671. BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
  2672. BEAM2.Size = BEAM2.Size + VT(2,2,2)
  2673. ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,5,5,15,true)
  2674. BEAM.CFrame = CF(RootPart.Position)
  2675. BEAM2.CFrame = CF(RootPart.Position)
  2676. WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2677. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
  2678. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
  2679. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2680. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2681. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2682. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
  2683. end
  2684. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2685. WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2686. BEAM2:remove()
  2687. BEAM:remove()
  2688. ATTACK = false
  2689. Rooted = false
  2690. end
  2691.  
  2692. function Corrupted_Immobilization()
  2693. ATTACK = true
  2694. Rooted = true
  2695. Charge(2,false)
  2696. local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
  2697. local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
  2698. for i = 1, 60 do
  2699. Swait()
  2700. ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true)
  2701. SND.Pitch = SND.Pitch - 1/60
  2702. SND2.Pitch = SND.Pitch
  2703. WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2704. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2705. WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2706. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2707. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  2708. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2709. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2710. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2711. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  2712. end
  2713. SND:remove()
  2714. SND2:remove()
  2715. ATTACK = false
  2716. Rooted = false
  2717. end
  2718.  
  2719. --//=================================\\
  2720. --|| ASSIGN THINGS TO KEYS
  2721. --\\=================================//
  2722.  
  2723. function MouseDown(Mouse)
  2724. if ATTACK == false then
  2725. Click()
  2726. end
  2727. end
  2728.  
  2729. function MouseUp(Mouse)
  2730. HOLD = false
  2731. end
  2732.  
  2733. function KeyDown(Key)
  2734. KEYHOLD = true
  2735. if Key == "z" and ATTACK == false then
  2736. Corrupted_Beam()
  2737. end
  2738.  
  2739. if Key == "e" and ATTACK == false then
  2740. ReeeEEEEEE()
  2741. end
  2742.  
  2743. if Key == "r" and ATTACK == false then
  2744. Teleport()
  2745. end
  2746.  
  2747. if Key == "q" and ATTACK == false then
  2748. Equivalent_Pain()
  2749. end
  2750.  
  2751. if Key == "x" and ATTACK == false then
  2752. Corrupted_Explosion()
  2753. end
  2754.  
  2755. if Key == "c" and ATTACK == false then
  2756. Corrupted_Immobilization()
  2757. elseif Key == "1" and ATTACK == false then
  2758. if CHOICE ~= 1 then
  2759. CHOICE = 1
  2760. sick:Play()
  2761. end
  2762. elseif Key == "2" and ATTACK == false then
  2763. if CHOICE ~= 2 then
  2764. CHOICE = 2
  2765. sick:Play()
  2766. end
  2767. elseif Key == "3" and ATTACK == false then
  2768. if CHOICE ~= 3 then
  2769. CHOICE = 3
  2770. sick:Play()
  2771. end
  2772. elseif Key == "4" and ATTACK == false then
  2773. if CHOICE ~= 4 then
  2774. CHOICE = 4
  2775. sick:Play()
  2776. end
  2777.  
  2778. end
  2779. end
  2780.  
  2781.  
  2782.  
  2783. function KeyUp(Key)
  2784. KEYHOLD = false
  2785. end
  2786.  
  2787. Mouse.Button1Down:connect(function(NEWKEY)
  2788. MouseDown(NEWKEY)
  2789. end)
  2790. Mouse.Button1Up:connect(function(NEWKEY)
  2791. MouseUp(NEWKEY)
  2792. end)
  2793. Mouse.KeyDown:connect(function(NEWKEY)
  2794. KeyDown(NEWKEY)
  2795. end)
  2796. Mouse.KeyUp:connect(function(NEWKEY)
  2797. KeyUp(NEWKEY)
  2798. end)
  2799.  
  2800. --//=================================\\
  2801. --\\=================================//
  2802.  
  2803. function unanchor()
  2804. if UNANCHOR == true then
  2805. g = Character:GetChildren()
  2806. for i = 1, #g do
  2807. if g[i].ClassName == "Part" then
  2808. g[i].Anchored = false
  2809. end
  2810. end
  2811. end
  2812. end
  2813.  
  2814. --//=================================\\
  2815. --|| WRAP THE WHOLE SCRIPT UP
  2816. --\\=================================//
  2817.  
  2818. Humanoid.Changed:connect(function(Jump)
  2819. if Jump == "Jump" and (Disable_Jump == true) then
  2820. Humanoid.Jump = false
  2821. end
  2822. end)
  2823.  
  2824. while true do
  2825. Swait()
  2826. script.Parent = WEAPONGUI
  2827. ANIMATE.Parent = nil
  2828. if Humanoid then
  2829. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2830. IDLEANIMATION:Play()
  2831. end
  2832. SINE = SINE + CHANGE
  2833. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2834. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2835. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2836. local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16)
  2837. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2838. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2839. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2840. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  2841. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
  2842. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2843. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2844. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2845. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2846. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2847. end
  2848. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2849. ANIM = "Jump"
  2850. if ATTACK == false then
  2851. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2852. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2853. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2854. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2855. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  2856. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2857. end
  2858. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2859. ANIM = "Fall"
  2860. if ATTACK == false then
  2861. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2862. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2863. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2864. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2865. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  2866. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  2867. end
  2868. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2869. ANIM = "Idle"
  2870. if ATTACK == false then
  2871. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2872. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2873. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2874. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2875. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2876. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2877. if VALUE1 == false and MRANDOM(1,200) == 1 then
  2878. coroutine.resume(coroutine.create(function()
  2879. VALUE1 = true
  2880. for i = 1, 25 do
  2881. Swait()
  2882. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
  2883.  
  2884. end
  2885. VALUE1 = false
  2886. end))
  2887. end
  2888. end
  2889.  
  2890. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2891. ANIM = "Walk"
  2892. if ATTACK == false then
  2893. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2894. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2895. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2896. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2897. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2898. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2899. end
  2900. end
  2901.  
  2902.  
  2903. sick.Parent = Torso
  2904. sick.Playing = true
  2905.  
  2906.  
  2907. unanchor()
  2908. Humanoid.MaxHealth = "inf"
  2909. Humanoid.Health = "inf"
  2910. if Rooted == false then
  2911. Disable_Jump = false
  2912. Humanoid.WalkSpeed = Speed
  2913. elseif Rooted == true then
  2914. Disable_Jump = true
  2915. Humanoid.WalkSpeed = 0
  2916. end
  2917. end
  2918. --//=================================\\
  2919. --\\=================================//
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925. --//====================================================\\--
  2926. --|| END OF SCRIPT
  2927. --\\====================================================//--
Add Comment
Please, Sign In to add comment