Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.42 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. ----------------------
  145. -- Synapse Decompiler
  146. -- Purchase Here: https://brack4712.xyz/synapse/purchase/
  147.  
  148. wait(0.2)
  149. Player = owner
  150. PlayerGui = Player.PlayerGui
  151. Cam = workspace.CurrentCamera
  152. Backpack = Player.Backpack
  153. Character = Player.Character
  154. Humanoid = Character.Humanoid
  155. Mouse = Player:GetMouse()
  156. RootPart = Character.HumanoidRootPart
  157. Torso = Character.Torso
  158. Head = Character.Head
  159. RightArm = Character["Right Arm"]
  160. LeftArm = Character["Left Arm"]
  161. RightLeg = Character["Right Leg"]
  162. LeftLeg = Character["Left Leg"]
  163. RootJoint = RootPart.RootJoint
  164. Neck = Torso.Neck
  165. RightShoulder = Torso["Right Shoulder"]
  166. LeftShoulder = Torso["Left Shoulder"]
  167. RightHip = Torso["Right Hip"]
  168. LeftHip = Torso["Left Hip"]
  169. Humanoid.JumpPower = 0
  170. shirt = Instance.new("Shirt", Character)
  171. shirt.Name = "Shirt"
  172. pants = Instance.new("Pants", Character)
  173. pants.Name = "Pants"
  174. Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1123249914"
  175. Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=1839310233"
  176. local sick = Instance.new("Sound", Character)
  177. sick.SoundId = "rbxassetid://1425415770"
  178. sick.Name = "BGM"
  179. sick.Looped = true
  180. sick.Pitch = 0.8
  181. sick.Volume = 4
  182. sick:Play()
  183. musictime = 0
  184. Character.ChildRemoved:connect(function(removed)
  185. if removed.Name == "BGM" then
  186. local sick = Instance.new("Sound", Character)
  187. sick.SoundId = "rbxassetid://1425415770"
  188. sick.Name = "BGM"
  189. sick.Looped = true
  190. sick.Pitch = 0.8
  191. sick.Volume = 4
  192. sick.TimePosition = musictime
  193. sick:Play()
  194. end
  195. end)
  196. IT = Instance.new
  197. CF = CFrame.new
  198. VT = Vector3.new
  199. RAD = math.rad
  200. C3 = Color3.new
  201. UD2 = UDim2.new
  202. BRICKC = BrickColor.new
  203. ANGLES = CFrame.Angles
  204. EULER = CFrame.fromEulerAnglesXYZ
  205. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  206. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  207. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  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. local LAUGHS = {834001699,834001752,834001828}
  216. local CHOICE = MRANDOM(1,4)
  217.  
  218. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  219. local NEWMESH = IT(MESH)
  220. if MESH == "SpecialMesh" then
  221. NEWMESH.MeshType = MESHTYPE
  222. if MESHID ~= "nil" and MESHID ~= "" then
  223. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  224. end
  225. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  226. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  227. end
  228. end
  229. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  230. NEWMESH.Scale = SCALE
  231. NEWMESH.Parent = PARENT
  232. return NEWMESH
  233. end
  234.  
  235. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  236. local NEWPART = IT("Part")
  237. NEWPART.formFactor = FORMFACTOR
  238. NEWPART.Reflectance = REFLECTANCE
  239. NEWPART.Transparency = TRANSPARENCY
  240. NEWPART.CanCollide = false
  241. NEWPART.Locked = true
  242. NEWPART.Anchored = true
  243. if ANCHOR == false then
  244. NEWPART.Anchored = false
  245. end
  246. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  247. NEWPART.Name = NAME
  248. NEWPART.Size = SIZE
  249. NEWPART.Position = Torso.Position
  250. NEWPART.Material = MATERIAL
  251. NEWPART:BreakJoints()
  252. NEWPART.Parent = PARENT
  253. return NEWPART
  254. end
  255. Player_Size = 1
  256. Animation_Speed = 3
  257. Frame_Speed = 0.016666666666666666
  258. local Speed = 20
  259. local Effects2 = {}
  260. local weldBetween = function(a, b)
  261. local weldd = Instance.new("ManualWeld")
  262. weldd.Part0 = a
  263. weldd.Part1 = b
  264. weldd.C0 = CFrame.new()
  265. weldd.C1 = b.CFrame:inverse() * a.CFrame
  266. weldd.Parent = a
  267. return weldd
  268. end
  269. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  270. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  271. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  272. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  273. local CHANGEDEFENSE = 0
  274. local CHANGEDAMAGE = 0
  275. local CHANGEMOVEMENT = 0
  276. local ANIM = "Idle"
  277. local ATTACK = false
  278. local EQUIPPED = false
  279. local HOLD = false
  280. local COMBO = 1
  281. local Rooted = false
  282. local SINE = 0
  283. local KEYHOLD = false
  284. local CHANGE = 2 / Animation_Speed
  285. local WALKINGANIM = false
  286. local WALK = 0
  287. local VALUE1 = false
  288. local VALUE2 = false
  289. local ROBLOXIDLEANIMATION = IT("Animation")
  290. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  291. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  292. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  293. WEAPONGUI.Name = "Weapon GUI"
  294. local Effects = IT("Folder", Character)
  295. Effects.Name = "Effects"
  296. local ANIMATOR = Humanoid.Animator
  297. local ANIMATE = Character.Animate
  298.  
  299. local UNANCHOR = true
  300.  
  301. ArtificialHB = Instance.new("BindableEvent", script)
  302. ArtificialHB.Name = "ArtificialHB"
  303. script:WaitForChild("ArtificialHB")
  304. frame = Frame_Speed
  305. tf = 0
  306. allowframeloss = false
  307. tossremainder = false
  308. lastframe = tick()
  309. script.ArtificialHB:Fire()
  310. game:GetService("RunService").Heartbeat:connect(function(s, p)
  311. tf = tf + s
  312. if tf >= frame then
  313. if allowframeloss then
  314. script.ArtificialHB:Fire()
  315. lastframe = tick()
  316. else
  317. for i = 1, math.floor(tf / frame) do
  318. script.ArtificialHB:Fire()
  319. end
  320. lastframe = tick()
  321. end
  322. if tossremainder then
  323. tf = 0
  324. else
  325. tf = tf - frame * math.floor(tf / frame)
  326. end
  327. end
  328. end)
  329. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  330. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  331. end
  332. function PositiveAngle(NUMBER)
  333. if NUMBER >= 0 then
  334. NUMBER = 0
  335. end
  336. return NUMBER
  337. end
  338. function NegativeAngle(NUMBER)
  339. if NUMBER <= 0 then
  340. NUMBER = 0
  341. end
  342. return NUMBER
  343. end
  344. function Swait(NUMBER)
  345. if NUMBER == 0 or NUMBER == nil then
  346. ArtificialHB.Event:wait()
  347. else
  348. for i = 1, NUMBER do
  349. ArtificialHB.Event:wait()
  350. end
  351. end
  352. end
  353. function QuaternionFromCFrame(cf)
  354. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  355. local trace = m00 + m11 + m22
  356. if trace > 0 then
  357. local s = math.sqrt(1 + trace)
  358. local recip = 0.5 / s
  359. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  360. else
  361. local i = 0
  362. if m00 < m11 then
  363. i = 1
  364. end
  365. if m22 > (i == 0 and m00 or m11) then
  366. i = 2
  367. end
  368. if i == 0 then
  369. local s = math.sqrt(m00 - m11 - m22 + 1)
  370. local recip = 0.5 / s
  371. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  372. elseif i == 1 then
  373. local s = math.sqrt(m11 - m22 - m00 + 1)
  374. local recip = 0.5 / s
  375. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  376. elseif i == 2 then
  377. local s = math.sqrt(m22 - m00 - m11 + 1)
  378. local recip = 0.5 / s
  379. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  380. end
  381. end
  382. end
  383. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  384. local xs, ys, zs = x + x, y + y, z + z
  385. local wx, wy, wz = w * xs, w * ys, w * zs
  386. local xx = x * xs
  387. local xy = x * ys
  388. local xz = x * zs
  389. local yy = y * ys
  390. local yz = y * zs
  391. local zz = z * zs
  392. 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))
  393. end
  394. Head.Color = C3(0,0,0)
  395. Torso.Color = C3(0,0,0)
  396. LeftArm.Color = C3(0,0,0)
  397. RightArm.Color = C3(0,0,0)
  398. LeftLeg.Color = C3(0,0,0)
  399. RightLeg.Color = C3(0,0,0)
  400. function QuaternionSlerp(a, b, t)
  401. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  402. local startInterp, finishInterp
  403. if cosTheta >= 1.0E-4 then
  404. if 1 - cosTheta > 1.0E-4 then
  405. local theta = ACOS(cosTheta)
  406. local invSinTheta = 1 / SIN(theta)
  407. startInterp = SIN((1 - t) * theta) * invSinTheta
  408. finishInterp = SIN(t * theta) * invSinTheta
  409. else
  410. startInterp = 1 - t
  411. finishInterp = t
  412. end
  413. elseif 1 + cosTheta > 1.0E-4 then
  414. local theta = ACOS(-cosTheta)
  415. local invSinTheta = 1 / SIN(theta)
  416. startInterp = SIN((t - 1) * theta) * invSinTheta
  417. finishInterp = SIN(t * theta) * invSinTheta
  418. else
  419. startInterp = t - 1
  420. finishInterp = t
  421. end
  422. 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
  423. end
  424. function Clerp(a, b, t)
  425. local qa = {
  426. QuaternionFromCFrame(a)
  427. }
  428. local qb = {
  429. QuaternionFromCFrame(b)
  430. }
  431. local ax, ay, az = a.x, a.y, a.z
  432. local bx, by, bz = b.x, b.y, b.z
  433. local _t = 1 - t
  434. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  435. end
  436. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  437. local frame = IT("Frame")
  438. frame.BackgroundTransparency = TRANSPARENCY
  439. frame.BorderSizePixel = BORDERSIZEPIXEL
  440. frame.Position = POSITION
  441. frame.Size = SIZE
  442. frame.BackgroundColor3 = COLOR
  443. frame.BorderColor3 = BORDERCOLOR
  444. frame.Name = NAME
  445. frame.Parent = PARENT
  446. return frame
  447. end
  448. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  449. local label = IT("TextLabel")
  450. label.BackgroundTransparency = 1
  451. label.Size = UD2(1, 0, 1, 0)
  452. label.Position = UD2(0, 0, 0, 0)
  453. label.TextColor3 = TEXTCOLOR
  454. label.TextStrokeTransparency = STROKETRANSPARENCY
  455. label.TextTransparency = TRANSPARENCY
  456. label.FontSize = TEXTFONTSIZE
  457. label.Font = TEXTFONT
  458. label.BorderSizePixel = BORDERSIZEPIXEL
  459. label.TextScaled = false
  460. label.Text = TEXT
  461. label.Name = NAME
  462. label.Parent = PARENT
  463. return label
  464. end
  465. function NoOutlines(PART)
  466. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  467. end
  468. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  469. local NEWWELD = IT(TYPE)
  470. NEWWELD.Part0 = PART0
  471. NEWWELD.Part1 = PART1
  472. NEWWELD.C0 = C0
  473. NEWWELD.C1 = C1
  474. NEWWELD.Parent = PARENT
  475. return NEWWELD
  476. end
  477. local S = IT("Sound")
  478. function CreateSound(ID, PARENT, VOLUME, PITCH)
  479. local NEWSOUND
  480. coroutine.resume(coroutine.create(function()
  481. NEWSOUND = S:Clone()
  482. NEWSOUND.Parent = PARENT
  483. NEWSOUND.Volume = VOLUME
  484. NEWSOUND.Pitch = PITCH
  485. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  486. Swait()
  487. NEWSOUND:play()
  488. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  489. end))
  490. return NEWSOUND
  491. end
  492. function CFrameFromTopBack(at, top, back)
  493. local right = top:Cross(back)
  494. 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)
  495. end
  496. function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
  497. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  498. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  499. wave.CFrame = CFRAME
  500. coroutine.resume(coroutine.create(function(PART)
  501. for i = 1, WAIT do
  502. Swait()
  503. mesh.Scale = mesh.Scale + GROW
  504. mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
  505. if DOESROT == true then
  506. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  507. end
  508. wave.Transparency = wave.Transparency + 0.5 / WAIT
  509. if wave.Transparency > 0.99 then
  510. wave:remove()
  511. end
  512. end
  513. end))
  514. end
  515. function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
  516. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
  517. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
  518. wave.CFrame = CFRAME
  519. coroutine.resume(coroutine.create(function(PART)
  520. for i = 1, WAIT do
  521. Swait()
  522. mesh.Scale = mesh.Scale + GROW
  523. if DOESROT == true then
  524. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
  525. end
  526. wave.Transparency = wave.Transparency + 0.5 / WAIT
  527. if wave.Transparency > 0.99 then
  528. wave:remove()
  529. end
  530. end
  531. end))
  532. end
  533.  
  534. function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
  535. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
  536. local mesh
  537. if KIND == "Base" then
  538. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
  539. elseif KIND == "Thin" then
  540. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  541. elseif KIND == "Round" then
  542. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
  543. end
  544. wave.CFrame = CFRAME
  545. coroutine.resume(coroutine.create(function(PART)
  546. for i = 1, WAIT do
  547. Swait()
  548. mesh.Scale = mesh.Scale + GROW / 10
  549. wave.Transparency = wave.Transparency + 0.5 / WAIT
  550. if wave.Transparency > 0.99 then
  551. wave:remove()
  552. end
  553. end
  554. end))
  555. end
  556. function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
  557. for _, c in pairs(PARENT:GetChildren()) do
  558. if c.ClassName == "Model" then
  559. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  560. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  561. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  562. if DIST > (TORSO.Position - FROM).Magnitude then
  563. table.insert(TABLE, c)
  564. end
  565. AddChildrenToTable(FROM, c, DIST, TABLE)
  566. elseif c.ClassName == "Folder" then
  567. AddChildrenToTable(FROM, c, DIST, TABLE)
  568. end
  569. end
  570. end
  571. end
  572. function MakeForm(PART, TYPE)
  573. if TYPE == "Cyl" then
  574. local MSH = IT("CylinderMesh", PART)
  575. elseif TYPE == "Ball" then
  576. local MSH = IT("SpecialMesh", PART)
  577. MSH.MeshType = "Sphere"
  578. elseif TYPE == "Wedge" then
  579. local MSH = IT("SpecialMesh", PART)
  580. MSH.MeshType = "Wedge"
  581. end
  582. end
  583.  
  584. local Particle = IT("ParticleEmitter",nil)
  585. Particle.Enabled = false
  586. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  587. Particle.LightEmission = 0.5
  588. Particle.Rate = 150
  589. Particle.ZOffset = 1
  590. Particle.Rotation = NumberRange.new(-180, 180)
  591. Particle.RotSpeed = NumberRange.new(-180, 180)
  592. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  593. Particle.Color = ColorSequence.new(C3(177, 0, 193),C3(177, 0, 193))
  594.  
  595. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  596. function ParticleEmitter(Table)
  597. local PRTCL = Particle:Clone()
  598. local Speed = Table.Speed or 5
  599. local Drag = Table.Drag or 0
  600. local Size1 = Table.Size1 or 1
  601. local Size2 = Table.Size2 or 5
  602. local Lifetime1 = Table.Lifetime1 or 1
  603. local Lifetime2 = Table.Lifetime2 or 1.5
  604. local Parent = Table.Parent or Torso
  605. local Emit = Table.Emit or 100
  606. local Offset = Table.Offset or 360
  607. local Acel = Table.Acel or VT(0,0,0)
  608. local Enabled = Table.Enabled or false
  609. PRTCL.Parent = Parent
  610. PRTCL.Size = NumberSequence.new(Size1,Size2)
  611. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  612. PRTCL.Speed = NumberRange.new(Speed)
  613. PRTCL.VelocitySpread = Offset
  614. PRTCL.Drag = Drag
  615. PRTCL.Acceleration = Acel
  616. if Enabled == false then
  617. PRTCL:Emit(Emit)
  618. Debris:AddItem(PRTCL,Lifetime2)
  619. else
  620. PRTCL.Enabled = true
  621. end
  622. return PRTCL
  623. end
  624.  
  625. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true})
  626. PRT.LockedToPart = true
  627. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true})
  628. PRT.LockedToPart = true
  629. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true})
  630. PRT.LockedToPart = true
  631. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true})
  632. PRT.LockedToPart = true
  633. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true})
  634. PRT.LockedToPart = true
  635.  
  636.  
  637.  
  638. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(1,0.4,1.8)/2,false)
  639. MakeForm(Eye,"Ball")
  640. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
  641. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(1,0.4,1.8)/2,false)
  642. MakeForm(Eye,"Ball")
  643. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
  644. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(0.1,1,1)/2,false)
  645. MakeForm(Eye,"Ball")
  646. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
  647. local Eye = CreatePart(3, Character, "Neon", 0, 0, "Metenga", "Eye", VT(0.1,1,1)/2,false)
  648. MakeForm(Eye,"Ball")
  649. CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
  650.  
  651. function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine)
  652. if DoesCourontine == false then
  653. local Direction = CF(Part.Position, ToLocation)
  654. local Distance = (Part.Position - ToLocation).magnitude
  655. for i = 1, AmountOfTime do
  656. Swait()
  657. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  658. Direction = Part.CFrame
  659. end
  660. Part:remove()
  661. elseif DoesCourontine == true then
  662. coroutine.resume(coroutine.create(function()
  663. local Direction = CF(Part.Position, ToLocation)
  664. local Distance = (Part.Position - ToLocation).magnitude
  665. for i = 1, AmountOfTime do
  666. Swait()
  667. Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime)
  668. Direction = Part.CFrame
  669. end
  670. Part:remove()
  671. end))
  672. end
  673. end
  674. function CheckTableForString(Table, String)
  675. for i, v in pairs(Table) do
  676. if string.find(string.lower(String), string.lower(v)) then
  677. return true
  678. end
  679. end
  680. return false
  681. end
  682. function CheckIntangible(Hit)
  683. local ProjectileNames = {
  684. "Water",
  685. "Arrow",
  686. "Projectile",
  687. "Effect",
  688. "Rail",
  689. "Lightning",
  690. "Bullet"
  691. }
  692. if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
  693. return true
  694. end
  695. return false
  696. end
  697. Debris = game:GetService("Debris")
  698. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  699. local Direction = CFrame.new(StartPos, Vec).lookVector
  700. local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
  701. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  702. if RayHit and CheckIntangible(RayHit) then
  703. if DelayIfHit then
  704. wait()
  705. end
  706. RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
  707. end
  708. return RayHit, RayPos, RayNormal
  709. end
  710. function turnto(position)
  711. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  712. end
  713. local naeeym2 = Instance.new("BillboardGui", Character)
  714. naeeym2.AlwaysOnTop = true
  715. naeeym2.Size = UDim2.new(15, 35, 2, 15)
  716. naeeym2.StudsOffset = Vector3.new(0, 3, 0)
  717. naeeym2.Adornee = Character.Head
  718. naeeym2.Name = "Name"
  719. local tecks2 = Instance.new("TextLabel", naeeym2)
  720. tecks2.BackgroundTransparency = 1
  721. tecks2.TextScaled = true
  722. tecks2.BorderSizePixel = 0
  723. tecks2.Text = "Elio's Revenge Of The Dead"
  724. tecks2.Font = "Antique"
  725. tecks2.TextSize = 30
  726. tecks2.TextStrokeTransparency = 0
  727. tecks2.TextColor3 = Color3.new(1, 1, 1)
  728. tecks2.TextStrokeColor3 = BrickColor.new("Really red").Color
  729. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  730. tecks2.Parent = naeeym2
  731. Humanoid.Died:connect(function()
  732. Humanoid.Parent = nil
  733. Humanoid.MaxHealth = "inf"
  734. Humanoid.Health = "inf"
  735. refit()
  736. Humanoid.Parent = Character
  737. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
  738. for i = 1, 5 do
  739. end
  740. killnearest(Torso.Position, 25, 180)
  741. end)
  742.  
  743. function killnearest(position, range, maxstrength)
  744. for i, v in ipairs(workspace:GetChildren()) do
  745. local body = v:GetChildren()
  746. for part = 1, #body do
  747. if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then
  748. if v.ClassName == "Model" then
  749. v:BreakJoints()
  750. end
  751. local bv = Instance.new("BodyVelocity")
  752. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  753. bv.velocity = CF(position, body[part].Position).lookVector * maxstrength
  754. bv.Parent = body[part]
  755. Debris:AddItem(bv, 0.2)
  756. end
  757. end
  758. if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then
  759. v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength
  760. end
  761. end
  762. end
  763. function Transparency(TRANS)
  764. tecks2.TextTransparency = TRANS
  765. tecks2.TextStrokeTransparency = TRANS
  766. for _, c in pairs(Character:GetChildren()) do
  767. if c.ClassName == "Part" and c ~= RootPart then
  768. c.Transparency = TRANS
  769. if c:FindFirstChildOfClass("Decal") then
  770. c:FindFirstChildOfClass("Decal").Transparency = TRANS
  771. end
  772. elseif c.ClassName == "Accessory" then
  773. c.Handle.Transparency = TRANS
  774. elseif c.ClassName == "Model" then
  775. for _, q in pairs(c:GetChildren()) do
  776. if q.ClassName == "Part" then
  777. q.Transparency = TRANS
  778. if q:FindFirstChildOfClass("Decal") then
  779. q:FindFirstChildOfClass("Decal").Transparency = TRANS
  780. end
  781. end
  782. end
  783. end
  784. end
  785. end
  786.  
  787. function Savage_Fire()
  788. ATTACK = true
  789. Rooted = true
  790. VALUE1 = true
  791. local HITBODIES = {}
  792.  
  793. for i = 0, 1.2, 0.1 / Animation_Speed do
  794. Swait()
  795.  
  796. if MRANDOM(1, 2) == 1 then
  797. do
  798.  
  799. end
  800. end
  801. 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)
  802. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  803. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  804. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  805. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  806. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  807. end
  808. Character.Archivable = true
  809. local CLONE = Character:Clone()
  810. CLONE.BGM:remove()
  811. CLONE.Effects:remove()
  812. CLONE.Parent = Effects
  813.  
  814. local ORIGINPOS = RootPart.Position
  815. Transparency(1)
  816. VALUE2 = true
  817. RootPart.CFrame = CF(Mouse.Hit.p + VT(0, 5, 0), ORIGINPOS)
  818. for i = 1, 50 do
  819. Swait()
  820.  
  821. 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)
  822. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  823. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  824. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  825. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  826. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  827. end
  828.  
  829. coroutine.resume(coroutine.create(function()
  830. local PITS = {}
  831. local HITFLOOR, HITPOS, NORMAL = Raycast(CLONE.Torso.Position, CF(CLONE.Torso.Position, CLONE.Torso.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character)
  832.  
  833. if HITFLOOR ~= nil then
  834. local POS = CLONE.Torso.Position
  835. CLONE:remove()
  836. for i = 1, 150 do
  837. Swait()
  838. local PEWSOUND = {
  839. "907527750",
  840. "907527912",
  841. "907528019",
  842. "907530553"
  843. }
  844. AddChildrenToTable(HITPOS, workspace, i, HITBODIES)
  845. if MRANDOM(1, 2) == 1 then
  846. local ICICLE = IT("CornerWedgePart", Effects)
  847. ICICLE.Locked = true
  848. ICICLE.CanCollide = false
  849. ICICLE.Anchored = true
  850. ICICLE.BrickColor = BRICKC("Royal purple")
  851. ICICLE.Material = "Neon"
  852. ICICLE.Size = VT(i / 10, i / 2, i / 10)
  853.  
  854. ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-i / 2, i / 2), 0, MRANDOM(-i / 2, i / 2)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25)))
  855. table.insert(PITS, ICICLE)
  856. for e = 1, #HITBODIES do
  857. if HITBODIES[e] ~= nil then
  858. local BOD = HITBODIES[e]
  859. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  860. if TORS then
  861. BOD:BreakJoints()
  862. for _, c in pairs(BOD:GetChildren()) do
  863. if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  864. local bv = Instance.new("BodyVelocity")
  865. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  866. bv.velocity = CF(POS, c.Position).lookVector * 250
  867. bv.Parent = c
  868. Debris:AddItem(bv, 0.2)
  869. end
  870. end
  871. end
  872. end
  873. end
  874. HITBODIES = {}
  875. end
  876. end
  877. coroutine.resume(coroutine.create(function()
  878. for i = 1, 10 do
  879. Swait()
  880. for e = 1, #PITS do
  881. if PITS[e] ~= nil then
  882. local E = PITS[e]
  883. E.Transparency = E.Transparency + 0.1
  884. end
  885. end
  886. end
  887. for e = 1, #PITS do
  888. if PITS[e] ~= nil then
  889. local E = PITS[e]
  890. E:remove()
  891. end
  892. end
  893. end))
  894. end
  895. end))
  896. VALUE2 = false
  897. VALUE1 = false
  898. ATTACK = false
  899. Rooted = false
  900. for i = 1, 10 do
  901. Swait()
  902. Transparency(1 - i / 10)
  903. end
  904. end
  905. function Grave_Encounter()
  906. local HITBODIES = {}
  907. local PEWSOUND = {
  908. "907527750",
  909. "907527912",
  910. "907528019",
  911. "907530553"
  912. }
  913. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  914. if HITFLOOR ~= nil then
  915. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
  916. ATTACK = true
  917. Rooted = false
  918. local GYRO = IT("BodyGyro", RootPart)
  919. GYRO.D = 100
  920. GYRO.P = 2000
  921. GYRO.MaxTorque = VT(0, 4000000, 0)
  922. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  923. for i = 0, 3.5, 0.1 / Animation_Speed do
  924. Swait()
  925. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  926. 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)
  927. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  928. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  929. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  930. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  931. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  932. end
  933. for i = 0, 0.15, 0.1 / Animation_Speed do
  934. Swait()
  935. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  936. 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(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  937. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  938. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  939. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  940. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  941. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  942. end
  943. Rooted = true
  944. GYRO:remove()
  945. coroutine.resume(coroutine.create(function()
  946. local PITS = {}
  947. local FRAME = RootPart.CFrame
  948. for i = 1, 200 do
  949. Swait()
  950. for e = 1, #HITBODIES do
  951. if HITBODIES[e] ~= nil then
  952. local BOD = HITBODIES[e]
  953. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  954. if TORS then
  955. BOD:BreakJoints()
  956. table.remove(HITBODIES, e)
  957. end
  958. end
  959. end
  960. local GLITCH = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Puddle", VT(2 + i / 2, 0, 2 + i / 2))
  961. MakeForm(GLITCH, "Cyl")
  962. GLITCH.CFrame = FRAME * CF(MRANDOM(-5, 5), 0, 5 - i * 3)
  963. local HITFLOOR, HITPOS, NORMAL = Raycast(GLITCH.Position, CF(GLITCH.Position, GLITCH.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character)
  964. if HITFLOOR ~= nil then
  965. table.insert(PITS, GLITCH)
  966. GLITCH.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
  967. AddChildrenToTable(HITPOS, workspace, i / 2, HITBODIES)
  968. if MRANDOM(1, 2) == 1 then
  969. local ICICLE = IT("CornerWedgePart", Effects)
  970. ICICLE.Locked = true
  971. ICICLE.CanCollide = false
  972. ICICLE.Anchored = true
  973. ICICLE.BrickColor = BRICKC("Royal purple")
  974. ICICLE.Material = "Neon"
  975. ICICLE.Size = VT(i / 10, i / 2, i / 10)
  976. CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ICICLE, 10, 0.8)
  977. ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-i / 10, i / 10), 0, MRANDOM(-i / 10, i / 10)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25)))
  978. table.insert(PITS, ICICLE)
  979. end
  980. else
  981. GLITCH:remove()
  982. break
  983. end
  984. end
  985. coroutine.resume(coroutine.create(function()
  986. for i = 1, 10 do
  987. Swait()
  988. for e = 1, #PITS do
  989. if PITS[e] ~= nil then
  990. local E = PITS[e]
  991. E.Transparency = E.Transparency + 0.1
  992. end
  993. end
  994. end
  995. for e = 1, #PITS do
  996. if PITS[e] ~= nil then
  997. local E = PITS[e]
  998. E:remove()
  999. end
  1000. end
  1001. end))
  1002. end))
  1003. for i = 0, 1, 0.1 / Animation_Speed do
  1004. Swait()
  1005. 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(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1006. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1007. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1008. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1009. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1010. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1011. end
  1012. ATTACK = false
  1013. Rooted = false
  1014. end
  1015. end
  1016. function Endless_Pain()
  1017. local HITBODIES = {}
  1018. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  1019. if HITFLOOR ~= nil then
  1020. CreateSound("463598785", RootPart, 10, 0.8)
  1021. ATTACK = true
  1022. Rooted = true
  1023. VALUE1 = true
  1024. for i = 50, 500 do
  1025. Swait()
  1026. AddChildrenToTable(HITPOS, workspace, i / 3, HITBODIES)
  1027. for e = 1, #HITBODIES do
  1028. if HITBODIES[e] ~= nil then
  1029. local BOD = HITBODIES[e]
  1030. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  1031. if TORS and TORS:FindFirstChild("BV") == nil then
  1032. local bv = Instance.new("BodyVelocity")
  1033. bv.Name = "BV"
  1034. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1035. bv.velocity = CF(TORS.Position, TORS.Position + VT(0, 1, 0)).lookVector * 20
  1036. bv.Parent = TORS
  1037. Debris:AddItem(bv, 0.1)
  1038. end
  1039. end
  1040. end
  1041. end
  1042. coroutine.resume(coroutine.create(function()
  1043. for e = 1, #HITBODIES do
  1044. Swait()
  1045. if HITBODIES[e] ~= nil then
  1046. local BOD = HITBODIES[e]
  1047. for i = 1, #HITBODIES do
  1048. if HITBODIES[i] == BOD and i ~= e then
  1049. table.remove(HITBODIES, i)
  1050. end
  1051. end
  1052. local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
  1053. if TORS then
  1054. TORS.Anchored = false
  1055. CreateSound("92597369", TORS, 10, 0.8)
  1056. BOD:BreakJoints()
  1057. for _, c in pairs(BOD:GetChildren()) do
  1058. if c.ClassName == "Part" or c.ClassName == "MeshPart" then
  1059. local bv = Instance.new("BodyVelocity")
  1060. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1061. bv.velocity = CF(HITPOS, c.Position).lookVector * 250
  1062. bv.Parent = c
  1063. Debris:AddItem(bv, 0.2)
  1064. end
  1065. end
  1066. end
  1067. end
  1068. end
  1069. end))
  1070. VALUE1 = false
  1071. ATTACK = false
  1072. Rooted = false
  1073. end
  1074. end
  1075. function Kill(Char)
  1076. local NewCharacter = IT("Model",Effects)
  1077. NewCharacter.Name = "Ow im ded ;-;"
  1078. for _, c in pairs(Char:GetDescendants()) do
  1079. if c:IsA("BasePart") and c.Transparency == 0 then
  1080. if c.Parent == Char then
  1081.  
  1082. end
  1083. c:BreakJoints()
  1084. c.Material = "Glass"
  1085. c.Color = C3(0.5,0,0)
  1086. c.CanCollide = true
  1087. c.Transparency = 0.3
  1088. if c:FindFirstChildOfClass("SpecialMesh") then
  1089. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1090. end
  1091. if c.Name == "Head" then
  1092. c:ClearAllChildren()
  1093. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1094. end
  1095. if c.ClassName == "MeshPart" then
  1096. c.TextureID = ""
  1097. end
  1098. if c:FindFirstChildOfClass("BodyPosition") then
  1099. c:FindFirstChildOfClass("BodyPosition"):remove()
  1100. end
  1101. if c:FindFirstChildOfClass("ParticleEmitter") then
  1102. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1103. end
  1104. c.Parent = NewCharacter
  1105. c.Name = "DeadPart"
  1106. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1107. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1108. end
  1109. end
  1110. Char:remove()
  1111. Debris:AddItem(NewCharacter,5)
  1112. end
  1113. INSTAKILL = true
  1114. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1115. local CHILDREN = workspace:GetDescendants()
  1116. for index, CHILD in pairs(CHILDREN) do
  1117. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1118. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1119. if HUM then
  1120. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1121. if TORSO then
  1122. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1123. if BRUTAL == true then
  1124. Kill(CHILD)
  1125. else
  1126. CHILD:BreakJoints()
  1127. end
  1128. end
  1129. end
  1130. end
  1131. end
  1132. end
  1133. end
  1134. function Morning_Star()
  1135. ATTACK = true
  1136. Rooted = true
  1137.  
  1138. for i=0, 0.5, 0.1 / Animation_Speed do
  1139. Swait()
  1140. 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)
  1141. 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)
  1142. end
  1143. coroutine.resume(coroutine.create(function()
  1144. local POS = Mouse.Hit.p
  1145.  
  1146. local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0))
  1147. MakeForm(SPHERE,"Ball")
  1148.  
  1149.  
  1150.  
  1151. SPHERE.CFrame = CF(POS)
  1152. CreateSound(144699494, SPHERE, 10, 0.8, false)
  1153. CreateSound(1146688617, SPHERE, 10, 0.8, false)
  1154. for i = 1, 200 do
  1155. Swait()
  1156.  
  1157.  
  1158. SPHERE.Size = SPHERE.Size + VT(2,2,2)
  1159.  
  1160. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  1161. end
  1162. for i = 1, 45 do
  1163. Swait()
  1164.  
  1165. SPHERE.Transparency = SPHERE.Transparency + 1/45
  1166.  
  1167. end
  1168.  
  1169.  
  1170. SPHERE:remove()
  1171. end))
  1172. for i=0, 0.1, 0.1 / Animation_Speed do
  1173. Swait()
  1174. 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)
  1175. end
  1176. ATTACK = false
  1177. Rooted = false
  1178. end
  1179. function KillChildren(Char)
  1180. local NewCharacter = IT("Model",Effects)
  1181. NewCharacter.Name = "Ow im ded ;-;"
  1182. for _, c in pairs(Char:GetDescendants()) do
  1183. if c:IsA("BasePart") and c.Transparency == 0 then
  1184. if c.Parent == Char then
  1185.  
  1186. end
  1187. c:BreakJoints()
  1188. c.Material = "Glass"
  1189. c.Color = C3(0.5,0,0)
  1190. c.CanCollide = true
  1191. c.Transparency = 0.3
  1192. if c:FindFirstChildOfClass("SpecialMesh") then
  1193. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1194. end
  1195. if c.Name == "Head" then
  1196. c:ClearAllChildren()
  1197. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1198. end
  1199. if c.ClassName == "MeshPart" then
  1200. c.TextureID = ""
  1201. end
  1202. if c:FindFirstChildOfClass("BodyPosition") then
  1203. c:FindFirstChildOfClass("BodyPosition"):remove()
  1204. end
  1205. if c:FindFirstChildOfClass("ParticleEmitter") then
  1206. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1207. end
  1208. c.Parent = NewCharacter
  1209. c.Name = "DeadPart"
  1210. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1211. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1212. end
  1213. end
  1214. Char:remove()
  1215. Debris:AddItem(NewCharacter,5)
  1216. end
  1217.  
  1218.  
  1219. local Decal = IT("Decal")
  1220. BODY = {}
  1221. function Teleport()
  1222. ATTACK = true
  1223. Rooted = false
  1224. for i=0, 0.5, 0.1 / Animation_Speed do
  1225. Swait()
  1226. 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)
  1227. 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)
  1228. end
  1229. for e = 1, #BODY do
  1230. if BODY[e] ~= nil then
  1231. local STUFF = BODY[e]
  1232. local PART = STUFF[1]
  1233. if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
  1234. local PRT = PART:Clone()
  1235. PRT.Anchored = true
  1236. PRT.CanCollide = false
  1237. PRT.Material = "Neon"
  1238. PRT.Color = C3(177,0,232)
  1239. PRT.Name = "WarpEffect"
  1240. PRT.Parent = Effects
  1241. PRT.CFrame = PART.CFrame
  1242. PRT:BreakJoints()
  1243. if PRT:FindFirstChildOfClass("Sound") then
  1244. PRT:FindFirstChildOfClass("Sound"):remove()
  1245. end
  1246. if PRT:FindFirstChildOfClass("Decal") then
  1247. PRT:FindFirstChildOfClass("Decal"):remove()
  1248. end
  1249. coroutine.resume(coroutine.create(function()
  1250. for i = 1, 100 do
  1251. Swait()
  1252. PRT.Transparency = PRT.Transparency + 1/100
  1253. end
  1254. PRT:remove()
  1255. end))
  1256. end
  1257. end
  1258. end
  1259. CreateSound(217767125, Torso, 10, 1)
  1260. local POS = RootPart.Orientation
  1261. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
  1262. RootPart.Orientation = POS
  1263. RootJoint.Parent = RootPart
  1264. for i=0, 0.5, 0.1 / Animation_Speed do
  1265. Swait()
  1266. 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)
  1267. 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)
  1268. end
  1269. for i=0, 0.1, 0.1 / Animation_Speed do
  1270. Swait()
  1271. 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)
  1272. end
  1273. ATTACK = false
  1274. Rooted = false
  1275. end
  1276. function TAUNT1()
  1277. ATTACK = true
  1278. Humanoid.WalkSpeed = 0
  1279. CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso,10,0.8)
  1280. wait(2.5)
  1281. for i = 0,12.5,0.08 do
  1282. Swait()
  1283. RootJoint.C0 = Clerp(RootJoint.C0, RootCF * CF(0, 0, -0.1 + 0.1 * COS(SINE / 2)) * ANGLES(RAD(-30), RAD(0), RAD(0)), 0.15)
  1284. Torso.Neck.C0 = Clerp(Torso.Neck.C0, NECKC0 * ANGLES(RAD(-30 - 2.5 * SIN(SINE / 2)), RAD(0), RAD(0)), 0.3)
  1285. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * RHCF * ANGLES(RAD(-4.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(-30)), 0.15)
  1286. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 2), 0.025 * COS(SINE / 2)) * LHCF * ANGLES(RAD(-6.5 - 7.5 * SIN(SINE / 2)), RAD(0), RAD(30)), 0.15)
  1287. end
  1288. ATTACK = false
  1289. Humanoid.WalkSpeed = 20
  1290. end
  1291. function Petrify(Foe)
  1292. local STONEMODEL = IT("Model", Effects)
  1293. local CHILDREN = Foe:GetDescendants()
  1294. for index, CHILD in pairs(CHILDREN) do
  1295. if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then
  1296. CHILD.Parent = STONEMODEL
  1297. CHILD.Material = "Neon"
  1298. CHILD.Color = C3(0, 0, 0)
  1299. if CHILD:FindFirstChildOfClass("SpecialMesh") then
  1300. local mesh = CHILD:FindFirstChildOfClass("SpecialMesh")
  1301. mesh.TextureId = ""
  1302. end
  1303. if CHILD:FindFirstChildOfClass("Decal") then
  1304. local mesh = CHILD:FindFirstChildOfClass("Decal")
  1305. mesh:remove()
  1306. end
  1307. if CHILD.ClassName == "MeshPart" then
  1308. CHILD.TextureID = ""
  1309. end
  1310. if CHILD.ClassName == "UnionOperation" then
  1311. CHILD.UsePartColor = true
  1312. end
  1313. CHILD.CanCollide = true
  1314. end
  1315. end
  1316. Debris:AddItem(STONEMODEL, 5)
  1317. end
  1318. function Voided()
  1319. ATTACK = true
  1320. Rooted = true
  1321. if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1322. local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1323. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1324. if TORSO then
  1325. local GYRO = IT("BodyGyro", RootPart)
  1326. GYRO.D = 750
  1327. GYRO.P = 2000
  1328. GYRO.MaxTorque = VT(0, 40000, 0)
  1329. CreateSound("907329669", Torso, 10, 1)
  1330. for i = 0, 1.6, 0.1 / Animation_Speed do
  1331. Swait()
  1332.  
  1333. GYRO.cframe = CF(RootPart.Position, TORSO.Position)
  1334. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.2 / Animation_Speed)
  1335. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.2 / Animation_Speed)
  1336. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(120), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-45)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1337. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1338. if ANIM == "Idle" then
  1339. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1340. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1341. elseif ANIM == "Walk" then
  1342. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1343. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1344. elseif ANIM == "Jump" or ANIM == "Fall" then
  1345. 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)
  1346. 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)
  1347. end
  1348. end
  1349. GYRO:remove()
  1350. for i = 1, 15 do
  1351.  
  1352. end
  1353. local bv = Instance.new("BodyVelocity")
  1354. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  1355. bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5
  1356. bv.Parent = TORSO
  1357. Debris:AddItem(bv, 0.05)
  1358. CreateSound("1222405264", TORSO, 10, 1)
  1359. Petrify(HUM.Parent)
  1360. for i = 0, 0.5, 0.1 / Animation_Speed do
  1361. Swait()
  1362.  
  1363. GYRO.cframe = CF(RootPart.Position, TORSO.Position)
  1364. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 2 / Animation_Speed)
  1365. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 2 / Animation_Speed)
  1366. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 22), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1367. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1368. if ANIM == "Idle" then
  1369. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1370. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1371. elseif ANIM == "Walk" then
  1372. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1373. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1374. elseif ANIM == "Jump" or ANIM == "Fall" then
  1375. 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)
  1376. 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)
  1377. end
  1378. end
  1379. end
  1380. end
  1381. ATTACK = false
  1382. Rooted = false
  1383. end
  1384.  
  1385. function TAUNT2()
  1386. CreateSound("907329044", Torso, 10, 1)
  1387. end
  1388. function TAUNT3()
  1389. CreateSound("907329293", Torso, 10, 1)
  1390. end
  1391. function TAUNT4()
  1392. CreateSound("907332525", Torso, 10, 1)
  1393. end
  1394. function TAUNT5()
  1395. CreateSound("907333406", Torso, 10, 1)
  1396. end
  1397. function TAUNT6()
  1398. CreateSound("907330011", Torso, 10, 1)
  1399. end
  1400. function TAUNT7()
  1401. CreateSound("907329532", Torso, 10, 1)
  1402. end
  1403. function TAUNT8()
  1404. CreateSound("907328384", Torso, 10, 1)
  1405. end
  1406. function TAUNT9()
  1407. CreateSound("907333294", Torso, 10, 1)
  1408. end
  1409. function TAUNT0()
  1410. CreateSound("907332856", Torso, 10, 1)
  1411. end
  1412. function TAUNT10()
  1413. CreateSound("907332670", Torso, 10, 1)
  1414. end
  1415. function TAUNT11()
  1416. CreateSound("907332235", Torso, 10, 1)
  1417. end
  1418. function TAUNT12()
  1419. CreateSound("907332040", Torso, 10, 1)
  1420. end
  1421. function TAUNT13()
  1422. CreateSound("907331575", Torso, 10, 1)
  1423. end
  1424. function TAUNT14()
  1425. CreateSound("907331038", Torso, 10, 1)
  1426. end
  1427. function TAUNT15()
  1428. CreateSound("907330447", Torso, 10, 1)
  1429. end
  1430. function TAUNT16()
  1431. CreateSound("907330198", Torso, 10, 1)
  1432. end
  1433. function TAUNT17()
  1434. CreateSound("907329669", Torso, 10, 1)
  1435. end
  1436. function TAUNT18()
  1437. CreateSound("907332997", Torso, 10, 1)
  1438. end
  1439. function TAUNT19()
  1440. CreateSound("907328689", Torso, 10, 1)
  1441. end
  1442. function TAUNT20()
  1443. CreateSound("907328516", Torso, 10, 1)
  1444. end
  1445. function TAUNT21()
  1446. CreateSound("907328262", Torso, 10, 1)
  1447. end
  1448. function TAUNT22()
  1449. CreateSound("907328147", Torso, 10, 1)
  1450. end
  1451. function TAUNT23()
  1452. CreateSound("907331307", Torso, 10, 1)
  1453. end
  1454.  
  1455. local HEADLERP = Instance.new("ManualWeld")
  1456. HEADLERP.Parent = Head
  1457. HEADLERP.Part0 = Head
  1458. HEADLERP.Part1 = Head
  1459. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1460. MseGuide = true
  1461. RunSrv = game:GetService("RunService")
  1462. RenderStepped = game:GetService("RunService").RenderStepped
  1463. OrgnC0 = Neck.C0
  1464. local movelimbs = coroutine.wrap(function()
  1465. while RunSrv.RenderStepped:wait() do
  1466. TrsoLV = Torso.CFrame.lookVector
  1467. Dist = nil
  1468. Diff = nil
  1469. if not MseGuide then
  1470. print("Failed to recognize")
  1471. else
  1472. local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, Mouse.Hit.lookVector), Workspace, false, true)
  1473. Dist = (Head.CFrame.p-Point).magnitude
  1474. Diff = Head.CFrame.Y-Point.Y
  1475. HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  1476. Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
  1477. end
  1478. end
  1479. end)
  1480. movelimbs()
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487. function MouseDown(Mouse)
  1488. if ATTACK == false then
  1489. end
  1490. end
  1491. function MouseUp(Mouse)
  1492. HOLD = false
  1493. end
  1494. function KeyDown(Key)
  1495. KEYHOLD = true
  1496. if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then
  1497. if Key == "z" and ATTACK == false then
  1498. Voided()
  1499.  
  1500. elseif Key == "b" and ATTACK == false then
  1501. Savage_Fire()
  1502.  
  1503. elseif Key == "c" and ATTACK == false then
  1504. Grave_Encounter()
  1505.  
  1506. elseif Key == "v" and ATTACK == false then
  1507. Endless_Pain()
  1508.  
  1509. elseif Key == "x" and ATTACK == false then
  1510. Morning_Star()
  1511.  
  1512. elseif Key == "q" and ATTACK == false then
  1513. Teleport()
  1514.  
  1515.  
  1516. elseif Key == "r" and ATTACK == false then
  1517. TAUNT1()
  1518. elseif Key == "u" and ATTACK == false then
  1519. TAUNT2()
  1520. elseif Key == "y" and ATTACK == false then
  1521. TAUNT3()
  1522. elseif Key == "j" and ATTACK == false then
  1523. TAUNT4()
  1524. elseif Key == "h" and ATTACK == false then
  1525. TAUNT5()
  1526. elseif Key == "p" and ATTACK == false then
  1527. TAUNT6()
  1528. elseif Key == "[" and ATTACK == false then
  1529. TAUNT7()
  1530. elseif Key == "]" and ATTACK == false then
  1531. TAUNT8()
  1532. elseif Key == "f" and ATTACK == false then
  1533. TAUNT9()
  1534. elseif Key == "=" and ATTACK == false then
  1535. TAUNT0()
  1536. elseif Key == "-" and ATTACK == false then
  1537. TAUNT10()
  1538. elseif Key == "g" and ATTACK == false then
  1539. TAUNT11()
  1540. elseif Key == "o" and ATTACK == false then
  1541. TAUNT12()
  1542. elseif Key == "i" and ATTACK == false then
  1543. TAUNT13()
  1544. elseif Key == "7" and ATTACK == false then
  1545. TAUNT14()
  1546. elseif Key == "6" and ATTACK == false then
  1547. TAUNT15()
  1548. elseif Key == "t" and ATTACK == false then
  1549. TAUNT16()
  1550. elseif Key == "4" and ATTACK == false then
  1551. TAUNT17()
  1552. elseif Key == "3" and ATTACK == false then
  1553. TAUNT18()
  1554. elseif Key == "2" and ATTACK == false then
  1555. TAUNT19()
  1556. elseif Key == "1" and ATTACK == false then
  1557. TAUNT20()
  1558. elseif Key == "e" and ATTACK == false then
  1559. TAUNT21()
  1560. elseif Key == "l" and ATTACK == false then
  1561. TAUNT22()
  1562. elseif Key == "k" and ATTACK == false then
  1563. TAUNT23()
  1564. end
  1565. end
  1566. end
  1567. function KeyUp(Key)
  1568. KEYHOLD = false
  1569. end
  1570. Mouse.Button1Down:connect(function(NEWKEY)
  1571. MouseDown(NEWKEY)
  1572.  
  1573. end)
  1574. Mouse.Button1Up:connect(function(NEWKEY)
  1575. MouseUp(NEWKEY)
  1576. end)
  1577. Mouse.KeyDown:connect(function(NEWKEY)
  1578. KeyDown(NEWKEY)
  1579. end)
  1580. Mouse.KeyUp:connect(function(NEWKEY)
  1581. KeyUp(NEWKEY)
  1582. end)
  1583. function unanchor()
  1584. if UNANCHOR == true then
  1585. g = Character:GetChildren()
  1586. for i = 1, #g do
  1587. if g[i].ClassName == "Part" then
  1588. g[i].Anchored = false
  1589. end
  1590. end
  1591. end
  1592. end
  1593. local FF = IT("ForceField", Character)
  1594. FF.Visible = false
  1595. function refit()
  1596. RootJoint.Parent = RootPart
  1597. Neck.Parent = Torso
  1598. RightShoulder.Parent = Torso
  1599. LeftShoulder.Parent = Torso
  1600. RightHip.Parent = Torso
  1601. LeftHip.Parent = Torso
  1602. RootPart.Parent = Character
  1603. LeftArm.Parent = Character
  1604. RightArm.Parent = Character
  1605. RightLeg.Parent = Character
  1606. LeftLeg.Parent = Character
  1607. Torso.Parent = Character
  1608. Head.Parent = Character
  1609. FF.Parent = Character
  1610. end
  1611.  
  1612. Humanoid.Changed:connect(function(Jump)
  1613. if Jump == "Jump" and Disable_Jump == true then
  1614. Humanoid.Jump = false
  1615. end
  1616. end)
  1617.  
  1618. sick.Parent = Character
  1619. script.Parent = WEAPONGUI
  1620. Character.Parent = workspace
  1621. Humanoid.PlatformStand = false
  1622. Humanoid.Name = "Unmaker"
  1623. Humanoid.DisplayDistanceType = "None"
  1624. Humanoid.HipHeight = 2
  1625. Head:ClearAllChildren()
  1626.  
  1627. Speed = 20
  1628. for _, c in pairs(Character:GetChildren()) do
  1629. if c.ClassName == "Part" then
  1630. c.Material = "Neon"
  1631.  
  1632.  
  1633.  
  1634. if c == Head then
  1635. if c:FindFirstChild("Dominus") == nil then
  1636. local M = CreateMesh("SpecialMesh", c, "FileMesh", "6552202", "", VT(1, 1, 1) * 1.1, VT(0, 0, 0))
  1637. M.Name = "Dominus"
  1638. end
  1639. if c:FindFirstChild("face") then
  1640. c.face:remove()
  1641. end
  1642. end
  1643. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" then
  1644. c:remove()
  1645. end
  1646. end
  1647. SIZE = 1
  1648. Humanoid.MaxHealth = "inf"
  1649. Humanoid.Health = "inf"
  1650.  
  1651. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1652. while true do
  1653. Swait()
  1654. ANIMATE.Parent = nil
  1655. IDLEANIMATION:Play()
  1656. SINE = SINE + CHANGE
  1657. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1658. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1659. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1660. local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character)
  1661. if TORSOVELOCITY < 1 then
  1662. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1663.  
  1664. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1665. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1666. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(SINE / 12), -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.15 / Animation_Speed)
  1667. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1, -0.6 - 0.15 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(25)), 0.15 / Animation_Speed)
  1668. elseif TORSOVELOCITY > 1 then
  1669. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(30 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1670.  
  1671. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1672. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1673. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1674. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1675. end
  1676.  
  1677. unanchor()
  1678. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement