Advertisement
Penien23

Rex

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