Advertisement
Kermit1900

sksks

Aug 6th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.55 KB | None | 0 0
  1. local Player = game:GetService("Players").HerLxght
  2.  
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = Player.Character
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  61. end
  62.  
  63.  
  64. --Join my discord server.----------------------------------------------------------------
  65. --Original by Shackluster.---------------------------------------------------------------
  66. --Enjoy the edit! :D.--------------------------------------------------------------------
  67. --Join here: https://discordapp.com/channels/506798328995119114/506798328995119116-------
  68. -----------------------------------------------------------------------------------------
  69. ------Update 27/12/2018!-----------------------------------------------------
  70. -----------------------------------------------------------------------------------------
  71.  
  72. script:ClearAllChildren()
  73. wait(0.2)
  74.  
  75. Player = game:GetService("Players").HerLxght
  76. PlayerGui = Player.PlayerGui
  77. Cam = workspace.CurrentCamera
  78. Backpack = Player.Backpack
  79. Character = Player.Character
  80. Humanoid = Character.Humanoid
  81. RootPart = Character["HumanoidRootPart"]
  82. Torso = Character["Torso"]
  83. Head = Character["Head"]
  84. RightArm = Character["Right Arm"]
  85. LeftArm = Character["Left Arm"]
  86. RightLeg = Character["Right Leg"]
  87. LeftLeg = Character["Left Leg"]
  88. RootJoint = RootPart["RootJoint"]
  89. Neck = Torso["Neck"]
  90. RightShoulder = Torso["Right Shoulder"]
  91. LeftShoulder = Torso["Left Shoulder"]
  92. RightHip = Torso["Right Hip"]
  93. LeftHip = Torso["Left Hip"]
  94. print('User: '..Player.Name)
  95. print('Enjoy this Edit ;D')
  96. local sick = Instance.new("Sound",Character)
  97. sick.Parent = Character
  98. sick:resume()
  99. sick.Volume = .5
  100. sick.Pitch = 0.9
  101. sick.Looped = true
  102. sick.SoundId = "rbxassetid://1241592221"
  103. sick.Name = ""
  104. -------------Name Tag Stuff.------------------------
  105. local naeeym = Instance.new("BillboardGui",Character)
  106. naeeym.Size = UDim2.new(0,100,0,60)
  107. naeeym.StudsOffset = Vector3.new(0,2,0)
  108. naeeym.Adornee = Character.Head
  109. local tecks = Instance.new("TextLabel",naeeym)
  110. tecks.BackgroundTransparency = 1
  111. tecks.BorderSizePixel = 0
  112. tecks.Text = "???"
  113. tecks.Font = "Fantasy"
  114. tecks.FontSize = "Size24"
  115. tecks.TextStrokeTransparency = 0
  116. tecks.TextStrokeColor3 = Color3.new(0,0,0)
  117. tecks.TextColor3 = Color3.new(0.5,0,0.5)
  118. tecks.Size = UDim2.new(1,0,0.5,0)
  119. ----------------------------------------------------
  120.  
  121. IT = Instance.new
  122. CF = CFrame.new
  123. VT = Vector3.new
  124. RAD = math.rad
  125. C3 = Color3.new
  126. UD2 = UDim2.new
  127. BRICKC = BrickColor.new
  128. ANGLES = CFrame.Angles
  129. EULER = CFrame.fromEulerAnglesXYZ
  130. COS = math.cos
  131. ACOS = math.acos
  132. SIN = math.sin
  133. ASIN = math.asin
  134. ABS = math.abs
  135. MRANDOM = math.random
  136. FLOOR = math.floor
  137.  
  138. local sky = Instance.new('Sky', game:GetService'Lighting')
  139. sky.SkyboxBk = "rbxassetid://48020371"
  140. sky.SkyboxDn = "rbxassetid://48020144"
  141. sky.SkyboxFt = "rbxassetid://48020234"
  142. sky.SkyboxLf = "rbxassetid://48020211"
  143. sky.SkyboxRt = "rbxassetid://48020254"
  144. sky.SkyboxUp = "rbxassetid://48020383"
  145. sky.StarCount = 3000
  146. sky.SunAngularSize = 0
  147. sky.MoonAngularSize = 11
  148. sky.MoonTextureId = "rbxasset://sky/moon.jpg"
  149. sky.CelestialBodiesShown = false
  150.  
  151. Character["Body Colors"].HeadColor = BrickColor.new("Magenta")
  152. Character["Body Colors"].TorsoColor = BrickColor.new("Magenta")
  153. Character["Body Colors"].LeftArmColor = BrickColor.new("Magenta")
  154. Character["Body Colors"].RightArmColor = BrickColor.new("Magenta")
  155. Character["Body Colors"].LeftLegColor = BrickColor.new("Magenta")
  156. Character["Body Colors"].RightLegColor = BrickColor.new("Magenta")
  157.  
  158. --//=================================\\
  159. --|| USEFUL VALUES
  160. --\\=================================//
  161.  
  162. Player_Size = 1
  163. Animation_Speed = 3
  164. local FORCERESET = false
  165. local Effects2 = {}
  166. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  167. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  168. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  169. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  170. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  171. local DAMAGEMULTIPLIER = 1
  172. local SIZE = 1
  173. local ANIM = "Idle"
  174. local ATTACK = false
  175. local EQUIPPED = false
  176. local HOLD = false
  177. local COMBO = 1
  178. local Rooted = false
  179. local SINE = 0
  180. local KEYHOLD = false
  181. local CHANGE = 2 / Animation_Speed
  182. local WALKINGANIM = false
  183. local VALUE1 = false
  184. local VALUE2 = false
  185. local ROBLOXIDLEANIMATION = IT("Animation")
  186. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  187. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  188. --ROBLOXIDLEANIMATION.Parent = Humanoid
  189. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  190. WEAPONGUI.Name = "BanishV3Gui"
  191. local Weapon = IT("Model")
  192. Weapon.Name = "Adds"
  193. local Effects = IT("Folder", Weapon)
  194. Effects.Name = "Effects"
  195. local ANIMATOR = Humanoid.Animator
  196. local ANIMATE = Character:FindFirstChild("Animate")
  197. local UNANCHOR = true
  198. local TOBANISH = {}
  199. local ROAR = {1205457048,1205457048,1205457048,1205457048}
  200. script.Parent = PlayerGui
  201.  
  202. --//=================================\\
  203. --\\=================================//
  204.  
  205. local Speed = 18
  206.  
  207. --//=================================\\
  208. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  209. --\\=================================//
  210.  
  211. ArtificialHB = Instance.new("BindableEvent", script)
  212. ArtificialHB.Name = "ArtificialHB"
  213.  
  214. script:WaitForChild("ArtificialHB")
  215.  
  216. frame = Frame_Speed
  217. tf = 0
  218. allowframeloss = false
  219. tossremainder = false
  220. lastframe = tick()
  221. script.ArtificialHB:Fire()
  222.  
  223. game:GetService("RunService").Heartbeat:connect(function(s, p)
  224. tf = tf + s
  225. if tf >= frame then
  226. if allowframeloss then
  227. script.ArtificialHB:Fire()
  228. lastframe = tick()
  229. else
  230. for i = 1, math.floor(tf / frame) do
  231. script.ArtificialHB:Fire()
  232. end
  233. lastframe = tick()
  234. end
  235. if tossremainder then
  236. tf = 0
  237. else
  238. tf = tf - frame * math.floor(tf / frame)
  239. end
  240. end
  241. end)
  242.  
  243. --//=================================\\
  244. --\\=================================//
  245.  
  246. --//=================================\\
  247. --|| SOME FUNCTIONS
  248. --\\=================================//
  249.  
  250. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  251. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  252. end
  253.  
  254. function PositiveAngle(NUMBER)
  255. if NUMBER >= 0 then
  256. NUMBER = 0
  257. end
  258. return NUMBER
  259. end
  260.  
  261. function NegativeAngle(NUMBER)
  262. if NUMBER <= 0 then
  263. NUMBER = 0
  264. end
  265. return NUMBER
  266. end
  267.  
  268. function Swait(NUMBER)
  269. if NUMBER == 0 or NUMBER == nil then
  270. ArtificialHB.Event:wait()
  271. else
  272. for i = 1, NUMBER do
  273. ArtificialHB.Event:wait()
  274. end
  275. end
  276. end
  277.  
  278. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  279. local NEWMESH = IT(MESH)
  280. if MESH == "SpecialMesh" then
  281. NEWMESH.MeshType = MESHTYPE
  282. if MESHID ~= "nil" and MESHID ~= "" then
  283. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  284. end
  285. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  286. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  287. end
  288. end
  289. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  290. NEWMESH.Scale = SCALE
  291. NEWMESH.Parent = PARENT
  292. return NEWMESH
  293. end
  294.  
  295. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  296. local NEWPART = IT("Part")
  297. NEWPART.formFactor = FORMFACTOR
  298. NEWPART.Reflectance = REFLECTANCE
  299. NEWPART.Transparency = TRANSPARENCY
  300. NEWPART.CanCollide = false
  301. NEWPART.Locked = true
  302. NEWPART.Anchored = true
  303. if ANCHOR == false then
  304. NEWPART.Anchored = false
  305. end
  306. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  307. NEWPART.Name = NAME
  308. NEWPART.Size = SIZE
  309. NEWPART.Position = Torso.Position
  310. NEWPART.Material = MATERIAL
  311. NEWPART:BreakJoints()
  312. NEWPART.Parent = PARENT
  313. return NEWPART
  314. end
  315.  
  316. local function weldBetween(a, b)
  317. local weldd = Instance.new("ManualWeld")
  318. weldd.Part0 = a
  319. weldd.Part1 = b
  320. weldd.C0 = CFrame.new()
  321. weldd.C1 = b.CFrame:inverse() * a.CFrame
  322. weldd.Parent = a
  323. return weldd
  324. end
  325.  
  326.  
  327. function QuaternionFromCFrame(cf)
  328. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  329. local trace = m00 + m11 + m22
  330. if trace > 0 then
  331. local s = math.sqrt(1 + trace)
  332. local recip = 0.5 / s
  333. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  334. else
  335. local i = 0
  336. if m11 > m00 then
  337. i = 1
  338. end
  339. if m22 > (i == 0 and m00 or m11) then
  340. i = 2
  341. end
  342. if i == 0 then
  343. local s = math.sqrt(m00 - m11 - m22 + 1)
  344. local recip = 0.5 / s
  345. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  346. elseif i == 1 then
  347. local s = math.sqrt(m11 - m22 - m00 + 1)
  348. local recip = 0.5 / s
  349. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  350. elseif i == 2 then
  351. local s = math.sqrt(m22 - m00 - m11 + 1)
  352. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  353. end
  354. end
  355. end
  356.  
  357. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  358. local xs, ys, zs = x + x, y + y, z + z
  359. local wx, wy, wz = w * xs, w * ys, w * zs
  360. local xx = x * xs
  361. local xy = x * ys
  362. local xz = x * zs
  363. local yy = y * ys
  364. local yz = y * zs
  365. local zz = z * zs
  366. 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))
  367. end
  368.  
  369. function QuaternionSlerp(a, b, t)
  370. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  371. local startInterp, finishInterp;
  372. if cosTheta >= 0.0001 then
  373. if (1 - cosTheta) > 0.0001 then
  374. local theta = ACOS(cosTheta)
  375. local invSinTheta = 1 / SIN(theta)
  376. startInterp = SIN((1 - t) * theta) * invSinTheta
  377. finishInterp = SIN(t * theta) * invSinTheta
  378. else
  379. startInterp = 1 - t
  380. finishInterp = t
  381. end
  382. else
  383. if (1 + cosTheta) > 0.0001 then
  384. local theta = ACOS(-cosTheta)
  385. local invSinTheta = 1 / SIN(theta)
  386. startInterp = SIN((t - 1) * theta) * invSinTheta
  387. finishInterp = SIN(t * theta) * invSinTheta
  388. else
  389. startInterp = t - 1
  390. finishInterp = t
  391. end
  392. end
  393. 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
  394. end
  395.  
  396. function Clerp(a, b, t)
  397. local qa = {QuaternionFromCFrame(a)}
  398. local qb = {QuaternionFromCFrame(b)}
  399. local ax, ay, az = a.x, a.y, a.z
  400. local bx, by, bz = b.x, b.y, b.z
  401. local _t = 1 - t
  402. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  403. end
  404.  
  405. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  406. local frame = IT("Frame")
  407. frame.BackgroundTransparency = TRANSPARENCY
  408. frame.BorderSizePixel = BORDERSIZEPIXEL
  409. frame.Position = POSITION
  410. frame.Size = SIZE
  411. frame.BackgroundColor3 = COLOR
  412. frame.BorderColor3 = BORDERCOLOR
  413. frame.Name = NAME
  414. frame.Parent = PARENT
  415. return frame
  416. end
  417.  
  418. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  419. local label = IT("TextLabel")
  420. label.BackgroundTransparency = 1
  421. label.Size = UD2(1, 0, 1, 0)
  422. label.Position = UD2(0, 0, 0, 0)
  423. label.TextColor3 = TEXTCOLOR
  424. label.TextStrokeTransparency = STROKETRANSPARENCY
  425. label.TextTransparency = TRANSPARENCY
  426. label.FontSize = TEXTFONTSIZE
  427. label.Font = TEXTFONT
  428. label.BorderSizePixel = BORDERSIZEPIXEL
  429. label.TextScaled = false
  430. label.Text = TEXT
  431. label.Name = NAME
  432. label.Parent = PARENT
  433. return label
  434. end
  435.  
  436. function NoOutlines(PART)
  437. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  438. end
  439.  
  440. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  441. local NEWWELD = IT(TYPE)
  442. NEWWELD.Part0 = PART0
  443. NEWWELD.Part1 = PART1
  444. NEWWELD.C0 = C0
  445. NEWWELD.C1 = C1
  446. NEWWELD.Parent = PARENT
  447. return NEWWELD
  448. end
  449. local S = IT("Sound")
  450. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  451. local NEWSOUND = nil
  452. coroutine.resume(coroutine.create(function()
  453. NEWSOUND = S:Clone()
  454. NEWSOUND.Parent = PARENT
  455. NEWSOUND.Volume = VOLUME
  456. NEWSOUND.Pitch = PITCH
  457. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  458. NEWSOUND:play()
  459. if DOESLOOP == true then
  460. NEWSOUND.Looped = true
  461. else
  462. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  463. NEWSOUND:remove()
  464. end
  465. end))
  466. return NEWSOUND
  467. end
  468.  
  469. function CFrameFromTopBack(at, top, back)
  470. local right = top:Cross(back)
  471. 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)
  472. end
  473.  
  474. --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(.5,0,.5), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  475. function WACKYEFFECT(Table)
  476. local TYPE = (Table.EffectType or "Sphere")
  477. local SIZE = (Table.Size or VT(1,1,1))
  478. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  479. local TRANSPARENCY = (Table.Transparency or 0)
  480. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  481. local CFRAME = (Table.CFrame or Torso.CFrame)
  482. local MOVEDIRECTION = (Table.MoveToPos or nil)
  483. local ROTATION1 = (Table.RotationX or 0)
  484. local ROTATION2 = (Table.RotationY or 0)
  485. local ROTATION3 = (Table.RotationZ or 0)
  486. local MATERIAL = (Table.Material or "Neon")
  487. local COLOR = (Table.Color or C3(.5,0,.5))
  488. local TIME = (Table.Time or 45)
  489. local SOUNDID = (Table.SoundID or nil)
  490. local SOUNDPITCH = (Table.SoundPitch or nil)
  491. local SOUNDVOLUME = (Table.SoundVolume or nil)
  492. coroutine.resume(coroutine.create(function()
  493. local PLAYSSOUND = false
  494. local SOUND = nil
  495. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Magenta"), "Effect", VT(1,1,1), true)
  496. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  497. PLAYSSOUND = true
  498. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  499. end
  500. EFFECT.Color = COLOR
  501. local MSH = nil
  502. if TYPE == "Sphere" then
  503. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  504. elseif TYPE == "Block" then
  505. MSH = IT("BlockMesh",EFFECT)
  506. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  507. elseif TYPE == "Wave" then
  508. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  509. elseif TYPE == "Ring" then
  510. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  511. elseif TYPE == "Slash" then
  512. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  513. elseif TYPE == "Round Slash" then
  514. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  515. elseif TYPE == "Swirl" then
  516. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  517. elseif TYPE == "Skull" then
  518. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  519. elseif TYPE == "Crystal" then
  520. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  521. end
  522. if MSH ~= nil then
  523. local MOVESPEED = nil
  524. if MOVEDIRECTION ~= nil then
  525. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  526. end
  527. local GROWTH = SIZE - ENDSIZE
  528. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  529. if TYPE == "Block" then
  530. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  531. else
  532. EFFECT.CFrame = CFRAME
  533. end
  534. for LOOP = 1, TIME+1 do
  535. Swait()
  536. MSH.Scale = MSH.Scale - GROWTH/TIME
  537. if TYPE == "Wave" then
  538. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  539. end
  540. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  541. if TYPE == "Block" then
  542. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  543. else
  544. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  545. end
  546. if MOVEDIRECTION ~= nil then
  547. local ORI = EFFECT.Orientation
  548. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  549. EFFECT.Orientation = ORI
  550. end
  551. end
  552. if PLAYSSOUND == false then
  553. EFFECT:remove()
  554. else
  555. SOUND.Stopped:Connect(function()
  556. EFFECT:remove()
  557. end)
  558. end
  559. else
  560. if PLAYSSOUND == false then
  561. EFFECT:remove()
  562. else
  563. repeat Swait() until SOUND.Playing == false
  564. EFFECT:remove()
  565. end
  566. end
  567. end))
  568. end
  569.  
  570. function MakeForm(PART,TYPE)
  571. if TYPE == "Cyl" then
  572. local MSH = IT("CylinderMesh",PART)
  573. elseif TYPE == "Ball" then
  574. local MSH = IT("SpecialMesh",PART)
  575. MSH.MeshType = "Sphere"
  576. elseif TYPE == "Wedge" then
  577. local MSH = IT("SpecialMesh",PART)
  578. MSH.MeshType = "Wedge"
  579. end
  580. end
  581.  
  582. function SpawnTrail(FROM,TO,BIG)
  583. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Magenta", "Trail", VT(0,0,0))
  584. MakeForm(TRAIL,"Cyl")
  585. local DIST = (FROM - TO).Magnitude
  586. if BIG == true then
  587. TRAIL.Size = VT(4.5,DIST,4.5)
  588. else
  589. TRAIL.Size = VT(4.5,DIST,4.5)
  590. end
  591. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  592. coroutine.resume(coroutine.create(function()
  593. for i = 1, 5 do
  594. Swait()
  595. TRAIL.Transparency = TRAIL.Transparency + 0.1
  596. end
  597. TRAIL:remove()
  598. end))
  599. end
  600.  
  601. function SpawnTrail0(FROM,TO,BIG)
  602. local TRAIL0 = CreatePart(3, Effects, "Neon", 0, 0.5, "Magenta", "Trail", VT(1,1,1))
  603. MakeForm(TRAIL0,"Cyl")
  604. local DIST = (FROM - TO).Magnitude
  605. if BIG == true then
  606. TRAIL0.Size = VT(0.75,DIST,0.75)
  607. else
  608. TRAIL0.Size = VT(0.65,DIST,0.65)
  609. end
  610. TRAIL0.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  611. coroutine.resume(coroutine.create(function()
  612. for i = 1, 5 do
  613. Swait()
  614. TRAIL0.Transparency = TRAIL0.Transparency + 0.1
  615. end
  616. TRAIL0:remove()
  617. end))
  618. end
  619.  
  620. Debris = game:GetService("Debris")
  621.  
  622. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  623. local DIRECTION = CF(StartPos,EndPos).lookVector
  624. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  625. end
  626.  
  627. function turnto(position)
  628. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  629. end
  630.  
  631. function swait(num)
  632. if num == 0 or num == nil then
  633. ArtificialHB.Event:wait()
  634. else
  635. for i = 0, num do
  636. ArtificialHB.Event:wait()
  637. end
  638. end
  639. end
  640.  
  641. function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
  642. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  643. local mesh = IT("SpecialMesh",wave)
  644. mesh.MeshType = "FileMesh"
  645. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  646. mesh.Scale = SIZE
  647. mesh.Offset = VT(0,0,0)
  648. wave.CFrame = CFRAME
  649. coroutine.resume(coroutine.create(function(PART)
  650. for i = 1, WAIT do
  651. Swait()
  652. mesh.Scale = mesh.Scale + GROW
  653. if DOESROT == true then
  654. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  655. end
  656. wave.Transparency = wave.Transparency + (0.5/WAIT)
  657. if wave.Transparency > 0.99 then
  658. wave:remove()
  659. end
  660. end
  661. end))
  662. end
  663.  
  664. function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW)
  665. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  666. local mesh = IT("SpecialMesh",wave)
  667. mesh.MeshType = "Sphere"
  668. mesh.Scale = SIZE
  669. mesh.Offset = VT(0,0,0)
  670. wave.CFrame = CFRAME
  671. coroutine.resume(coroutine.create(function(PART)
  672. for i = 1, WAIT do
  673. Swait()
  674. mesh.Scale = mesh.Scale + GROW
  675. wave.Transparency = wave.Transparency + (1/WAIT)
  676. if wave.Transparency > 0.99 then
  677. wave:remove()
  678. end
  679. end
  680. end))
  681. end
  682.  
  683. function chatfunc(text)
  684. local chat = coroutine.wrap(function()
  685. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  686. Character:FindFirstChild("TalkingBillBoard"):destroy()
  687. end
  688. local Bill = Instance.new("BillboardGui",Character)
  689. Bill.Size = UDim2.new(0,100,0,40)
  690. Bill.StudsOffset = Vector3.new(0,3,0)
  691. Bill.Adornee = Character.Head
  692. Bill.Name = "TalkingBillBoard"
  693. local Hehe = Instance.new("TextLabel",Bill)
  694. Hehe.BackgroundTransparency = 1
  695. Hehe.BorderSizePixel = 0
  696. Hehe.Text = ""
  697. Hehe.Font = "Fantasy"
  698. Hehe.TextSize = 40
  699. Hehe.TextStrokeTransparency = 0
  700. Hehe.Size = UDim2.new(1,0,0.5,0)
  701. coroutine.resume(coroutine.create(function()
  702. while Hehe ~= nil do
  703. swait()
  704. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  705. Hehe.Rotation = math.random(-5,5)
  706. Hehe.TextColor3 = Color3.new(0.5,0,0.5)
  707. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  708. end
  709. end))
  710. for i = 1,string.len(text),1 do
  711. swait()
  712. Hehe.Text = string.sub(text,1,i)
  713. end
  714. swait(90)--Re[math.random(1, 93)]
  715. for i = 0, 1, .025 do
  716. swait()
  717. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  718. Hehe.TextStrokeTransparency = i
  719. Hehe.TextTransparency = i
  720. end
  721. Bill:Destroy()
  722. end)
  723. chat()
  724. end
  725.  
  726. function CheckTableForString(Table, String)
  727. for i, v in pairs(Table) do
  728. if string.find(string.lower(String), string.lower(v)) then
  729. return true
  730. end
  731. end
  732. return false
  733. end
  734.  
  735. function CheckIntangible(Hit)
  736. local ProjectileNames = {
  737. "Water",
  738. "Arrow",
  739. "Projectile",
  740. "Effect",
  741. "Rail",
  742. "Lightning",
  743. "Bullet"
  744. }
  745. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  746. return true
  747. end
  748. return false
  749. end
  750.  
  751. --//=================================\\
  752. --|| WEAPON CREATION
  753. --\\=================================//
  754. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Magenta", "Scarf", VT(1,1,1),false)
  755. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  756. PRT.Color = C3(.5,0,.5)
  757. local PRT2 = CreatePart(3, Character, "Fabric", 0, 0, "Magenta", "Hair", VT(1,1,1),false)
  758. CreateMesh("SpecialMesh", PRT2, "FileMesh", "431809364", "", VT(1.1,1,1.1), VT(0,0,0))
  759. PRT2.Color = C3(.5,0,.5)
  760. for i = 1, 35 do
  761. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
  762. FACE.Color = C3(0,0,0)
  763. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  764. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
  765. end
  766. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Magenta", "Scarf", VT(1,1,1),false)
  767. PRT.Color = C3(.5,0,.5)
  768. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  769. CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  770. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT2, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
  771. CreateMesh("SpecialMesh", PRT2, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
  772. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Eye", VT(0.6,0.1,1)/2,false)
  773. MakeForm(Eye,"Ball")
  774. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  775. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Lavender", "Eye", VT(0.6,0.1,1)/2,false)
  776. MakeForm(Eye,"Ball")
  777. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  778. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
  779. MakeForm(Eye,"Ball")
  780. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  781.  
  782. function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT)
  783. if FLOOR ~= nil then
  784. coroutine.resume(coroutine.create(function()
  785. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0))
  786. PART.CFrame = CF(POSITION)
  787. for i = 1, 45 do
  788. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  789. RingPiece.Material = FLOOR.Material
  790. RingPiece.Color = FLOOR.Color
  791. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  792. Debris:AddItem(RingPiece, SWAIT)
  793. end
  794. PART:remove()
  795. end))
  796. end
  797. end
  798. function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH)
  799. if FLOOR ~= nil then
  800. for i = 1, AMOUNT do
  801. do
  802. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  803. DEBREE.Material = FLOOR.Material
  804. DEBREE.Color = FLOOR.Color
  805. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)))
  806. DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH))
  807. coroutine.resume(coroutine.create(function()
  808. Swait(15)
  809. DEBREE.Parent = workspace
  810. DEBREE.CanCollide = true
  811. Debris:AddItem(DEBREE, SWAIT)
  812. end))
  813. end
  814. end
  815. end
  816. end
  817.  
  818. local Particle = IT("ParticleEmitter",nil)
  819. Particle.Enabled = false
  820. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  821. Particle.LightEmission = 0.88
  822. Particle.Rate = 250
  823. Particle.ZOffset = 0.2
  824. Particle.Rotation = NumberRange.new(-180, 180)
  825. Particle.RotSpeed = NumberRange.new(-180, 180)
  826. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  827. Particle.Color = ColorSequence.new(C3(255,0,255),C3(100,0,100))
  828.  
  829. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  830. function ParticleEmitter(Table)
  831. local PRTCL = Particle:Clone()
  832. local Speed = Table.Speed or 5
  833. local Drag = Table.Drag or 0
  834. local Size1 = Table.Size1 or 1
  835. local Size2 = Table.Size2 or 5
  836. local Lifetime1 = Table.Lifetime1 or 1
  837. local Lifetime2 = Table.Lifetime2 or 1.5
  838. local Parent = Table.Parent or Torso
  839. local Emit = Table.Emit or 100
  840. local Offset = Table.Offset or 360
  841. local Acel = Table.Acel or VT(0,0,0)
  842. local Enabled = Table.Enabled or false
  843. PRTCL.Parent = Parent
  844. PRTCL.Size = NumberSequence.new(Size1,Size2)
  845. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  846. PRTCL.Speed = NumberRange.new(Speed)
  847. PRTCL.VelocitySpread = Offset
  848. PRTCL.Drag = Drag
  849. PRTCL.Acceleration = Acel
  850. if Enabled == false then
  851. PRTCL:Emit(Emit)
  852. Debris:AddItem(PRTCL,Lifetime2)
  853. else
  854. PRTCL.Enabled = true
  855. end
  856. return PRTCL
  857. end
  858.  
  859. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  860. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  861. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  862. MakeForm(Part,"Wedge")
  863. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  864. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  865. MakeForm(Part,"Wedge")
  866. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  867. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  868. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  869. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  870. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  871. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  872. MakeForm(Part,"Cyl")
  873. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  874. for i = 1, 8 do
  875. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  876. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  877. end
  878. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  879. MakeForm(Part,"Cyl")
  880. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  881. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  882. MakeForm(Part,"Ball")
  883. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  884. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  885. MakeForm(Part,"Wedge")
  886. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  887. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  888. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  889. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  890. MakeForm(Part,"Cyl")
  891. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  892. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  893. MakeForm(Part,"Cyl")
  894. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  895. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  896. MakeForm(Part,"Cyl")
  897. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  898. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  899. MakeForm(Part,"Wedge")
  900. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  901. local LASTPART = Handle
  902. for i = 1, 10 do
  903. if LASTPART == Handle then
  904. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  905. LASTPART = Part
  906. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  907. else
  908. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  909. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  910. LASTPART = Part
  911. end
  912. end
  913.  
  914. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  915. MakeForm(Barrel,"Cyl")
  916. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  917. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  918. MakeForm(Part,"Cyl")
  919. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  920. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  921. MakeForm(Part,"Wedge")
  922. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  923. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  924. MakeForm(Hole,"Cyl")
  925. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  926. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  927. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  928. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  929. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  930. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  931. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  932. coroutine.resume(coroutine.create(function()
  933. while wait() do
  934. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  935. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  936. end
  937. end))
  938.  
  939. ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.4, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  940. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  941.  
  942. for _, c in pairs(Weapon:GetDescendants()) do
  943. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  944. c.Material = "Glass"
  945. c.Color = C3(0,0,0)
  946. elseif c.ClassName == "Part" and c.Name == "Eye" then
  947. c.Color = C3(.5,0,.5)
  948. c.Material = "Neon"
  949. end
  950. end
  951.  
  952. Weapon.Parent = Character
  953. for _, c in pairs(Weapon:GetChildren()) do
  954. if c.ClassName == "Part" then
  955. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  956. end
  957. end
  958.  
  959. local SKILLTEXTCOLOR = C3(.5,0,.5)
  960. local SKILLFONT = "Bodoni"
  961. local SKILLTEXTSIZE = 5
  962.  
  963. Humanoid.Died:connect(function()
  964. ATTACK = true
  965. end)
  966. Humanoid.Died:connect(function()
  967. Humanoid.Parent = nil
  968. chatfunc("Urgh....")
  969. ApplyAoE(RootPart, 955, 9999, 9999, 9999, true)
  970. Humanoid.Name = "DEAD!"
  971. Humanoid.MaxHealth = 16e+16
  972. Humanoid.Health = 16e+16
  973. CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Magenta",VT(10,10,10))
  974. CreateSound("178452217", Effects, 10, 1)
  975. MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Magenta",VT(500,500,500))
  976. end)
  977.  
  978. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  979. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  980. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  981. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  982. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.20, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  983. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.03, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  984.  
  985. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "Z - Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
  986. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "X - Amethyst Strike", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
  987. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "F - Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
  988. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "V - Amethyst ???", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
  989. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "C - Taunt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
  990. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "Q - Teleport", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6")
  991.  
  992. workspace.ChildAdded:connect(function(instance)
  993. for BANISH = 1, #TOBANISH do
  994. if TOBANISH[BANISH] ~= nil then
  995. if instance.Name == TOBANISH[BANISH] then
  996. coroutine.resume(coroutine.create(function()
  997. printbye(instance.Name)
  998. instance:ClearAllChildren()
  999. Debris:AddItem(instance,0.0005)
  1000. end))
  1001. end
  1002. end
  1003. end
  1004. end)
  1005.  
  1006. --//=================================\\
  1007. --|| DAMAGING
  1008. --\\=================================//
  1009.  
  1010. function Banish(Foe)
  1011. if Foe then
  1012. coroutine.resume(coroutine.create(function()
  1013. --if game.Players:FindFirstChild(Foe.Name) then
  1014. table.insert(TOBANISH,Foe.Name)
  1015. printbye(Foe.Name)
  1016. --end
  1017. Foe.Archivable = true
  1018. local CLONE = Foe:Clone()
  1019. Foe:Destroy()
  1020. CLONE.Parent = Effects
  1021. CLONE:BreakJoints()
  1022. local MATERIALS = {"Glass","Neon"}
  1023. for _, c in pairs(CLONE:GetDescendants()) do
  1024. if c:IsA("BasePart") then
  1025. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1026. CreateSound(340722848, c, 10, 1, false)
  1027. end
  1028. c.Anchored = true
  1029. c.Transparency = c.Transparency + 0.2
  1030. c.Material = MATERIALS[MRANDOM(1,2)]
  1031. c.Color = C3(0.5 ,0 ,0.5)
  1032. if c.ClassName == "MeshPart" then
  1033. c.TextureID = ""
  1034. end
  1035. if c:FindFirstChildOfClass("SpecialMesh") then
  1036. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1037. end
  1038. if c:FindFirstChildOfClass("Decal") then
  1039. c:FindFirstChildOfClass("Decal"):remove()
  1040. end
  1041. c.Name = "Banished"
  1042. c.CanCollide = false
  1043. else
  1044. c:remove()
  1045. end
  1046. end
  1047. local A = false
  1048. for i = 1, 35 do
  1049. if A == false then
  1050. A = true
  1051. elseif A == true then
  1052. A = false
  1053. end
  1054. for _, c in pairs(CLONE:GetDescendants()) do
  1055. if c:IsA("BasePart") then
  1056. c.Anchored = true
  1057. c.Material = MATERIALS[MRANDOM(1,2)]
  1058. c.Transparency = c.Transparency + 0.8/35
  1059. if A == false then
  1060. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1061. elseif A == true then
  1062. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1063. end
  1064. end
  1065. end
  1066. Swait()
  1067. end
  1068. CLONE:remove()
  1069. end))
  1070. end
  1071. end
  1072.  
  1073. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1074. local CHILDREN = workspace:GetDescendants()
  1075. for index, CHILD in pairs(CHILDREN) do
  1076. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1077. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1078. if HUM then
  1079. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1080. if TORSO then
  1081. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1082. if ISBANISH == true then
  1083. Banish(CHILD)
  1084. else
  1085. if ISBANISH == "Gravity" then
  1086. HUM.PlatformStand = true
  1087. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1088. local grav = Instance.new("BodyPosition",TORSO)
  1089. grav.D = 15
  1090. grav.P = 20000
  1091. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1092. grav.position = TORSO.Position
  1093. grav.Name = "V3BanishForce"..Player.Name
  1094. else
  1095. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1096. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1097. end
  1098. else
  1099. HUM.PlatformStand = false
  1100. end
  1101. end
  1102. elseif ISBANISH == "Gravity" then
  1103. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1104. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1105. HUM.PlatformStand = false
  1106. end
  1107. end
  1108. end
  1109. end
  1110. end
  1111. end
  1112. end
  1113. function recurse(root,callback,i)
  1114. i= i or 0
  1115. for _,v in pairs(root:GetChildren()) do
  1116. i = i + 1
  1117. callback(i,v)
  1118.  
  1119. if #v:GetChildren() > 0 then
  1120. i = recurse(v,callback,i)
  1121. end
  1122. end
  1123.  
  1124. return i
  1125. end
  1126. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  1127. attachmentName = attachmentName.."RigAttachment"
  1128. local constraint = Instance.new(className.."Constraint")
  1129. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  1130. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  1131. constraint.Name = "RagdollConstraint"..part1.Name
  1132.  
  1133. for _,propertyData in next,properties or {} do
  1134. constraint[propertyData[1]] = propertyData[2]
  1135. end
  1136.  
  1137. constraint.Parent = character
  1138. end
  1139. function getAttachment0(character, attachmentName)
  1140. for _,child in next,character:GetChildren() do
  1141. local attachment = child:FindFirstChild(attachmentName)
  1142. if attachment then
  1143. return attachment
  1144. end
  1145. end
  1146. end
  1147.  
  1148. function ArtificialHitbox(Part)
  1149. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  1150. HITBOX.CanCollide = true
  1151. HITBOX.CFrame = Part.CFrame
  1152. weldBetween(Part,HITBOX)
  1153. end
  1154. function R15Ragdoll(character,KeepArms)
  1155. character:BreakJoints()
  1156. coroutine.resume(coroutine.create(function()
  1157. recurse(character, function(_,v)
  1158. if v:IsA("Attachment") then
  1159. v.Axis = Vector3.new(0, 1, 0)
  1160. v.SecondaryAxis = Vector3.new(0, 0, 1)
  1161. v.Rotation = Vector3.new(0, 0, 0)
  1162. end
  1163. end)
  1164. for _,child in next,character:GetChildren() do
  1165. if child:IsA("Accoutrement") then
  1166. for _,part in next,child:GetChildren() do
  1167. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  1168. local attachment1 = part:FindFirstChildOfClass("Attachment")
  1169. local attachment0 = getAttachment0(character,attachment1.Name)
  1170. if attachment0 and attachment1 then
  1171. local constraint = Instance.new("HingeConstraint")
  1172. constraint.Attachment0 = attachment0
  1173. constraint.Attachment1 = attachment1
  1174. constraint.LimitsEnabled = true
  1175. constraint.UpperAngle = 0
  1176. constraint.LowerAngle = 0
  1177. constraint.Parent = character
  1178. end
  1179. ArtificialHitbox(part)
  1180. elseif part.Name == "HumanoidRootPart" then
  1181. part:remove()
  1182. end
  1183. end
  1184. end
  1185. end
  1186.  
  1187. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  1188. {"LimitsEnabled",true};
  1189. {"UpperAngle",5};
  1190. })
  1191. if character:FindFirstChild("Head") then
  1192. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  1193. {"LimitsEnabled",true};
  1194. {"UpperAngle",15};
  1195. })
  1196. end
  1197.  
  1198. local handProperties = {
  1199. {"LimitsEnabled", true};
  1200. {"UpperAngle",0};
  1201. {"LowerAngle",0};
  1202. }
  1203. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  1204. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  1205.  
  1206. local shinProperties = {
  1207. {"LimitsEnabled", true};
  1208. {"UpperAngle", 0};
  1209. {"LowerAngle", -75};
  1210. }
  1211. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  1212. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  1213.  
  1214. local footProperties = {
  1215. {"LimitsEnabled", true};
  1216. {"UpperAngle", 15};
  1217. {"LowerAngle", -45};
  1218. }
  1219. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  1220. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  1221. if KeepArms == true then
  1222. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  1223. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  1224. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  1225. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  1226. end
  1227. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  1228. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  1229. Debris:AddItem(character,5)
  1230. end))
  1231. end
  1232.  
  1233. function Ragdoll(Character2,CharTorso,KeepArms)
  1234. coroutine.resume(coroutine.create(function()
  1235. Character2:BreakJoints()
  1236. local hum = Character2:findFirstChild("Humanoid")
  1237. hum:remove()
  1238. local function Scan(ch)
  1239. local e
  1240. for e = 1,#ch do
  1241. Scan(ch[e]:GetChildren())
  1242. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  1243. ch[e]:remove()
  1244. end
  1245. end
  1246. end
  1247. local NEWHUM = IT("Humanoid")
  1248. NEWHUM.Name = "Corpse"
  1249. NEWHUM.Health = 0
  1250. NEWHUM.MaxHealth = 0
  1251. NEWHUM.PlatformStand = true
  1252. NEWHUM.Parent = Character2
  1253. NEWHUM.DisplayDistanceType = "None"
  1254.  
  1255. local ch = Character2:GetChildren()
  1256. local i
  1257. for i = 1,#ch do
  1258. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1259. ch[i]:remove()
  1260. end
  1261. end
  1262.  
  1263. local Torso2 = Character2.Torso
  1264. local movevector = Vector3.new()
  1265.  
  1266. if Torso2 then
  1267. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1268. local Head = Character2:FindFirstChild("Head")
  1269. if Head then
  1270. local Neck = Instance.new("Weld")
  1271. Neck.Name = "Neck"
  1272. Neck.Part0 = Torso2
  1273. Neck.Part1 = Head
  1274. Neck.C0 = CFrame.new(0, 1.5, 0)
  1275. Neck.C1 = CFrame.new()
  1276. Neck.Parent = Torso2
  1277.  
  1278. end
  1279. local Limb = Character2:FindFirstChild("Right Arm")
  1280. if Limb and KeepArms == true then
  1281.  
  1282. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1283. local Joint = Instance.new("Glue")
  1284. Joint.Name = "RightShoulder"
  1285. Joint.Part0 = Torso2
  1286. Joint.Part1 = Limb
  1287. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1288. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1289. Joint.Parent = Torso2
  1290.  
  1291. local B = Instance.new("Part")
  1292. B.TopSurface = 0
  1293. B.BottomSurface = 0
  1294. B.formFactor = "Symmetric"
  1295. B.Size = Vector3.new(1, 1, 1)
  1296. B.Transparency = 1
  1297. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1298. B.Parent = Character2
  1299. local W = Instance.new("Weld")
  1300. W.Part0 = Limb
  1301. W.Part1 = B
  1302. W.C0 = CFrame.new(0, -0.5, 0)
  1303. W.Parent = Limb
  1304.  
  1305. end
  1306. local Limb = Character2:FindFirstChild("Left Arm")
  1307. if Limb and KeepArms == true then
  1308.  
  1309. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1310. local Joint = Instance.new("Glue")
  1311. Joint.Name = "LeftShoulder"
  1312. Joint.Part0 = Torso2
  1313. Joint.Part1 = Limb
  1314. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1315. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1316. Joint.Parent = Torso2
  1317.  
  1318. local B = Instance.new("Part")
  1319. B.TopSurface = 0
  1320. B.BottomSurface = 0
  1321. B.formFactor = "Symmetric"
  1322. B.Size = Vector3.new(1, 1, 1)
  1323. B.Transparency = 1
  1324. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1325. B.Parent = Character2
  1326. local W = Instance.new("Weld")
  1327. W.Part0 = Limb
  1328. W.Part1 = B
  1329. W.C0 = CFrame.new(0, -0.5, 0)
  1330. W.Parent = Limb
  1331.  
  1332. end
  1333. local Limb = Character2:FindFirstChild("Right Leg")
  1334. if Limb then
  1335.  
  1336. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1337. local Joint = Instance.new("Glue")
  1338. Joint.Name = "RightHip"
  1339. Joint.Part0 = Torso2
  1340. Joint.Part1 = Limb
  1341. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1342. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1343. Joint.Parent = Torso2
  1344.  
  1345. local B = Instance.new("Part")
  1346. B.TopSurface = 0
  1347. B.BottomSurface = 0
  1348. B.formFactor = "Symmetric"
  1349. B.Size = Vector3.new(1, 1, 1)
  1350. B.Transparency = 1
  1351. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1352. B.Parent = Character2
  1353. local W = Instance.new("Weld")
  1354. W.Part0 = Limb
  1355. W.Part1 = B
  1356. W.C0 = CFrame.new(0, -0.5, 0)
  1357. W.Parent = Limb
  1358.  
  1359. end
  1360. local Limb = Character2:FindFirstChild("Left Leg")
  1361. if Limb then
  1362.  
  1363. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1364. local Joint = Instance.new("Glue")
  1365. Joint.Name = "LeftHip"
  1366. Joint.Part0 = Torso2
  1367. Joint.Part1 = Limb
  1368. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1369. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1370. Joint.Parent = Torso2
  1371.  
  1372. local B = Instance.new("Part")
  1373. B.TopSurface = 0
  1374. B.BottomSurface = 0
  1375. B.formFactor = "Symmetric"
  1376. B.Size = Vector3.new(1, 1, 1)
  1377. B.Transparency = 1
  1378. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1379. B.Parent = Character2
  1380. local W = Instance.new("Weld")
  1381. W.Part0 = Limb
  1382. W.Part1 = B
  1383. W.C0 = CFrame.new(0, -0.5, 0)
  1384. W.Parent = Limb
  1385.  
  1386. end
  1387. --[
  1388. local Bar = Instance.new("Part")
  1389. Bar.TopSurface = 0
  1390. Bar.BottomSurface = 0
  1391. Bar.formFactor = "Symmetric"
  1392. Bar.Size = Vector3.new(1, 1, 1)
  1393. Bar.Transparency = 1
  1394. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1395. Bar.Parent = Character2
  1396. local Weld = Instance.new("Weld")
  1397. Weld.Part0 = Torso2
  1398. Weld.Part1 = Bar
  1399. Weld.C0 = CFrame.new(0, 0.5, 0)
  1400. Weld.Parent = Torso2
  1401. --]]
  1402. end
  1403. Character2.Parent = workspace
  1404. Debris:AddItem(Character2,5)
  1405.  
  1406. return Character2,Torso2
  1407. end))
  1408. end
  1409.  
  1410. --//=================================\\
  1411. --|| ATTACK FUNCTIONS AND STUFF
  1412. --\\=================================//
  1413. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  1414. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  1415. local mesh = IT("SpecialMesh",wave)
  1416. mesh.MeshType = "Sphere"
  1417. mesh.Scale = SIZE
  1418. mesh.Offset = VT(0,0,0)
  1419. wave.CFrame = CFRAME
  1420. coroutine.resume(coroutine.create(function(PART)
  1421. for i = 1, WAIT do
  1422. Swait()
  1423. mesh.Scale = mesh.Scale + GROW
  1424. wave.Transparency = wave.Transparency + (1/WAIT)
  1425. if wave.Transparency > 0.99 then
  1426. wave:remove()
  1427. end
  1428. end
  1429. end))
  1430. end
  1431. function Roar()
  1432. ATTACK = true
  1433. Rooted = true
  1434. local VIOLENCE = 1
  1435. FORCEIDLE = true
  1436. FORCEIDLE = false
  1437. if VIOLENCE <= 10 then
  1438. MagicSphere(VT(0,0,0),15,Head.CFrame,"Magenta",VT(2,2,2))
  1439. for i=0, 1, 0.1 / Animation_Speed do
  1440. Swait()
  1441. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1442. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1443. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(22)) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1444. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(135), RAD(0), RAD(-22)) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1445. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1446. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1447. end
  1448. local TAUNT = CreateSound(ROAR[MRANDOM(1,#ROAR)], Head, 100, 1, false)
  1449. repeat Swait() until TAUNT.TimeLength > 0
  1450. repeat
  1451. Swait()
  1452. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1453. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(150,0,150), Transparency = 1, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  1454. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(350,0,350), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  1455. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
  1456. TAUNT.Parent = Head
  1457. Swait()
  1458. TAUNT.Parent = Head
  1459. local CHILDREN = workspace:GetDescendants()
  1460. for index, CHILD in pairs(CHILDREN) do
  1461. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1462. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1463. if HUM then
  1464. local TORSO = CHILD:FindFirstChild("Head")
  1465. if TORSO then
  1466. if (TORSO.Position - Head.Position).Magnitude <= 999 then
  1467. WACKYEFFECT({Time = 75, 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(1,1,0), SoundID = 12222242, SoundPitch = 1, SoundVolume = 3})
  1468. if CHILD:FindFirstChild("Torso") then
  1469. elseif CHILD:FindFirstChild("UpperTorso") then
  1470. end
  1471. end
  1472. end
  1473. end
  1474. end
  1475. end
  1476. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, -0.2*SIZE, -0.1*SIZE) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  1477. Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
  1478. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(-35), RAD(0), RAD(42)) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1479. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(-35), RAD(0), RAD(-42)) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1480. RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(25), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1481. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.01*SIZE) * ANGLES(RAD(45), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1482. until TAUNT.TimePosition > TAUNT.TimeLength - 2
  1483. end
  1484. MagicSphere(VT(0,0,0),15,Head.CFrame,"Magenta",VT(5,5,5))
  1485. ATTACK = false
  1486. Rooted = false
  1487. end
  1488. function Shot()
  1489. ATTACK = true
  1490. Rooted = false
  1491. MagicSphere(VT(0,0,0),15,Head.CFrame,"Magenta",VT(5,5,5))
  1492. MagicSphere(VT(0,0,0),15,Head.CFrame,"Magenta",VT(5,5,5))
  1493. for i=0, 0.5, 0.22 / Animation_Speed do
  1494. Swait()
  1495. turnto(Mouse.Hit.p)
  1496. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1497. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1498. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1499. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1500. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1501. end
  1502. repeat
  1503. for i=0, 0.5, 0.22 / Animation_Speed do
  1504. Swait()
  1505. turnto(Mouse.Hit.p)
  1506. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1507. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1508. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1509. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1510. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1511. end
  1512. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1513. SpawnTrail0(Hole.Position,POS)
  1514. if HIT ~= nil then
  1515. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1516. Banish(HIT.Parent)
  1517. end
  1518. end
  1519. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(4,4,4).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1520. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 1486538358, SoundPitch = 0.95, SoundVolume = 10})
  1521. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8})
  1522. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 8})
  1523. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
  1524. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(150,0,150), Transparency = 1, Transparency2 = 1, CFrame = CF(Head.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  1525. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,2,0), Size2 = VT(350,0,350), Transparency = 0.2, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
  1526. for i=0, 0.5, 0.22 / Animation_Speed do
  1527. Swait()
  1528. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1529. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1530. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1531. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1532. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1533. end
  1534. MagicSphere(VT(0,0,0),15,Head.CFrame,"Magenta",VT(5,5,5))
  1535. until KEYHOLD == false
  1536. ATTACK = false
  1537. Rooted = false
  1538. end
  1539. function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  1540. if FLOOR ~= nil then
  1541. coroutine.resume(coroutine.create(function()
  1542. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really black", "DebreeCenter", VT(0,0,0))
  1543. PART.CFrame = CF(POSITION)
  1544. for i = 1, 45 do
  1545. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really black", "DebreePart", BLOCKSIZE)
  1546. RingPiece.Material = FLOOR.Material
  1547. RingPiece.Color = FLOOR.Color
  1548. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1549. Debris:AddItem(RingPiece,SWAIT)
  1550. end
  1551. PART:remove()
  1552. end))
  1553. end
  1554. end
  1555.  
  1556. function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  1557. if FLOOR ~= nil then
  1558. for i = 1, AMOUNT do
  1559. local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Debree", BLOCKSIZE, false)
  1560. DEBREE.Material = FLOOR.Material
  1561. DEBREE.Color = FLOOR.Color
  1562. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  1563. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
  1564. coroutine.resume(coroutine.create(function()
  1565. Swait(15)
  1566. DEBREE.Parent = workspace
  1567. DEBREE.CanCollide = true
  1568. Debris:AddItem(DEBREE,SWAIT)
  1569. end))
  1570. end
  1571. end
  1572. end
  1573. function Pure_Heaven()
  1574. chatfunc("Amethyst Strike!!")
  1575. ATTACK = true
  1576. Rooted = true
  1577. for i = 1, 15 do
  1578. Swait()
  1579. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.3) * ANGLES(RAD(180), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / 3)
  1580. end
  1581. SpawnTrail0(Hole.Position,VT(0,1000,0),true)
  1582. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 1486538358, SoundPitch = 0.95, SoundVolume = 10})
  1583. for i = 1, 15 do
  1584. Swait()
  1585. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.3) * ANGLES(RAD(180), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / 3)
  1586. end
  1587.  
  1588. for i=0, 0.5, 0.1 / Animation_Speed do
  1589. Swait()
  1590. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.3) * ANGLES(RAD(180), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / 3)
  1591. end
  1592.  
  1593. coroutine.resume(coroutine.create(function()
  1594. local POS = Mouse.Hit.p
  1595. local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Strike", VT(0,0,0))
  1596. MakeForm(RAY,"Cyl")
  1597. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  1598. MakeForm(SPHERE,"Ball")
  1599. local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Magenta", "Strike", VT(0,0,0))
  1600. MakeForm(SHIELD,"Ball")
  1601. SHIELD.CFrame = CF(POS)
  1602. RAY.CFrame = CF(POS)
  1603. SPHERE.CFrame = CF(POS)
  1604. CreateSound(440145570, SPHERE, 15, 0.5, false)
  1605. CreateSound(415700134, SPHERE, 15, 0.5, false)
  1606. for i = 1, 10 do
  1607. Swait()
  1608. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1609. RAY.Size = RAY.Size + VT(0.5,1000,0.5)
  1610. SPHERE.Size = SPHERE.Size + VT(1.5,1.5,1.5)
  1611. SHIELD.Size = SPHERE.Size + VT(2.5,2.5,2.5)
  1612. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1613. end
  1614. for i = 1, 45 do
  1615. Swait()
  1616. RAY.Transparency = RAY.Transparency + 1/45
  1617. SPHERE.Transparency = RAY.Transparency
  1618. SHIELD.Transparency = SPHERE.Transparency + 1/45
  1619. end
  1620. RAY:remove()
  1621. SHIELD:remove()
  1622. SPHERE:remove()
  1623. end))
  1624. for i=0, 1, 0.1 / Animation_Speed do
  1625. Swait()
  1626. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.3) * ANGLES(RAD(180), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / 3)
  1627. end
  1628. ATTACK = false
  1629. Rooted = false
  1630. end
  1631. function printbye(Name)
  1632. local MESSAGES = {"Well, goodbye, ","You shouldn't have done that, ", "You're now banished, " ,"I've got you now, ","Rest in piece, " ,"You should take a rest, "}
  1633. chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1634. end
  1635. local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  1636. MakeForm(RightHole,"Cyl")
  1637. local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false)
  1638. MakeForm(LeftHole,"Cyl")
  1639. function Gates_Of_Darkness()
  1640. chatfunc("Die...")
  1641. CreateSound(0, Torso, 10, 1, false)
  1642. ATTACK = true
  1643. Rooted = true
  1644. for i=0, 0.5, 0.1 / Animation_Speed do
  1645. Swait()
  1646. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  1647. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1648. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -0.7 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5)
  1649. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1650. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1651. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1652. end
  1653. local DONE = false
  1654. local GATE = nil
  1655. local GATESPIN = true
  1656. coroutine.resume(coroutine.create(function()
  1657. repeat
  1658. Swait()
  1659. if GATE ~= nil then
  1660. GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
  1661. end
  1662. until GATESPIN == false
  1663. end))
  1664. coroutine.resume(coroutine.create(function()
  1665. repeat
  1666. Swait()
  1667. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*3)
  1668. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1669. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -0.7 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5)
  1670. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1671. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1672. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.2, 0.2 - 0.1 * COS(SINE / 24), -0.4 - 0.1 * COS(SINE / 24)) * ANGLES(RAD(45), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1673. until DONE == true
  1674. Swait(50)
  1675. for i = 1, 35 do
  1676. Swait(4)
  1677. local FIRED = false
  1678. local CHILDREN = workspace:GetDescendants()
  1679. for index, CHILD in pairs(CHILDREN) do
  1680. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1681. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1682. if HUM then
  1683. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1684. if TORSO then
  1685. if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
  1686. local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1687. local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1688. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1689. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1690. SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
  1691. Banish(CHILD)
  1692. FIRED = true
  1693. break
  1694. end
  1695. end
  1696. end
  1697. end
  1698. end
  1699. if FIRED == false then
  1700. local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
  1701. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = 1486538358, SoundPitch = 1, SoundVolume = 6})
  1702. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(16,8,16), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(.5,0,.5), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1703. SpawnTrail(CFRAME.p,CFRAME*CF(1,1000,1).p)
  1704. local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
  1705. if HITBOD ~= nil then
  1706. if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
  1707. Banish(HITBOD.Parent)
  1708. end
  1709. end
  1710. end
  1711. end
  1712. for i = 1, 45 do
  1713. Swait()
  1714. GATE.Size = GATE.Size - VT(2,0,2)
  1715. end
  1716. GATESPIN = false
  1717. GATE:remove()
  1718. end))
  1719. Swait(15)
  1720. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1721. GATE = CreatePart(3, Effects, "Neon", 0, 1, "Black", "Gate", VT(0,0,0))
  1722. local DECAL = IT("Decal",GATE)
  1723. DECAL.Texture = "http://www.roblox.com/asset/?id=569385439"
  1724. DECAL.Face = "Top"
  1725. GATE.CFrame = CF(HITPOS)
  1726. CreateSound(0, GATE, 7, 1.3, false)
  1727. for i = 1, 45 do
  1728. Swait()
  1729. GATE.Size = GATE.Size + VT(2,0,2)
  1730. end
  1731. CreateSound(1486538358, RightHole, 7, 1, false)
  1732. CreateSound(1486538358, LeftHole, 7, 1, false)
  1733. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1734. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(16,0,16), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1735. ATTACK = false
  1736. Rooted = false
  1737. DONE = true
  1738. end
  1739. function Taunt()
  1740. ATTACK = true
  1741. Rooted = true
  1742. CreateSound("907333406", Head, 10, 0.9)
  1743. sick:Stop()
  1744. Weapon.Parent = nil
  1745. for i = 1, 3 do
  1746. for i = 0, 0.7, 0.14 / Animation_Speed do
  1747. Swait()
  1748. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1749. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1750. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  1751. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  1752. 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.25 / Animation_Speed)
  1753. 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.25 / Animation_Speed)
  1754. end
  1755. for i = 0, 0.7, 0.14 / Animation_Speed do
  1756. Swait()
  1757. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1758. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
  1759. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
  1760. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
  1761. 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.25 / Animation_Speed)
  1762. 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.25 / Animation_Speed)
  1763. end
  1764. end
  1765. sick:Play()
  1766. Weapon.Parent = Character
  1767. ATTACK = false
  1768. Rooted = false
  1769. end
  1770.  
  1771. --//=================================\\
  1772. --|| ASSIGN THINGS TO KEYS
  1773. --\\=================================//
  1774.  
  1775. function MouseDown(Mouse)
  1776. if ATTACK == false then
  1777. end
  1778. end
  1779.  
  1780. function MouseUp(Mouse)
  1781. HOLD = false
  1782. end
  1783.  
  1784. function KeyDown(Key)
  1785. KEYHOLD = true
  1786. if Key == "z" and ATTACK == false then
  1787. Shot()
  1788. end
  1789.  
  1790. if Key == "f" and ATTACK == false then
  1791. chatfunc("Don't do it again next time.")
  1792. TOBANISH = {}
  1793. end
  1794.  
  1795. if Key == "t" and ATTACK == false then
  1796. Taunt()
  1797. end
  1798.  
  1799. if Key == "c" and ATTACK == false then
  1800. Roar()
  1801. end
  1802.  
  1803. if Key == "q" and ATTACK == false then
  1804. for i=0, 0.5, 0.08 / Animation_Speed do
  1805. Swait()
  1806. 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)
  1807. 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)
  1808. end
  1809. MagicSphere(VT(0,0,0),15,Head.CFrame,"Magenta",VT(5,5,5))
  1810. local pos = RootPart.Position
  1811. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,5,0),pos)
  1812. end
  1813.  
  1814. if Key == "x" and ATTACK == false then
  1815. Pure_Heaven()
  1816. end
  1817.  
  1818. if Key == "v" and ATTACK == false then
  1819. Gates_Of_Darkness()
  1820. end
  1821. end
  1822.  
  1823. function KeyUp(Key)
  1824. KEYHOLD = false
  1825. end
  1826.  
  1827. Mouse.Button1Down:connect(function(NEWKEY)
  1828. MouseDown(NEWKEY)
  1829. end)
  1830. Mouse.Button1Up:connect(function(NEWKEY)
  1831. MouseUp(NEWKEY)
  1832. end)
  1833. Mouse.KeyDown:connect(function(NEWKEY)
  1834. KeyDown(NEWKEY)
  1835. end)
  1836. Mouse.KeyUp:connect(function(NEWKEY)
  1837. KeyUp(NEWKEY)
  1838. end)
  1839.  
  1840. --//=================================\\
  1841. --\\=================================//
  1842.  
  1843.  
  1844. function unanchor()
  1845. if UNANCHOR == true then
  1846. g = Character:GetChildren()
  1847. for i = 1, #g do
  1848. if g[i].ClassName == "Part" then
  1849. g[i].Anchored = false
  1850. end
  1851. end
  1852. end
  1853. end
  1854.  
  1855.  
  1856. --//=================================\\
  1857. --|| WRAP THE WHOLE SCRIPT UP
  1858. --\\=================================//
  1859.  
  1860. Humanoid.Changed:connect(function(Jump)
  1861. if Jump == "Jump" and (Disable_Jump == true) then
  1862. Humanoid.Jump = false
  1863. end
  1864. end)
  1865.  
  1866. sick.AncestryChanged:Connect(function()
  1867. sick.Parent = Character
  1868. end)
  1869.  
  1870. local FF = IT("ForceField", Character)
  1871. FF.Visible = false
  1872.  
  1873. while true do
  1874. Swait()
  1875. script.Parent = WEAPONGUI
  1876. ANIMATE.Parent = nil
  1877. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1878. v:Stop();
  1879. end
  1880. SINE = SINE + CHANGE
  1881. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1882. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1883. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1884. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1885. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1886. 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)
  1887. 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)
  1888. 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1889. 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1890. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1891. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1892. 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)
  1893. 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)
  1894. 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)
  1895. end
  1896. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1897. ANIM = "Jump"
  1898. if ATTACK == false then
  1899. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1900. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1901. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1902. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1903. 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)
  1904. 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)
  1905. end
  1906. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1907. ANIM = "Fall"
  1908. if ATTACK == false then
  1909. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1910. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1911. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1912. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1913. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1914. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1915. end
  1916. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1917. ANIM = "Idle"
  1918. if ATTACK == false then
  1919. 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)
  1920. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed)
  1921. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1922. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1923. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1924. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1925. end
  1926. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1927. ANIM = "Walk"
  1928. if ATTACK == false then
  1929. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / 3)
  1930. 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 / 3)
  1931. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / 3)
  1932. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / 3)
  1933. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / 3)
  1934. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / 3)
  1935. end
  1936. end
  1937. unanchor()
  1938. Humanoid.MaxHealth = 16e+16
  1939. Humanoid.Health = 16e+16
  1940. if Rooted == false then
  1941. Disable_Jump = false
  1942. Humanoid.WalkSpeed = Speed
  1943. elseif Rooted == true then
  1944. Disable_Jump = true
  1945. Humanoid.WalkSpeed = 0
  1946. end
  1947. if Head:FindFirstChild("face") then
  1948. Head.face.Texture = "rbxassetid://0"
  1949. end
  1950. end
  1951.  
  1952. --//=================================\\
  1953. --\\=================================//
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959. --//====================================================\\--
  1960. --|| END OF SCRIPT
  1961. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement