SHOW:
|
|
- or go back to the newest paste.
1 | -- Synapse Decompiler | |
2 | -- Purchase Here: https://brack4712.xyz/synapse/purchase/ | |
3 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
4 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
5 | - | Player = game:GetService("Players").LocalPlayer |
5 | + | do |
6 | print("FE Compatibility code by Mokiros") | |
7 | script.Parent = Player.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | - | Mouse = Player:GetMouse() |
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,Connect=function(self,f)self.Function=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 and t.Function then | |
33 | t.Function(...) | |
34 | end | |
35 | end | |
36 | m.TrigEvent = te | |
37 | UIS.TrigEvent = te | |
38 | ||
39 | Event.OnServerEvent:Connect(function(plr,io) | |
40 | if plr~=Player then return end | |
41 | if io.isMouse then | |
42 | m.Target = io.Target | |
43 | m.Hit = io.Hit | |
44 | else | |
45 | local b = io.UserInputState == Enum.UserInputState.Begin | |
46 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
47 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
48 | end | |
49 | for _,t in pairs(CAS.Actions) do | |
50 | for _,k in pairs(t.Keys) do | |
51 | if k==io.KeyCode then | |
52 | t.Function(t.Name,io.UserInputState,io) | |
53 | end | |
54 | end | |
55 | end | |
56 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
57 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
58 | end | |
59 | end) | |
60 | Event.Parent = NLS([==[ | |
61 | local Player = game:GetService("Players").LocalPlayer | |
62 | local Event = script:WaitForChild("UserInput_Event") | |
63 | ||
64 | local UIS = game:GetService("UserInputService") | |
65 | local input = function(io,a) | |
66 | if a then return end | |
67 | --Since InputObject is a client-side instance, we create and pass table instead | |
68 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
69 | end | |
70 | UIS.InputBegan:Connect(input) | |
71 | UIS.InputEnded:Connect(input) | |
72 | ||
73 | local Mouse = Player:GetMouse() | |
74 | local h,t | |
75 | --Give the server mouse data 30 times every second, but only if the values changed | |
76 | --If player is not moving their mouse, client won't fire events | |
77 | while wait(1/30) do | |
78 | if h~=Mouse.Hit or t~=Mouse.Target then | |
79 | h,t=Mouse.Hit,Mouse.Target | |
80 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
81 | end | |
82 | end]==],Player.Character) | |
83 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
84 | end | |
85 | wait(0.2) | |
86 | Player = owner | |
87 | PlayerGui = Player.PlayerGui | |
88 | Cam = workspace.CurrentCamera | |
89 | Backpack = Player.Backpack | |
90 | Character = Player.Character | |
91 | Humanoid = Character.Humanoid | |
92 | ||
93 | RootPart = Character.HumanoidRootPart | |
94 | Torso = Character.Torso | |
95 | Head = Character.Head | |
96 | RightArm = Character["Right Arm"] | |
97 | LeftArm = Character["Left Arm"] | |
98 | RightLeg = Character["Right Leg"] | |
99 | LeftLeg = Character["Left Leg"] | |
100 | RootJoint = RootPart.RootJoint | |
101 | Neck = Torso.Neck | |
102 | RightShoulder = Torso["Right Shoulder"] | |
103 | LeftShoulder = Torso["Left Shoulder"] | |
104 | RightHip = Torso["Right Hip"] | |
105 | LeftHip = Torso["Left Hip"] | |
106 | local sick = Instance.new("Sound", Character) | |
107 | sick.SoundId = "rbxassetid://563882687" | |
108 | sick.Name = "BGM" | |
109 | sick.Looped = true | |
110 | sick.Pitch = 1 | |
111 | sick.Volume = 2 | |
112 | sick:Play() | |
113 | IT = Instance.new | |
114 | CF = CFrame.new | |
115 | VT = Vector3.new | |
116 | RAD = math.rad | |
117 | C3 = Color3.new | |
118 | UD2 = UDim2.new | |
119 | BRICKC = BrickColor.new | |
120 | ANGLES = CFrame.Angles | |
121 | EULER = CFrame.fromEulerAnglesXYZ | |
122 | COS = math.cos | |
123 | ACOS = math.acos | |
124 | SIN = math.sin | |
125 | ASIN = math.asin | |
126 | ABS = math.abs | |
127 | MRANDOM = math.random | |
128 | FLOOR = math.floor | |
129 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
130 | local NEWMESH = IT(MESH) | |
131 | if MESH == "SpecialMesh" then | |
132 | NEWMESH.MeshType = MESHTYPE | |
133 | if MESHID ~= "nil" and MESHID ~= "" then | |
134 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID | |
135 | end | |
136 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
137 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID | |
138 | end | |
139 | end | |
140 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
141 | NEWMESH.Scale = SCALE | |
142 | NEWMESH.Parent = PARENT | |
143 | return NEWMESH | |
144 | end | |
145 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
146 | local NEWPART = IT("Part") | |
147 | NEWPART.formFactor = FORMFACTOR | |
148 | NEWPART.Reflectance = REFLECTANCE | |
149 | NEWPART.Transparency = TRANSPARENCY | |
150 | NEWPART.CanCollide = false | |
151 | NEWPART.Locked = true | |
152 | NEWPART.Anchored = true | |
153 | if ANCHOR == false then | |
154 | NEWPART.Anchored = false | |
155 | end | |
156 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
157 | NEWPART.Name = NAME | |
158 | NEWPART.Size = SIZE | |
159 | NEWPART.Position = Torso.Position | |
160 | NEWPART.Material = MATERIAL | |
161 | NEWPART:BreakJoints() | |
162 | NEWPART.Parent = PARENT | |
163 | return NEWPART | |
164 | end | |
165 | Player_Size = 1 | |
166 | Animation_Speed = 3 | |
167 | Frame_Speed = 0.016666666666666666 | |
168 | local Speed = 16 | |
169 | local Effects2 = {} | |
170 | local weldBetween = function(a, b) | |
171 | local weldd = Instance.new("ManualWeld") | |
172 | weldd.Part0 = a | |
173 | weldd.Part1 = b | |
174 | weldd.C0 = CFrame.new() | |
175 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
176 | weldd.Parent = a | |
177 | return weldd | |
178 | end | |
179 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
180 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
181 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
182 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
183 | local CHANGEDEFENSE = 0 | |
184 | local CHANGEDAMAGE = 0 | |
185 | local CHANGEMOVEMENT = 0 | |
186 | local ANIM = "Idle" | |
187 | local ATTACK = false | |
188 | local EQUIPPED = false | |
189 | local HOLD = false | |
190 | local COMBO = 1 | |
191 | local Rooted = false | |
192 | local SINE = 0 | |
193 | local KEYHOLD = false | |
194 | local CHANGE = 2 / Animation_Speed | |
195 | local WALKINGANIM = false | |
196 | local WALK = 0 | |
197 | local VALUE1 = false | |
198 | local VALUE2 = false | |
199 | local ROBLOXIDLEANIMATION = IT("Animation") | |
200 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
201 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
202 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
203 | WEAPONGUI.Name = "Weapon GUI" | |
204 | local Effects = IT("Folder", Character) | |
205 | Effects.Name = "Effects" | |
206 | local ANIMATOR = Humanoid.Animator | |
207 | local ANIMATE = Character.Animate | |
208 | local ATTACKEDTAUNTS = { | |
209 | "907332040", | |
210 | "907332525", | |
211 | "907330011" | |
212 | } | |
213 | local ATTACKTAUNTS = { | |
214 | "907329893", | |
215 | "907329532", | |
216 | "907333294", | |
217 | "907332856" | |
218 | } | |
219 | local ULTTAUNTS = { | |
220 | "907332997", | |
221 | "907332670", | |
222 | "907330103" | |
223 | } | |
224 | local UNANCHOR = true | |
225 | local SKILLTEXTCOLOR = C3(1, 0, 0) | |
226 | ArtificialHB = Instance.new("BindableEvent", script) | |
227 | ArtificialHB.Name = "ArtificialHB" | |
228 | script:WaitForChild("ArtificialHB") | |
229 | frame = Frame_Speed | |
230 | tf = 0 | |
231 | allowframeloss = false | |
232 | tossremainder = false | |
233 | lastframe = tick() | |
234 | script.ArtificialHB:Fire() | |
235 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
236 | tf = tf + s | |
237 | if tf >= frame then | |
238 | if allowframeloss then | |
239 | script.ArtificialHB:Fire() | |
240 | lastframe = tick() | |
241 | else | |
242 | for i = 1, math.floor(tf / frame) do | |
243 | script.ArtificialHB:Fire() | |
244 | end | |
245 | lastframe = tick() | |
246 | end | |
247 | if tossremainder then | |
248 | tf = 0 | |
249 | else | |
250 | tf = tf - frame * math.floor(tf / frame) | |
251 | end | |
252 | end | |
253 | end) | |
254 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
255 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
256 | end | |
257 | function PositiveAngle(NUMBER) | |
258 | if NUMBER >= 0 then | |
259 | NUMBER = 0 | |
260 | end | |
261 | return NUMBER | |
262 | end | |
263 | function NegativeAngle(NUMBER) | |
264 | if NUMBER <= 0 then | |
265 | NUMBER = 0 | |
266 | end | |
267 | return NUMBER | |
268 | end | |
269 | function Swait(NUMBER) | |
270 | if NUMBER == 0 or NUMBER == nil then | |
271 | ArtificialHB.Event:wait() | |
272 | else | |
273 | for i = 1, NUMBER do | |
274 | ArtificialHB.Event:wait() | |
275 | end | |
276 | end | |
277 | end | |
278 | function QuaternionFromCFrame(cf) | |
279 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
280 | local trace = m00 + m11 + m22 | |
281 | if trace > 0 then | |
282 | local s = math.sqrt(1 + trace) | |
283 | local recip = 0.5 / s | |
284 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
285 | else | |
286 | local i = 0 | |
287 | if m00 < m11 then | |
288 | i = 1 | |
289 | end | |
290 | if m22 > (i == 0 and m00 or m11) then | |
291 | i = 2 | |
292 | end | |
293 | if i == 0 then | |
294 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
295 | local recip = 0.5 / s | |
296 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
297 | elseif i == 1 then | |
298 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
299 | local recip = 0.5 / s | |
300 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
301 | elseif i == 2 then | |
302 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
303 | local recip = 0.5 / s | |
304 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
305 | end | |
306 | end | |
307 | end | |
308 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
309 | local xs, ys, zs = x + x, y + y, z + z | |
310 | local wx, wy, wz = w * xs, w * ys, w * zs | |
311 | local xx = x * xs | |
312 | local xy = x * ys | |
313 | local xz = x * zs | |
314 | local yy = y * ys | |
315 | local yz = y * zs | |
316 | local zz = z * zs | |
317 | 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)) | |
318 | end | |
319 | function QuaternionSlerp(a, b, t) | |
320 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
321 | local startInterp, finishInterp | |
322 | if cosTheta >= 1.0E-4 then | |
323 | if 1 - cosTheta > 1.0E-4 then | |
324 | local theta = ACOS(cosTheta) | |
325 | local invSinTheta = 1 / SIN(theta) | |
326 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
327 | finishInterp = SIN(t * theta) * invSinTheta | |
328 | else | |
329 | startInterp = 1 - t | |
330 | finishInterp = t | |
331 | end | |
332 | elseif 1 + cosTheta > 1.0E-4 then | |
333 | local theta = ACOS(-cosTheta) | |
334 | local invSinTheta = 1 / SIN(theta) | |
335 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
336 | finishInterp = SIN(t * theta) * invSinTheta | |
337 | else | |
338 | startInterp = t - 1 | |
339 | finishInterp = t | |
340 | end | |
341 | 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 | |
342 | end | |
343 | function Clerp(a, b, t) | |
344 | local qa = { | |
345 | QuaternionFromCFrame(a) | |
346 | } | |
347 | local qb = { | |
348 | QuaternionFromCFrame(b) | |
349 | } | |
350 | local ax, ay, az = a.x, a.y, a.z | |
351 | local bx, by, bz = b.x, b.y, b.z | |
352 | local _t = 1 - t | |
353 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
354 | end | |
355 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
356 | local frame = IT("Frame") | |
357 | frame.BackgroundTransparency = TRANSPARENCY | |
358 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
359 | frame.Position = POSITION | |
360 | frame.Size = SIZE | |
361 | frame.BackgroundColor3 = COLOR | |
362 | frame.BorderColor3 = BORDERCOLOR | |
363 | frame.Name = NAME | |
364 | frame.Parent = PARENT | |
365 | return frame | |
366 | end | |
367 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
368 | local label = IT("TextLabel") | |
369 | label.BackgroundTransparency = 1 | |
370 | label.Size = UD2(1, 0, 1, 0) | |
371 | label.Position = UD2(0, 0, 0, 0) | |
372 | label.TextColor3 = TEXTCOLOR | |
373 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
374 | label.TextTransparency = TRANSPARENCY | |
375 | label.FontSize = TEXTFONTSIZE | |
376 | label.Font = TEXTFONT | |
377 | label.BorderSizePixel = BORDERSIZEPIXEL | |
378 | label.TextScaled = false | |
379 | label.Text = TEXT | |
380 | label.Name = NAME | |
381 | label.Parent = PARENT | |
382 | return label | |
383 | end | |
384 | function NoOutlines(PART) | |
385 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
386 | end | |
387 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
388 | local NEWWELD = IT(TYPE) | |
389 | NEWWELD.Part0 = PART0 | |
390 | NEWWELD.Part1 = PART1 | |
391 | NEWWELD.C0 = C0 | |
392 | NEWWELD.C1 = C1 | |
393 | NEWWELD.Parent = PARENT | |
394 | return NEWWELD | |
395 | end | |
396 | local S = IT("Sound") | |
397 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
398 | local NEWSOUND | |
399 | coroutine.resume(coroutine.create(function() | |
400 | NEWSOUND = S:Clone() | |
401 | NEWSOUND.Parent = PARENT | |
402 | NEWSOUND.Volume = VOLUME | |
403 | NEWSOUND.Pitch = PITCH | |
404 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
405 | Swait() | |
406 | NEWSOUND:play() | |
407 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
408 | end)) | |
409 | return NEWSOUND | |
410 | end | |
411 | function CFrameFromTopBack(at, top, back) | |
412 | local right = top:Cross(back) | |
413 | 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) | |
414 | end | |
415 | function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW) | |
416 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
417 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
418 | wave.CFrame = CFRAME | |
419 | coroutine.resume(coroutine.create(function(PART) | |
420 | for i = 1, WAIT do | |
421 | Swait() | |
422 | mesh.Scale = mesh.Scale + GROW | |
423 | mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8)) | |
424 | if DOESROT == true then | |
425 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
426 | end | |
427 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
428 | if wave.Transparency > 0.99 then | |
429 | wave:remove() | |
430 | end | |
431 | end | |
432 | end)) | |
433 | end | |
434 | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) | |
435 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
436 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0)) | |
437 | wave.CFrame = CFRAME | |
438 | coroutine.resume(coroutine.create(function(PART) | |
439 | for i = 1, WAIT do | |
440 | Swait() | |
441 | mesh.Scale = mesh.Scale + GROW | |
442 | if DOESROT == true then | |
443 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
444 | end | |
445 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
446 | if wave.Transparency > 0.99 then | |
447 | wave:remove() | |
448 | end | |
449 | end | |
450 | end)) | |
451 | end | |
452 | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) | |
453 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
454 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
455 | wave.CFrame = CFRAME | |
456 | coroutine.resume(coroutine.create(function(PART) | |
457 | for i = 1, WAIT do | |
458 | Swait() | |
459 | mesh.Scale = mesh.Scale + GROW | |
460 | wave.Transparency = wave.Transparency + 1 / WAIT | |
461 | if wave.Transparency > 0.99 then | |
462 | wave:remove() | |
463 | end | |
464 | end | |
465 | end)) | |
466 | end | |
467 | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
468 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
469 | local mesh | |
470 | if KIND == "Base" then | |
471 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) | |
472 | elseif KIND == "Thin" then | |
473 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
474 | elseif KIND == "Round" then | |
475 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
476 | end | |
477 | wave.CFrame = CFRAME | |
478 | coroutine.resume(coroutine.create(function(PART) | |
479 | for i = 1, WAIT do | |
480 | Swait() | |
481 | mesh.Scale = mesh.Scale + GROW / 10 | |
482 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
483 | if wave.Transparency > 0.99 then | |
484 | wave:remove() | |
485 | end | |
486 | end | |
487 | end)) | |
488 | end | |
489 | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) | |
490 | for _, c in pairs(PARENT:GetChildren()) do | |
491 | if c.ClassName == "Model" then | |
492 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then | |
493 | local HUMANOID = c:FindFirstChildOfClass("Humanoid") | |
494 | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") | |
495 | if DIST > (TORSO.Position - FROM).Magnitude then | |
496 | table.insert(TABLE, c) | |
497 | end | |
498 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
499 | elseif c.ClassName == "Folder" then | |
500 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
501 | end | |
502 | end | |
503 | end | |
504 | end | |
505 | function MakeForm(PART, TYPE) | |
506 | if TYPE == "Cyl" then | |
507 | local MSH = IT("CylinderMesh", PART) | |
508 | elseif TYPE == "Ball" then | |
509 | local MSH = IT("SpecialMesh", PART) | |
510 | MSH.MeshType = "Sphere" | |
511 | elseif TYPE == "Wedge" then | |
512 | local MSH = IT("SpecialMesh", PART) | |
513 | MSH.MeshType = "Wedge" | |
514 | end | |
515 | end | |
516 | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) | |
517 | if DoesCourontine == false then | |
518 | local Direction = CF(Part.Position, ToLocation) | |
519 | local Distance = (Part.Position - ToLocation).magnitude | |
520 | for i = 1, AmountOfTime do | |
521 | Swait() | |
522 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
523 | Direction = Part.CFrame | |
524 | end | |
525 | Part:remove() | |
526 | elseif DoesCourontine == true then | |
527 | coroutine.resume(coroutine.create(function() | |
528 | local Direction = CF(Part.Position, ToLocation) | |
529 | local Distance = (Part.Position - ToLocation).magnitude | |
530 | for i = 1, AmountOfTime do | |
531 | Swait() | |
532 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
533 | Direction = Part.CFrame | |
534 | end | |
535 | Part:remove() | |
536 | end)) | |
537 | end | |
538 | end | |
539 | function CheckTableForString(Table, String) | |
540 | for i, v in pairs(Table) do | |
541 | if string.find(string.lower(String), string.lower(v)) then | |
542 | return true | |
543 | end | |
544 | end | |
545 | return false | |
546 | end | |
547 | function CheckIntangible(Hit) | |
548 | local ProjectileNames = { | |
549 | "Water", | |
550 | "Arrow", | |
551 | "Projectile", | |
552 | "Effect", | |
553 | "Rail", | |
554 | "Lightning", | |
555 | "Bullet" | |
556 | } | |
557 | if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then | |
558 | return true | |
559 | end | |
560 | return false | |
561 | end | |
562 | Debris = game:GetService("Debris") | |
563 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
564 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
565 | local Ignore = type(Ignore) == "table" and Ignore or {Ignore} | |
566 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
567 | if RayHit and CheckIntangible(RayHit) then | |
568 | if DelayIfHit then | |
569 | wait() | |
570 | end | |
571 | RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit) | |
572 | end | |
573 | return RayHit, RayPos, RayNormal | |
574 | end | |
575 | function turnto(position) | |
576 | RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0) | |
577 | end | |
578 | local naeeym2 = Instance.new("BillboardGui", Character) | |
579 | naeeym2.AlwaysOnTop = true | |
580 | naeeym2.Size = UDim2.new(15, 35, 2, 15) | |
581 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
582 | naeeym2.Adornee = Character.Head | |
583 | naeeym2.Name = "Name" | |
584 | naeeym2.PlayerToHideFrom = Player | |
585 | local tecks2 = Instance.new("TextLabel", naeeym2) | |
586 | tecks2.BackgroundTransparency = 1 | |
587 | tecks2.TextScaled = true | |
588 | tecks2.BorderSizePixel = 0 | |
589 | tecks2.Text = "Deadly Dark Dominus, the Ultimate Dominus" | |
590 | tecks2.Font = "Antique" | |
591 | tecks2.TextSize = 30 | |
592 | tecks2.TextStrokeTransparency = 0 | |
593 | tecks2.TextColor3 = Color3.new(1, 0, 0) | |
594 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
595 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
596 | tecks2.Parent = naeeym2 | |
597 | Humanoid.Died:connect(function() | |
598 | Humanoid.Parent = nil | |
599 | Humanoid.MaxHealth = "inf" | |
600 | Humanoid.Health = "inf" | |
601 | refit() | |
602 | Humanoid.Parent = Character | |
603 | CreateSound(ATTACKEDTAUNTS[MRANDOM(1, #ATTACKEDTAUNTS)], Head, 10, 0.9) | |
604 | for i = 1, 5 do | |
605 | Slice("Round", 0.6, 35, CF(Torso.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(0.1, 0, 0.1)) | |
606 | end | |
607 | killnearest(Torso.Position, 25, 180) | |
608 | end) | |
609 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame") | |
610 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame") | |
611 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame") | |
612 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 4 Frame") | |
613 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 5 Frame") | |
614 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Orbital Devastor", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 1") | |
615 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Savage Fire", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 2") | |
616 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Grave Encounter", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 3") | |
617 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Endless Pain", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 4") | |
618 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Absoluteum", SKILLTEXTCOLOR, 12, "Antique", 0, 2, 0.5, "Text 5") | |
619 | local SKILLEFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.2, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill Warp Frame") | |
620 | local SKILLETEXT = CreateLabel(SKILLEFRAME, "[Q] Monarch Hop", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0, "Text Warp") | |
621 | function killnearest(position, range, maxstrength) | |
622 | for i, v in ipairs(workspace:GetChildren()) do | |
623 | local body = v:GetChildren() | |
624 | for part = 1, #body do | |
625 | if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then | |
626 | if v.ClassName == "Model" then | |
627 | v:BreakJoints() | |
628 | end | |
629 | local bv = Instance.new("BodyVelocity") | |
630 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
631 | bv.velocity = CF(position, body[part].Position).lookVector * maxstrength | |
632 | bv.Parent = body[part] | |
633 | Debris:AddItem(bv, 0.2) | |
634 | end | |
635 | end | |
636 | if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then | |
637 | v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength | |
638 | end | |
639 | end | |
640 | end | |
641 | function Transparency(TRANS) | |
642 | tecks2.TextTransparency = TRANS | |
643 | tecks2.TextStrokeTransparency = TRANS | |
644 | for _, c in pairs(Character:GetChildren()) do | |
645 | if c.ClassName == "Part" and c ~= RootPart then | |
646 | c.Transparency = TRANS | |
647 | if c:FindFirstChildOfClass("Decal") then | |
648 | c:FindFirstChildOfClass("Decal").Transparency = TRANS | |
649 | end | |
650 | elseif c.ClassName == "Accessory" then | |
651 | c.Handle.Transparency = TRANS | |
652 | elseif c.ClassName == "Model" then | |
653 | for _, q in pairs(c:GetChildren()) do | |
654 | if q.ClassName == "Part" then | |
655 | q.Transparency = TRANS | |
656 | if q:FindFirstChildOfClass("Decal") then | |
657 | q:FindFirstChildOfClass("Decal").Transparency = TRANS | |
658 | end | |
659 | end | |
660 | end | |
661 | end | |
662 | end | |
663 | end | |
664 | function Orbital_Devastor() | |
665 | local HITBODIES = {} | |
666 | local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Pearl", "CenterPart", VT(0, 0, 0)) | |
667 | local HITFLOOR, ECH, NORMAL = Raycast(Mouse.Hit.p + VT(0, 2, 0), CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0)).lookVector, 10000000, Character) | |
668 | CENTER.CFrame = CF(ECH) | |
669 | local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Laser01", VT(25, 99999, 25)) | |
670 | MakeForm(RAY, "Cyl") | |
671 | local RAY2 = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Laser01", VT(28, 99999, 28)) | |
672 | MakeForm(RAY2, "Cyl") | |
673 | RAY.CFrame = CF(ECH) | |
674 | RAY2.CFrame = CF(ECH) | |
675 | CreateSound("1368573150", CENTER, 10, 0.8) | |
676 | for i = 1, 100 do | |
677 | Swait() | |
678 | RAY.Transparency = RAY.Transparency - 0.01 | |
679 | RAY.Size = RAY.Size - VT(0.25, 0, 0.25) | |
680 | RAY2.Transparency = RAY2.Transparency - 0.012 | |
681 | RAY2.Size = RAY2.Size - VT(0.28, 0, 0.28) | |
682 | end | |
683 | for i = 1, 5 do | |
684 | CreateRing(VT(i / 10, i / 10, 0), false, 0, 25, CF(ECH) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(MRANDOM(0, 10) / 10, 0, 0), VT(i / 5, i / 5, 0)) | |
685 | end | |
686 | RAY:remove() | |
687 | RAY2:remove() | |
688 | CreateSound("1368637781", CENTER, 10, 0.8) | |
689 | MagicSphere(VT(0, 0, 0), 15, CF(ECH), "Really red", VT(8, 8, 8)) | |
690 | MagicSphere(VT(1, 1, 1), 25, CF(ECH), "Really black", VT(8, 8, 8)) | |
691 | AddChildrenToTable(ECH, workspace, 80, HITBODIES) | |
692 | Debris:AddItem(CENTER, 5) | |
693 | CreateSound("414517163", CENTER, 10, 0.8) | |
694 | for i = 1, 5 do | |
695 | Slice("Round", 0, 35, CF(ECH) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(0.5, 0, 0.5)) | |
696 | end | |
697 | for e = 1, #HITBODIES do | |
698 | if HITBODIES[e] ~= nil then | |
699 | local BOD = HITBODIES[e] | |
700 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
701 | if TORS then | |
702 | BOD:BreakJoints() | |
703 | for _, c in pairs(BOD:GetChildren()) do | |
704 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
705 | local bv = Instance.new("BodyVelocity") | |
706 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
707 | bv.velocity = CF(ECH, c.Position).lookVector * 250 | |
708 | bv.Parent = c | |
709 | Debris:AddItem(bv, 0.2) | |
710 | end | |
711 | end | |
712 | end | |
713 | end | |
714 | end | |
715 | end | |
716 | function Savage_Fire() | |
717 | ATTACK = true | |
718 | Rooted = true | |
719 | VALUE1 = true | |
720 | local HITBODIES = {} | |
721 | local VISUAL = CreatePart(3, Effects, "Glass", 0, 0.99, "Maroon", "Vibrations", VT(4, 4, 4)) | |
722 | MakeForm(VISUAL, "Ball") | |
723 | VISUAL.CFrame = RootPart.CFrame | |
724 | for i = 0, 1.2, 0.1 / Animation_Speed do | |
725 | Swait() | |
726 | VISUAL.Size = VISUAL.Size + VT(0.1, 0.1, 0.1) | |
727 | VISUAL.Transparency = VISUAL.Transparency - 0.005 | |
728 | if MRANDOM(1, 2) == 1 then | |
729 | do | |
730 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Magic", VT(1, 1, 1) * MRANDOM(2, 35) / 10) | |
731 | SPHERE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) | |
732 | MakeForm(SPHERE, "Ball") | |
733 | coroutine.resume(coroutine.create(function() | |
734 | for i = 1, 100 do | |
735 | Swait() | |
736 | SPHERE.CFrame = SPHERE.CFrame * CF(0, 0.3, 0) | |
737 | SPHERE.Transparency = i / 100 | |
738 | end | |
739 | SPHERE:remove() | |
740 | end)) | |
741 | end | |
742 | end | |
743 | 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) | |
744 | 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) | |
745 | 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) | |
746 | 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) | |
747 | 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) | |
748 | 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) | |
749 | end | |
750 | Character.Archivable = true | |
751 | local CLONE = Character:Clone() | |
752 | CLONE.BGM:remove() | |
753 | CLONE.Effects:remove() | |
754 | CLONE.Parent = Effects | |
755 | local X = 1 - VISUAL.Transparency | |
756 | local ORIGINPOS = RootPart.Position | |
757 | Transparency(1) | |
758 | VALUE2 = true | |
759 | RootPart.CFrame = CF(Mouse.Hit.p + VT(0, 5, 0), ORIGINPOS) | |
760 | for i = 1, 50 do | |
761 | Swait() | |
762 | VISUAL.Transparency = VISUAL.Transparency + X / 50 | |
763 | VISUAL.Size = VISUAL.Size + VT(0.05, 0.05, 0.05) | |
764 | 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) | |
765 | 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) | |
766 | 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) | |
767 | 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) | |
768 | 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) | |
769 | 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) | |
770 | end | |
771 | VISUAL:remove() | |
772 | coroutine.resume(coroutine.create(function() | |
773 | local PITS = {} | |
774 | local HITFLOOR, HITPOS, NORMAL = Raycast(CLONE.Torso.Position, CF(CLONE.Torso.Position, CLONE.Torso.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character) | |
775 | MagicSphere(VT(0, 0, 0), 25, CF(CLONE.Torso.Position), "Really red", VT(2, 2, 2)) | |
776 | MagicSphere(VT(1, 1, 1), 55, CF(CLONE.Torso.Position), "Really black", VT(2, 2, 2)) | |
777 | if HITFLOOR ~= nil then | |
778 | local POS = CLONE.Torso.Position | |
779 | CLONE:remove() | |
780 | for i = 1, 150 do | |
781 | Swait() | |
782 | local PEWSOUND = { | |
783 | "907527750", | |
784 | "907527912", | |
785 | "907528019", | |
786 | "907530553" | |
787 | } | |
788 | AddChildrenToTable(HITPOS, workspace, i, HITBODIES) | |
789 | if MRANDOM(1, 2) == 1 then | |
790 | local ICICLE = IT("CornerWedgePart", Effects) | |
791 | ICICLE.Locked = true | |
792 | ICICLE.CanCollide = false | |
793 | ICICLE.Anchored = true | |
794 | ICICLE.BrickColor = BRICKC("Really red") | |
795 | ICICLE.Material = "Neon" | |
796 | ICICLE.Size = VT(i / 10, i / 2, i / 10) | |
797 | CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ICICLE, 10, 0.8) | |
798 | 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))) | |
799 | table.insert(PITS, ICICLE) | |
800 | for e = 1, #HITBODIES do | |
801 | if HITBODIES[e] ~= nil then | |
802 | local BOD = HITBODIES[e] | |
803 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
804 | if TORS then | |
805 | BOD:BreakJoints() | |
806 | for _, c in pairs(BOD:GetChildren()) do | |
807 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
808 | local bv = Instance.new("BodyVelocity") | |
809 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
810 | bv.velocity = CF(POS, c.Position).lookVector * 250 | |
811 | bv.Parent = c | |
812 | Debris:AddItem(bv, 0.2) | |
813 | end | |
814 | end | |
815 | end | |
816 | end | |
817 | end | |
818 | HITBODIES = {} | |
819 | end | |
820 | end | |
821 | coroutine.resume(coroutine.create(function() | |
822 | for i = 1, 10 do | |
823 | Swait() | |
824 | for e = 1, #PITS do | |
825 | if PITS[e] ~= nil then | |
826 | local E = PITS[e] | |
827 | E.Transparency = E.Transparency + 0.1 | |
828 | end | |
829 | end | |
830 | end | |
831 | for e = 1, #PITS do | |
832 | if PITS[e] ~= nil then | |
833 | local E = PITS[e] | |
834 | E:remove() | |
835 | end | |
836 | end | |
837 | end)) | |
838 | end | |
839 | end)) | |
840 | VALUE2 = false | |
841 | VALUE1 = false | |
842 | ATTACK = false | |
843 | Rooted = false | |
844 | for i = 1, 10 do | |
845 | Swait() | |
846 | Transparency(1 - i / 10) | |
847 | end | |
848 | end | |
849 | function Grave_Encounter() | |
850 | local HITBODIES = {} | |
851 | local PEWSOUND = { | |
852 | "907527750", | |
853 | "907527912", | |
854 | "907528019", | |
855 | "907530553" | |
856 | } | |
857 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
858 | if HITFLOOR ~= nil then | |
859 | CreateSound(ATTACKTAUNTS[MRANDOM(1, #ATTACKTAUNTS)], Head, 10, 0.9) | |
860 | ATTACK = true | |
861 | Rooted = false | |
862 | local GYRO = IT("BodyGyro", RootPart) | |
863 | GYRO.D = 100 | |
864 | GYRO.P = 2000 | |
865 | GYRO.MaxTorque = VT(0, 4000000, 0) | |
866 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
867 | for i = 0, 3.5, 0.1 / Animation_Speed do | |
868 | Swait() | |
869 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
870 | Slice("Thin", 1, 5, RightArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(1, 0, 0), VT(-0.01, 0, -0.01)) | |
871 | 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) | |
872 | 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) | |
873 | 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) | |
874 | 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) | |
875 | 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) | |
876 | 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) | |
877 | end | |
878 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
879 | Swait() | |
880 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
881 | Slice("Thin", 1, 5, RightArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(1, 0, 0), VT(-0.01, 0, -0.01)) | |
882 | 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) | |
883 | 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) | |
884 | 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) | |
885 | 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) | |
886 | 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) | |
887 | 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) | |
888 | end | |
889 | Rooted = true | |
890 | GYRO:remove() | |
891 | coroutine.resume(coroutine.create(function() | |
892 | local PITS = {} | |
893 | local FRAME = RootPart.CFrame | |
894 | for i = 1, 200 do | |
895 | Swait() | |
896 | for e = 1, #HITBODIES do | |
897 | if HITBODIES[e] ~= nil then | |
898 | local BOD = HITBODIES[e] | |
899 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
900 | if TORS then | |
901 | BOD:BreakJoints() | |
902 | table.remove(HITBODIES, e) | |
903 | end | |
904 | end | |
905 | end | |
906 | local GLITCH = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Puddle", VT(2 + i / 2, 0, 2 + i / 2)) | |
907 | MakeForm(GLITCH, "Cyl") | |
908 | GLITCH.CFrame = FRAME * CF(MRANDOM(-5, 5), 0, 5 - i * 3) | |
909 | local HITFLOOR, HITPOS, NORMAL = Raycast(GLITCH.Position, CF(GLITCH.Position, GLITCH.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character) | |
910 | if HITFLOOR ~= nil then | |
911 | table.insert(PITS, GLITCH) | |
912 | GLITCH.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
913 | AddChildrenToTable(HITPOS, workspace, i / 2, HITBODIES) | |
914 | if MRANDOM(1, 2) == 1 then | |
915 | local ICICLE = IT("CornerWedgePart", Effects) | |
916 | ICICLE.Locked = true | |
917 | ICICLE.CanCollide = false | |
918 | ICICLE.Anchored = true | |
919 | ICICLE.BrickColor = BRICKC("Really red") | |
920 | ICICLE.Material = "Neon" | |
921 | ICICLE.Size = VT(i / 10, i / 2, i / 10) | |
922 | CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ICICLE, 10, 0.8) | |
923 | 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))) | |
924 | table.insert(PITS, ICICLE) | |
925 | end | |
926 | else | |
927 | GLITCH:remove() | |
928 | break | |
929 | end | |
930 | end | |
931 | coroutine.resume(coroutine.create(function() | |
932 | for i = 1, 10 do | |
933 | Swait() | |
934 | for e = 1, #PITS do | |
935 | if PITS[e] ~= nil then | |
936 | local E = PITS[e] | |
937 | E.Transparency = E.Transparency + 0.1 | |
938 | end | |
939 | end | |
940 | end | |
941 | for e = 1, #PITS do | |
942 | if PITS[e] ~= nil then | |
943 | local E = PITS[e] | |
944 | E:remove() | |
945 | end | |
946 | end | |
947 | end)) | |
948 | end)) | |
949 | for i = 0, 1, 0.1 / Animation_Speed do | |
950 | Swait() | |
951 | 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) | |
952 | 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) | |
953 | 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) | |
954 | 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) | |
955 | 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) | |
956 | 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) | |
957 | end | |
958 | ATTACK = false | |
959 | Rooted = false | |
960 | end | |
961 | end | |
962 | function Endless_Pain() | |
963 | local HITBODIES = {} | |
964 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
965 | if HITFLOOR ~= nil then | |
966 | CreateSound("463598785", RootPart, 10, 0.8) | |
967 | ATTACK = true | |
968 | Rooted = true | |
969 | VALUE1 = true | |
970 | for i = 1, 500 do | |
971 | Swait() | |
972 | AddChildrenToTable(HITPOS, workspace, i / 3, HITBODIES) | |
973 | Slice("Round", 0.5 + i / 50, 35, CF(HITPOS + VT(0, 0.1, 0), HITPOS + VT(0, 0.1, 0) + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(0.001, 0, 0.001)) | |
974 | Slice("Round", 0.5 + i / 50, 45, CF(HITPOS + VT(0, 0.1, 0), HITPOS + VT(0, 0.1, 0) + NORMAL) * ANGLES(RAD(90), RAD(MRANDOM(-180, 180)), RAD(0)), "Really red", VT(0, 0, 0)) | |
975 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
976 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
977 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-40), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
978 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-40), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
979 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
980 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
981 | for e = 1, #HITBODIES do | |
982 | if HITBODIES[e] ~= nil then | |
983 | local BOD = HITBODIES[e] | |
984 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
985 | if TORS and TORS:FindFirstChild("BV") == nil then | |
986 | local bv = Instance.new("BodyVelocity") | |
987 | bv.Name = "BV" | |
988 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
989 | bv.velocity = CF(TORS.Position, TORS.Position + VT(0, 1, 0)).lookVector * 20 | |
990 | bv.Parent = TORS | |
991 | Debris:AddItem(bv, 0.1) | |
992 | end | |
993 | end | |
994 | end | |
995 | end | |
996 | coroutine.resume(coroutine.create(function() | |
997 | for e = 1, #HITBODIES do | |
998 | Swait() | |
999 | if HITBODIES[e] ~= nil then | |
1000 | local BOD = HITBODIES[e] | |
1001 | for i = 1, #HITBODIES do | |
1002 | if HITBODIES[i] == BOD and i ~= e then | |
1003 | table.remove(HITBODIES, i) | |
1004 | end | |
1005 | end | |
1006 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
1007 | if TORS then | |
1008 | TORS.Anchored = false | |
1009 | CreateSound("92597369", TORS, 10, 0.8) | |
1010 | Slice("Thin", 1, 35, CF(TORS.Position, HITPOS) * ANGLES(RAD(0), RAD(-90), RAD(0)), "Really red", VT(0.01, 0, 0.01)) | |
1011 | BOD:BreakJoints() | |
1012 | for _, c in pairs(BOD:GetChildren()) do | |
1013 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1014 | local bv = Instance.new("BodyVelocity") | |
1015 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1016 | bv.velocity = CF(HITPOS, c.Position).lookVector * 250 | |
1017 | bv.Parent = c | |
1018 | Debris:AddItem(bv, 0.2) | |
1019 | end | |
1020 | end | |
1021 | end | |
1022 | end | |
1023 | end | |
1024 | end)) | |
1025 | VALUE1 = false | |
1026 | ATTACK = false | |
1027 | Rooted = false | |
1028 | end | |
1029 | end | |
1030 | function Absoluteum() | |
1031 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
1032 | if HITFLOOR ~= nil then | |
1033 | do | |
1034 | local HITBODIES = {} | |
1035 | ATTACK = true | |
1036 | Rooted = true | |
1037 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "ABSOLUTEUM", VT(0, 0, 0)) | |
1038 | MakeForm(ABSOLUTE, "Ball") | |
1039 | CreateSound("416200578", RootPart, 10, 1) | |
1040 | for i = 0, 8, 0.1 / Animation_Speed do | |
1041 | Swait() | |
1042 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2, 0.2, 0.2) | |
1043 | ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0) | |
1044 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
1045 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "ABSOLUTEUM", VT(2, 2, 2)) | |
1046 | MakeForm(CHARGE, "Ball") | |
1047 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) | |
1048 | FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true) | |
1049 | 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) | |
1050 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1051 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1052 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1053 | 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) | |
1054 | 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) | |
1055 | end | |
1056 | CreateSound(ULTTAUNTS[MRANDOM(1, #ULTTAUNTS)], Head, 10, 0.9) | |
1057 | CreateSound("160772554", ABSOLUTE, 10, MRANDOM(5, 7) / 10) | |
1058 | for i = 1, 45 do | |
1059 | Swait() | |
1060 | 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) | |
1061 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1062 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1063 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1064 | 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) | |
1065 | 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) | |
1066 | end | |
1067 | coroutine.resume(coroutine.create(function() | |
1068 | local IMPACT = false | |
1069 | local BULLET = ABSOLUTE | |
1070 | MakeForm(BULLET, "Ball") | |
1071 | BULLET.CFrame = CF(BULLET.Position, Mouse.Hit.p) | |
1072 | for i = 1, 500 do | |
1073 | Swait() | |
1074 | BULLET.CFrame = BULLET.CFrame * CF(0, 0, -2) | |
1075 | local HIT = Raycast(BULLET.Position, BULLET.CFrame.lookVector, BULLET.Size.X / 2, Character) | |
1076 | MagicSphere(VT(10, 10, 10), 55, CF(BULLET.CFrame * CF(MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5)).p), "Really red", VT(-10, -10, -10) / 55) | |
1077 | if HIT ~= nil then | |
1078 | IMPACT = true | |
1079 | break | |
1080 | end | |
1081 | end | |
1082 | if IMPACT == false then | |
1083 | for i = 1, 40 do | |
1084 | Swait() | |
1085 | BULLET.Size = BULLET.Size * 0.9 | |
1086 | end | |
1087 | BULLET:remove() | |
1088 | else | |
1089 | CreateSound("1127492102", BULLET, 10, MRANDOM(8, 13) / 10) | |
1090 | for i = 1, 175 do | |
1091 | Swait() | |
1092 | BULLET.Size = BULLET.Size * 0.99 | |
1093 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 85) | |
1094 | end | |
1095 | CreateSound("438666001", BULLET, 10, 3) | |
1096 | Swait(35) | |
1097 | BULLET.Transparency = 1 | |
1098 | for i = 1, 20 do | |
1099 | for e = 1, 5 do | |
1100 | MagicSphere(VT(0.2, 0.2, 0.2), 50, CF(BULLET.CFrame * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, BULLET.Position), "Really black", VT(1, 1, i * 4), 0) | |
1101 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 3) | |
1102 | end | |
1103 | AddChildrenToTable(BULLET.Position, workspace, i * 25, HITBODIES) | |
1104 | CreateSound("178452241", BULLET, 10, MRANDOM(8, 13) / 10) | |
1105 | CreateSound("178452243", BULLET, 10, MRANDOM(8, 13) / 10) | |
1106 | MagicSphere(BULLET.Size, 35, BULLET.CFrame, C3(MRANDOM(0, 10) / 10, 0, 0), VT(i, i, i) * 2) | |
1107 | Swait(5) | |
1108 | for e = 1, #HITBODIES do | |
1109 | if HITBODIES[e] ~= nil then | |
1110 | local BOD = HITBODIES[e] | |
1111 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
1112 | if TORS then | |
1113 | BOD:BreakJoints() | |
1114 | for _, c in pairs(BOD:GetChildren()) do | |
1115 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1116 | local bv = Instance.new("BodyVelocity") | |
1117 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1118 | bv.velocity = CF(BULLET.Position, c.Position).lookVector * 250 | |
1119 | bv.Parent = c | |
1120 | Debris:AddItem(bv, 0.2) | |
1121 | end | |
1122 | end | |
1123 | end | |
1124 | end | |
1125 | end | |
1126 | CreateWave(VT(0, 2, 0), 75, CF(BULLET.Position), true, -15, "Really red", VT(i, 0, i) * 2) | |
1127 | end | |
1128 | MagicSphere(BULLET.Size, 100, BULLET.CFrame, C3(1, 0, 0), VT(12, 12, 12)) | |
1129 | Debris:AddItem(BULLET, 10) | |
1130 | end | |
1131 | end)) | |
1132 | ATTACK = false | |
1133 | Rooted = false | |
1134 | end | |
1135 | end | |
1136 | end | |
1137 | local Decal = IT("Decal") | |
1138 | function Unwilling_Hop() | |
1139 | ATTACK = true | |
1140 | Rooted = false | |
1141 | local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0)) | |
1142 | O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1143 | local decal = Decal:Clone() | |
1144 | decal.Parent = O1 | |
1145 | decal.Face = "Top" | |
1146 | decal.Texture = "http://www.roblox.com/asset/?id=1346259742" | |
1147 | local decal2 = Decal:Clone() | |
1148 | decal2.Parent = O1 | |
1149 | decal2.Face = "Bottom" | |
1150 | decal2.Texture = "http://www.roblox.com/asset/?id=1346259742" | |
1151 | local O2 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0)) | |
1152 | local POS = VT(RootPart.Position.X, Mouse.Hit.p.Y + 6, RootPart.Position.Z) | |
1153 | O2.CFrame = CF(Mouse.Hit.p + VT(0, 6, 0), POS) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1154 | local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0)) | |
1155 | ROOT.CFrame = CF(O2.Position, RootPart.Position) | |
1156 | local decal = Decal:Clone() | |
1157 | decal.Parent = O2 | |
1158 | decal.Face = "Top" | |
1159 | decal.Texture = "http://www.roblox.com/asset/?id=1346259742" | |
1160 | local decal2 = Decal:Clone() | |
1161 | decal2.Parent = O2 | |
1162 | decal2.Face = "Bottom" | |
1163 | decal2.Texture = "http://www.roblox.com/asset/?id=1346259742" | |
1164 | CreateSound("1127492102", O1, 10, 0.7) | |
1165 | CreateSound("1127492102", O2, 10, 0.7) | |
1166 | for i = 1, 75 do | |
1167 | Swait() | |
1168 | O1.Size = O1.Size + VT(0.12, 0, 0.12) | |
1169 | O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(i), RAD(0)) | |
1170 | O2.Size = O2.Size + VT(0.12, 0, 0.12) | |
1171 | O2.CFrame = O2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) | |
1172 | 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) | |
1173 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1174 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1175 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1176 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1177 | 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) | |
1178 | end | |
1179 | Rooted = true | |
1180 | UNANCHOR = false | |
1181 | RootPart.Anchored = true | |
1182 | VALUE1 = true | |
1183 | for i = 1, 15 do | |
1184 | Transparency(i / 15) | |
1185 | Swait() | |
1186 | RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.13) | |
1187 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1188 | 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) | |
1189 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1190 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1191 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1192 | 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) | |
1193 | end | |
1194 | RootPart.CFrame = ROOT.CFrame | |
1195 | ROOT:remove() | |
1196 | for i = 1, 15 do | |
1197 | Transparency(1 - i / 15) | |
1198 | Swait() | |
1199 | RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.5) | |
1200 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1201 | 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) | |
1202 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1203 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1204 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1205 | 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) | |
1206 | end | |
1207 | VALUE1 = false | |
1208 | coroutine.resume(coroutine.create(function() | |
1209 | for i = 1, 75 do | |
1210 | Swait() | |
1211 | O1.Size = O1.Size - VT(0.12, 0, 0.12) | |
1212 | O1.CFrame = O1.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) | |
1213 | O2.Size = O2.Size - VT(0.12, 0, 0.12) | |
1214 | O2.CFrame = O2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) | |
1215 | end | |
1216 | O1:remove() | |
1217 | O2:remove() | |
1218 | end)) | |
1219 | UNANCHOR = true | |
1220 | RootPart.Anchored = false | |
1221 | ATTACK = false | |
1222 | Rooted = false | |
1223 | end | |
1224 | function Taunt() | |
1225 | ATTACK = true | |
1226 | Rooted = true | |
1227 | local ROAR = CreateSound("907329293", Head, 10, 0.9) | |
1228 | Swait() | |
1229 | repeat | |
1230 | Swait() | |
1231 | ROAR.Parent = Head | |
1232 | 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(0)), 1 / Animation_Speed) | |
1233 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1234 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * 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) | |
1235 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * 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) | |
1236 | 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) | |
1237 | 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) | |
1238 | until ROAR.Playing == false | |
1239 | ATTACK = false | |
1240 | Rooted = false | |
1241 | end | |
1242 | function Roar() | |
1243 | ATTACK = true | |
1244 | Rooted = true | |
1245 | local ROAR = CreateSound("544159394", Head, 10, 0.8) | |
1246 | Swait() | |
1247 | repeat | |
1248 | Swait() | |
1249 | ROAR.Parent = Head | |
1250 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1251 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1252 | 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(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1253 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1254 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1255 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1256 | until ROAR.Playing == false | |
1257 | ATTACK = false | |
1258 | Rooted = false | |
1259 | end | |
1260 | function MouseDown(Mouse) | |
1261 | if ATTACK == false then | |
1262 | end | |
1263 | end | |
1264 | function MouseUp(Mouse) | |
1265 | HOLD = false | |
1266 | end | |
1267 | function KeyDown(Key) | |
1268 | KEYHOLD = true | |
1269 | if Key == "z" and ATTACK == false then | |
1270 | Orbital_Devastor() | |
1271 | end | |
1272 | if Key == "b" and ATTACK == false then | |
1273 | Savage_Fire() | |
1274 | end | |
1275 | if Key == "c" and ATTACK == false then | |
1276 | Grave_Encounter() | |
1277 | end | |
1278 | if Key == "v" and ATTACK == false then | |
1279 | Endless_Pain() | |
1280 | end | |
1281 | if Key == "x" and ATTACK == false then | |
1282 | Absoluteum() | |
1283 | end | |
1284 | if Key == "q" and ATTACK == false then | |
1285 | Unwilling_Hop() | |
1286 | end | |
1287 | if Key == "t" and ATTACK == false then | |
1288 | Taunt() | |
1289 | end | |
1290 | if Key == "9" and ATTACK == false then | |
1291 | Roar() | |
1292 | end | |
1293 | end | |
1294 | function KeyUp(Key) | |
1295 | KEYHOLD = false | |
1296 | end | |
1297 | Mouse.Button1Down:connect(function(NEWKEY) | |
1298 | MouseDown(NEWKEY) | |
1299 | end) | |
1300 | Mouse.Button1Up:connect(function(NEWKEY) | |
1301 | MouseUp(NEWKEY) | |
1302 | end) | |
1303 | Mouse.KeyDown:connect(function(NEWKEY) | |
1304 | KeyDown(NEWKEY) | |
1305 | end) | |
1306 | Mouse.KeyUp:connect(function(NEWKEY) | |
1307 | KeyUp(NEWKEY) | |
1308 | end) | |
1309 | function unanchor() | |
1310 | if UNANCHOR == true then | |
1311 | g = Character:GetChildren() | |
1312 | for i = 1, #g do | |
1313 | if g[i].ClassName == "Part" then | |
1314 | g[i].Anchored = false | |
1315 | end | |
1316 | end | |
1317 | end | |
1318 | end | |
1319 | function refit() | |
1320 | RootJoint.Parent = RootPart | |
1321 | Neck.Parent = Torso | |
1322 | RightShoulder.Parent = Torso | |
1323 | LeftShoulder.Parent = Torso | |
1324 | RightHip.Parent = Torso | |
1325 | LeftHip.Parent = Torso | |
1326 | RootPart.Parent = Character | |
1327 | LeftArm.Parent = Character | |
1328 | RightArm.Parent = Character | |
1329 | RightLeg.Parent = Character | |
1330 | LeftLeg.Parent = Character | |
1331 | Torso.Parent = Character | |
1332 | Head.Parent = Character | |
1333 | end | |
1334 | Humanoid.Changed:connect(function(Jump) | |
1335 | if Jump == "Jump" and Disable_Jump == true then | |
1336 | Humanoid.Jump = false | |
1337 | end | |
1338 | end) | |
1339 | Humanoid.HipHeight = 2 | |
1340 | Head:ClearAllChildren() | |
1341 | local FF = IT("ForceField", Character) | |
1342 | FF.Visible = false | |
1343 | Speed = 45 | |
1344 | CreateSound("907332997", Head, 10, 0.9) | |
1345 | while true do | |
1346 | Swait() | |
1347 | ANIMATE.Parent = nil | |
1348 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1349 | IDLEANIMATION:Play() | |
1350 | SINE = SINE + CHANGE | |
1351 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1352 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1353 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1354 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
1355 | if ATTACK == false then | |
1356 | if TORSOVELOCITY < 1 then | |
1357 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1358 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1359 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1360 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1361 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -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) | |
1362 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -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) | |
1363 | elseif TORSOVELOCITY > 1 then | |
1364 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1365 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1366 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(25 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1367 | 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(-25 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1368 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1369 | 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) | |
1370 | end | |
1371 | end | |
1372 | if VALUE2 == false then | |
1373 | Slice("Thin", 0.1, 5, RightArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(1, 0, 0), VT(-0.01, 0, -0.01)) | |
1374 | Slice("Thin", 0.1, 5, LeftArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(1, 0, 0), VT(-0.01, 0, -0.01)) | |
1375 | end | |
1376 | unanchor() | |
1377 | Humanoid.MaxHealth = "inf" | |
1378 | Humanoid.Health = "inf" | |
1379 | if Rooted == false then | |
1380 | Disable_Jump = false | |
1381 | Humanoid.WalkSpeed = Speed | |
1382 | elseif Rooted == true then | |
1383 | Disable_Jump = true | |
1384 | Humanoid.WalkSpeed = 0 | |
1385 | end | |
1386 | for _, c in pairs(Character:GetChildren()) do | |
1387 | if c.ClassName == "Part" then | |
1388 | c.Material = "Neon" | |
1389 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1390 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1391 | end | |
1392 | if c == Torso then | |
1393 | c.Color = C3(0, 0, 0) | |
1394 | elseif c == RightArm then | |
1395 | c.Color = C3(0.1, 0, 0) | |
1396 | elseif c == LeftArm then | |
1397 | c.Color = C3(0.1, 0, 0) | |
1398 | elseif c == RightLeg then | |
1399 | c.Color = C3(0.05, 0, 0) | |
1400 | elseif c == LeftLeg then | |
1401 | c.Color = C3(0.05, 0, 0) | |
1402 | elseif c == Head then | |
1403 | if c:FindFirstChild("Dominus") == nil then | |
1404 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "96102993", "114455897", VT(1, 1, 1) * 1.1, VT(0, 0, 0)) | |
1405 | M.Name = "Dominus" | |
1406 | end | |
1407 | if c:FindFirstChild("face") then | |
1408 | c.face:remove() | |
1409 | end | |
1410 | end | |
1411 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1412 | c:remove() | |
1413 | end | |
1414 | end | |
1415 | FF.Parent = Character | |
1416 | sick.Parent = Character | |
1417 | refit() | |
1418 | script.Parent = WEAPONGUI | |
1419 | Character.Parent = workspace | |
1420 | Humanoid.PlatformStand = false | |
1421 | Humanoid.Name = "Ultimate Dominus" | |
1422 | for _, c in pairs(game.Players:GetChildren()) do | |
1423 | if c.Character ~= nil and c.Character.Parent ~= workspace and c.Character.Parent ~= nil then | |
1424 | c.Character:BreakJoints() | |
1425 | end | |
1426 | end | |
1427 | Humanoid.DisplayDistanceType = "None" | |
1428 | end |