SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| EDITED BY VOYQGO | |
3 | --\\====================================================//-- | |
4 | ||
5 | --//====================================================\\-- | |
6 | --|| CREATED BY SHACKLUSTER | |
7 | --\\====================================================//-- | |
8 | ||
9 | print("JUSTEC GOD V2 IS HERE!") | |
10 | print("script EDITED by voyqgo ") | |
11 | print("This was soo fun to make") | |
12 | print("so have fun with JUSTEC GOD V2") | |
13 | ||
14 | script:ClearAllChildren() | |
15 | wait(0.2) | |
16 | ||
17 | Player = game:GetService("Players").LocalPlayer | |
18 | PlayerGui = Player.PlayerGui | |
19 | Cam = workspace.CurrentCamera | |
20 | Backpack = Player.Backpack | |
21 | Character = Player.Character | |
22 | Humanoid = Character.Humanoid | |
23 | Mouse = Player:GetMouse() | |
24 | RootPart = Character["HumanoidRootPart"] | |
25 | Torso = Character["Torso"] | |
26 | Head = Character["Head"] | |
27 | RightArm = Character["Right Arm"] | |
28 | LeftArm = Character["Left Arm"] | |
29 | RightLeg = Character["Right Leg"] | |
30 | LeftLeg = Character["Left Leg"] | |
31 | RootJoint = RootPart["RootJoint"] | |
32 | Neck = Torso["Neck"] | |
33 | RightShoulder = Torso["Right Shoulder"] | |
34 | LeftShoulder = Torso["Left Shoulder"] | |
35 | RightHip = Torso["Right Hip"] | |
36 | LeftHip = Torso["Left Hip"] | |
37 | local TIME = 0 | |
38 | local sick = Instance.new("Sound",Torso) | |
39 | ||
40 | IT = Instance.new | |
41 | CF = CFrame.new | |
42 | VT = Vector3.new | |
43 | RAD = math.rad | |
44 | C3 = Color3.new | |
45 | UD2 = UDim2.new | |
46 | BRICKC = BrickColor.new | |
47 | ANGLES = CFrame.Angles | |
48 | EULER = CFrame.fromEulerAnglesXYZ | |
49 | COS = math.cos | |
50 | ACOS = math.acos | |
51 | SIN = math.sin | |
52 | ASIN = math.asin | |
53 | ABS = math.abs | |
54 | MRANDOM = math.random | |
55 | FLOOR = math.floor | |
56 | ||
57 | --//=================================\\ | |
58 | --|| USEFUL VALUES | |
59 | --\\=================================// | |
60 | ||
61 | Animation_Speed = 3 | |
62 | local FORCERESET = false | |
63 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
64 | local Speed = 16 | |
65 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
66 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
67 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
68 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
69 | local DAMAGEMULTIPLIER = 1 | |
70 | local ANIM = "Idle" | |
71 | local ATTACK = false | |
72 | local EQUIPPED = false | |
73 | local HOLD = false | |
74 | local COMBO = 1 | |
75 | local Rooted = false | |
76 | local SINE = 0 | |
77 | local KEYHOLD = false | |
78 | local CHANGE = 2 / Animation_Speed | |
79 | local WALKINGANIM = false | |
80 | local VALUE1 = false | |
81 | local VALUE2 = false | |
82 | local ROBLOXIDLEANIMATION = IT("Animation") | |
83 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
84 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
85 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
86 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
87 | WEAPONGUI.Name = "BanishV3Gui" | |
88 | local Weapon = IT("Model") | |
89 | Weapon.Name = "Adds" | |
90 | local Effects = IT("Folder", Weapon) | |
91 | Effects.Name = "Effects" | |
92 | local ANIMATOR = Humanoid.Animator | |
93 | local ANIMATE = Character:FindFirstChild("Animate") | |
94 | local UNANCHOR = true | |
95 | local TOBANISH = {} | |
96 | script.Parent = PlayerGui | |
97 | local LAUGHS = {834001699,834001752,834001797,834001828} | |
98 | local VOCALS_ENRAGES = {528589078,528589175,528589274,528589382} | |
99 | local VOCALS_TAUNT = {468973055,468973159} | |
100 | local VOCALS_BASIC = {468972244,468972378,468972711,468972944} | |
101 | local VOCAL_GROWL = 468971411 | |
102 | ||
103 | --//=================================\\ | |
104 | --\\=================================// | |
105 | ||
106 | --//=================================\\ | |
107 | --|| PARTICLES N STUFF | |
108 | --\\=================================// | |
109 | ||
110 | local particleemitter = Instance.new('ParticleEmitter', LeftArm) | |
111 | particleemitter.VelocitySpread = 350 | |
112 | particleemitter.Lifetime = NumberRange.new(1) | |
113 | particleemitter.Speed = NumberRange.new(0) | |
114 | cringememe= {} | |
115 | for i=0, 19 do | |
116 | cringememe[#cringememe + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
117 | end | |
118 | particleemitter.Size = NumberSequence.new(cringememe) | |
119 | particleemitter.Rate = 20 | |
120 | particleemitter.LockedToPart = true | |
121 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
122 | particleemitter.LightEmission = 1 | |
123 | particleemitter.Texture = "rbxassetid://38727848" | |
124 | particleemitter.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
125 | ||
126 | local particleemitter = Instance.new('ParticleEmitter', Torso) | |
127 | particleemitter.VelocitySpread = 250 | |
128 | particleemitter.Lifetime = NumberRange.new(3) | |
129 | particleemitter.Speed = NumberRange.new(1.5) | |
130 | youAreATHOT = {} | |
131 | for i=0, 19 do | |
132 | youAreATHOT[#youAreATHOT + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
133 | end | |
134 | particleemitter.Size = NumberSequence.new(youAreATHOT) | |
135 | particleemitter.Rate = 10 | |
136 | particleemitter.LockedToPart = false | |
137 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
138 | particleemitter.LightEmission = 1 | |
139 | particleemitter.Texture = "rbxassetid://253188763" | |
140 | particleemitter.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
141 | ||
142 | local particleemitter = Instance.new('ParticleEmitter', RightArm) | |
143 | particleemitter.VelocitySpread = 350 | |
144 | particleemitter.Lifetime = NumberRange.new(1) | |
145 | particleemitter.Speed = NumberRange.new(0) | |
146 | cringememe2= {} | |
147 | for i=0, 19 do | |
148 | cringememe2[#cringememe2 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
149 | end | |
150 | particleemitter.Size = NumberSequence.new(cringememe2) | |
151 | particleemitter.Rate = 20 | |
152 | particleemitter.LockedToPart = true | |
153 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
154 | particleemitter.LightEmission = 1 | |
155 | particleemitter.Texture = "rbxassetid://38727848" | |
156 | particleemitter.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
157 | ||
158 | local particleemitter = Instance.new('ParticleEmitter', RightLeg) | |
159 | particleemitter.VelocitySpread = 350 | |
160 | particleemitter.Lifetime = NumberRange.new(1) | |
161 | particleemitter.Speed = NumberRange.new(0) | |
162 | cringememe3= {} | |
163 | for i=0, 19 do | |
164 | cringememe3[#cringememe3 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
165 | end | |
166 | particleemitter.Size = NumberSequence.new(cringememe3) | |
167 | particleemitter.Rate = 30 | |
168 | particleemitter.LockedToPart = true | |
169 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
170 | particleemitter.LightEmission = 1 | |
171 | particleemitter.Texture = "rbxassetid://38727848" | |
172 | particleemitter.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
173 | ||
174 | local particleemitter = Instance.new('ParticleEmitter', LeftLeg) | |
175 | particleemitter.VelocitySpread = 350 | |
176 | particleemitter.Lifetime = NumberRange.new(1) | |
177 | particleemitter.Speed = NumberRange.new(0) | |
178 | cringememe4= {} | |
179 | for i=0, 19 do | |
180 | cringememe4[#cringememe4 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
181 | end | |
182 | particleemitter.Size = NumberSequence.new(cringememe4) | |
183 | particleemitter.Rate = 30 | |
184 | particleemitter.LockedToPart = true | |
185 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
186 | particleemitter.LightEmission = 1 | |
187 | particleemitter.Texture = "rbxassetid://38727848" | |
188 | particleemitter.Color = ColorSequence.new(BrickColor.new("Really red").Color) | |
189 | ||
190 | --//=================================\\ | |
191 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
192 | --\\=================================// | |
193 | ||
194 | ArtificialHB = Instance.new("BindableEvent", script) | |
195 | ArtificialHB.Name = "ArtificialHB" | |
196 | ||
197 | script:WaitForChild("ArtificialHB") | |
198 | ||
199 | frame = Frame_Speed | |
200 | tf = 0 | |
201 | allowframeloss = false | |
202 | tossremainder = false | |
203 | lastframe = tick() | |
204 | script.ArtificialHB:Fire() | |
205 | ||
206 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
207 | tf = tf + s | |
208 | if tf >= frame then | |
209 | if allowframeloss then | |
210 | script.ArtificialHB:Fire() | |
211 | lastframe = tick() | |
212 | else | |
213 | for i = 1, math.floor(tf / frame) do | |
214 | script.ArtificialHB:Fire() | |
215 | end | |
216 | lastframe = tick() | |
217 | end | |
218 | if tossremainder then | |
219 | tf = 0 | |
220 | else | |
221 | tf = tf - frame * math.floor(tf / frame) | |
222 | end | |
223 | end | |
224 | end) | |
225 | ||
226 | --//=================================\\ | |
227 | --\\=================================// | |
228 | ||
229 | --//=================================\\ | |
230 | --|| SOME FUNCTIONS | |
231 | --\\=================================// | |
232 | ||
233 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
234 | local TORSO = Torso | |
235 | local HUM = Humanoid | |
236 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
237 | coroutine.wrap(function() | |
238 | VT = Vector3.new | |
239 | MRANDOM = math.random | |
240 | local A = TIME | |
241 | local B = INTENSITY | |
242 | local C = true | |
243 | local HUMANOID = Humanoid | |
244 | local TIMER = A or 35 | |
245 | local SHAKE = B or 5 | |
246 | local FADE = C or true | |
247 | if HUMANOID then | |
248 | local FADER = SHAKE / TIMER | |
249 | for i = 1, TIMER do | |
250 | wait() | |
251 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
252 | end | |
253 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
254 | end | |
255 | ||
256 | end)() | |
257 | end | |
258 | end | |
259 | ||
260 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
261 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
262 | end | |
263 | ||
264 | function PositiveAngle(NUMBER) | |
265 | if NUMBER >= 0 then | |
266 | NUMBER = 0 | |
267 | end | |
268 | return NUMBER | |
269 | end | |
270 | ||
271 | function NegativeAngle(NUMBER) | |
272 | if NUMBER <= 0 then | |
273 | NUMBER = 0 | |
274 | end | |
275 | return NUMBER | |
276 | end | |
277 | ||
278 | function Swait(NUMBER) | |
279 | if NUMBER == 0 or NUMBER == nil then | |
280 | ArtificialHB.Event:wait() | |
281 | else | |
282 | for i = 1, NUMBER do | |
283 | ArtificialHB.Event:wait() | |
284 | end | |
285 | end | |
286 | end | |
287 | ||
288 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
289 | local NEWMESH = IT(MESH) | |
290 | if MESH == "SpecialMesh" then | |
291 | NEWMESH.MeshType = MESHTYPE | |
292 | if MESHID ~= "nil" and MESHID ~= "" then | |
293 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
294 | end | |
295 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
296 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
297 | end | |
298 | end | |
299 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
300 | NEWMESH.Scale = SCALE | |
301 | NEWMESH.Parent = PARENT | |
302 | return NEWMESH | |
303 | end | |
304 | ||
305 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
306 | local NEWPART = IT("Part") | |
307 | NEWPART.formFactor = FORMFACTOR | |
308 | NEWPART.Reflectance = REFLECTANCE | |
309 | NEWPART.Transparency = TRANSPARENCY | |
310 | NEWPART.CanCollide = false | |
311 | NEWPART.Locked = true | |
312 | NEWPART.Anchored = true | |
313 | if ANCHOR == false then | |
314 | NEWPART.Anchored = false | |
315 | end | |
316 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
317 | NEWPART.Name = NAME | |
318 | NEWPART.Size = SIZE | |
319 | NEWPART.Position = Torso.Position | |
320 | NEWPART.Material = MATERIAL | |
321 | NEWPART:BreakJoints() | |
322 | NEWPART.Parent = PARENT | |
323 | return NEWPART | |
324 | end | |
325 | ||
326 | local function weldBetween(a, b) | |
327 | local weldd = Instance.new("ManualWeld") | |
328 | weldd.Part0 = a | |
329 | weldd.Part1 = b | |
330 | weldd.C0 = CFrame.new() | |
331 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
332 | weldd.Parent = a | |
333 | return weldd | |
334 | end | |
335 | ||
336 | ||
337 | function QuaternionFromCFrame(cf) | |
338 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
339 | local trace = m00 + m11 + m22 | |
340 | if trace > 0 then | |
341 | local s = math.sqrt(1 + trace) | |
342 | local recip = 0.5 / s | |
343 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
344 | else | |
345 | local i = 0 | |
346 | if m11 > m00 then | |
347 | i = 1 | |
348 | end | |
349 | if m22 > (i == 0 and m00 or m11) then | |
350 | i = 2 | |
351 | end | |
352 | if i == 0 then | |
353 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
354 | local recip = 0.5 / s | |
355 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
356 | elseif i == 1 then | |
357 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
358 | local recip = 0.5 / s | |
359 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
360 | elseif i == 2 then | |
361 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
362 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
363 | end | |
364 | end | |
365 | end | |
366 | ||
367 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
368 | local xs, ys, zs = x + x, y + y, z + z | |
369 | local wx, wy, wz = w * xs, w * ys, w * zs | |
370 | local xx = x * xs | |
371 | local xy = x * ys | |
372 | local xz = x * zs | |
373 | local yy = y * ys | |
374 | local yz = y * zs | |
375 | local zz = z * zs | |
376 | 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)) | |
377 | end | |
378 | ||
379 | function QuaternionSlerp(a, b, t) | |
380 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
381 | local startInterp, finishInterp; | |
382 | if cosTheta >= 0.0001 then | |
383 | if (1 - cosTheta) > 0.0001 then | |
384 | local theta = ACOS(cosTheta) | |
385 | local invSinTheta = 1 / SIN(theta) | |
386 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
387 | finishInterp = SIN(t * theta) * invSinTheta | |
388 | else | |
389 | startInterp = 1 - t | |
390 | finishInterp = t | |
391 | end | |
392 | else | |
393 | if (1 + cosTheta) > 0.0001 then | |
394 | local theta = ACOS(-cosTheta) | |
395 | local invSinTheta = 1 / SIN(theta) | |
396 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
397 | finishInterp = SIN(t * theta) * invSinTheta | |
398 | else | |
399 | startInterp = t - 1 | |
400 | finishInterp = t | |
401 | end | |
402 | end | |
403 | 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 | |
404 | end | |
405 | ||
406 | function Clerp(a, b, t) | |
407 | local qa = {QuaternionFromCFrame(a)} | |
408 | local qb = {QuaternionFromCFrame(b)} | |
409 | local ax, ay, az = a.x, a.y, a.z | |
410 | local bx, by, bz = b.x, b.y, b.z | |
411 | local _t = 1 - t | |
412 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
413 | end | |
414 | ||
415 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
416 | local frame = IT("Frame") | |
417 | frame.BackgroundTransparency = TRANSPARENCY | |
418 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
419 | frame.Position = POSITION | |
420 | frame.Size = SIZE | |
421 | frame.BackgroundColor3 = COLOR | |
422 | frame.BorderColor3 = BORDERCOLOR | |
423 | frame.Name = NAME | |
424 | frame.Parent = PARENT | |
425 | return frame | |
426 | end | |
427 | ||
428 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
429 | local label = IT("TextLabel") | |
430 | label.BackgroundTransparency = 1 | |
431 | label.Size = UD2(1, 0, 1, 0) | |
432 | label.Position = UD2(0, 0, 0, 0) | |
433 | label.TextColor3 = TEXTCOLOR | |
434 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
435 | label.TextTransparency = TRANSPARENCY | |
436 | label.FontSize = TEXTFONTSIZE | |
437 | label.Font = TEXTFONT | |
438 | label.BorderSizePixel = BORDERSIZEPIXEL | |
439 | label.TextScaled = false | |
440 | label.Text = TEXT | |
441 | label.Name = NAME | |
442 | label.Parent = PARENT | |
443 | return label | |
444 | end | |
445 | ||
446 | function NoOutlines(PART) | |
447 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
448 | end | |
449 | ||
450 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
451 | local NEWWELD = IT(TYPE) | |
452 | NEWWELD.Part0 = PART0 | |
453 | NEWWELD.Part1 = PART1 | |
454 | NEWWELD.C0 = C0 | |
455 | NEWWELD.C1 = C1 | |
456 | NEWWELD.Parent = PARENT | |
457 | return NEWWELD | |
458 | end | |
459 | ||
460 | local S = IT("Sound") | |
461 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
462 | local NEWSOUND = nil | |
463 | coroutine.resume(coroutine.create(function() | |
464 | NEWSOUND = S:Clone() | |
465 | NEWSOUND.Parent = PARENT | |
466 | NEWSOUND.Volume = VOLUME | |
467 | NEWSOUND.Pitch = PITCH | |
468 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
469 | NEWSOUND:play() | |
470 | if DOESLOOP == true then | |
471 | NEWSOUND.Looped = true | |
472 | else | |
473 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
474 | NEWSOUND:remove() | |
475 | end | |
476 | end)) | |
477 | return NEWSOUND | |
478 | end | |
479 | ||
480 | function CFrameFromTopBack(at, top, back) | |
481 | local right = top:Cross(back) | |
482 | 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) | |
483 | end | |
484 | ||
485 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
486 | local cR=255 | |
487 | local cG=0 | |
488 | local cB=0 | |
489 | local flg5=1 local omgidk=1 | |
490 | local add=15 | |
491 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
492 | if omgidk>10000 then omgidk=0 end | |
493 | omgidk=omgidk+1 | |
494 | if cR>=255 then flg5=1 end | |
495 | if cG>=255 then flg5=2 end | |
496 | if cB>=255 then flg5=3 end | |
497 | if flg5==1 then cR=cR-add cG=cG+add end | |
498 | if flg5==2 then cG=cG-add cB=cB+add end | |
499 | if flg5==3 then cB=cB-add cR=cR+add end | |
500 | color=Color3.fromRGB(cR,cG,cB) | |
501 | function WACKYEFFECT(Table) | |
502 | local TYPE = (Table.EffectType or "Sphere") | |
503 | local SIZE = (Table.Size or VT(6,6,6)) | |
504 | local ENDSIZE = (Table.Size2 or VT(7,7,7)) | |
505 | local TRANSPARENCY = (Table.Transparency or 0) | |
506 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
507 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
508 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
509 | local ROTATION1 = (Table.RotationX or 0) | |
510 | local ROTATION2 = (Table.RotationY or 0) | |
511 | local ROTATION3 = (Table.RotationZ or 0) | |
512 | local MATERIAL = "Neon" | |
513 | local COLOR = color | |
514 | local TIME = (Table.Time or 45) | |
515 | local SOUNDID = (Table.SoundID or nil) | |
516 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
517 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
518 | coroutine.resume(coroutine.create(function() | |
519 | local PLAYSSOUND = false | |
520 | local SOUND = nil | |
521 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
522 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
523 | PLAYSSOUND = true | |
524 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
525 | end | |
526 | EFFECT.Color = color | |
527 | local MSH = nil | |
528 | if TYPE == "Sphere" then | |
529 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
530 | elseif TYPE == "Block" then | |
531 | MSH = IT("BlockMesh",EFFECT) | |
532 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
533 | elseif TYPE == "Wave" then | |
534 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
535 | elseif TYPE == "Ring" then | |
536 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
537 | elseif TYPE == "Slash" then | |
538 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
539 | elseif TYPE == "Round Slash" then | |
540 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
541 | elseif TYPE == "Swirl" then | |
542 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
543 | elseif TYPE == "Skull" then | |
544 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
545 | elseif TYPE == "Crystal" then | |
546 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
547 | end | |
548 | if MSH ~= nil then | |
549 | local MOVESPEED = nil | |
550 | if MOVEDIRECTION ~= nil then | |
551 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
552 | end | |
553 | local GROWTH = SIZE - ENDSIZE | |
554 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
555 | if TYPE == "Block" then | |
556 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
557 | else | |
558 | EFFECT.CFrame = CFRAME | |
559 | end | |
560 | for LOOP = 1, TIME+1 do | |
561 | Swait() | |
562 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
563 | if TYPE == "Wave" then | |
564 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
565 | end | |
566 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
567 | if TYPE == "Block" then | |
568 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
569 | else | |
570 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
571 | end | |
572 | if MOVEDIRECTION ~= nil then | |
573 | local ORI = EFFECT.Orientation | |
574 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
575 | EFFECT.Orientation = ORI | |
576 | end | |
577 | end | |
578 | if PLAYSSOUND == false then | |
579 | EFFECT:remove() | |
580 | else | |
581 | SOUND.Stopped:Connect(function() | |
582 | EFFECT:remove() | |
583 | end) | |
584 | end | |
585 | else | |
586 | if PLAYSSOUND == false then | |
587 | EFFECT:remove() | |
588 | else | |
589 | repeat Swait() until SOUND.Playing == false | |
590 | EFFECT:remove() | |
591 | end | |
592 | end | |
593 | end)) | |
594 | end | |
595 | end) | |
596 | function MakeForm(PART,TYPE) | |
597 | if TYPE == "Cyl" then | |
598 | local MSH = IT("CylinderMesh",PART) | |
599 | elseif TYPE == "Ball" then | |
600 | local MSH = IT("SpecialMesh",PART) | |
601 | MSH.MeshType = "Sphere" | |
602 | elseif TYPE == "Wedge" then | |
603 | local MSH = IT("SpecialMesh",PART) | |
604 | MSH.MeshType = "Wedge" | |
605 | end | |
606 | end | |
607 | function SpawnTrail(FROM,TO,BIG) | |
608 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Trail", VT(10,10,10)) | |
609 | MakeForm(TRAIL,"Cyl") | |
610 | local cR=255 | |
611 | local cG=0 | |
612 | local cB=0 | |
613 | local flg5=1 local omgidk=1 | |
614 | local add=15 | |
615 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
616 | if omgidk>10000 then omgidk=0 end | |
617 | omgidk=omgidk+1 | |
618 | if cR>=255 then flg5=1 end | |
619 | if cG>=255 then flg5=2 end | |
620 | if cB>=255 then flg5=3 end | |
621 | if flg5==1 then cR=cR-add cG=cG+add end | |
622 | if flg5==2 then cG=cG-add cB=cB+add end | |
623 | if flg5==3 then cB=cB-add cR=cR+add end | |
624 | color=Color3.fromRGB(cR,cG,cB) | |
625 | TRAIL.Color = color | |
626 | end) | |
627 | local DIST = (FROM - TO).Magnitude | |
628 | if BIG == true then | |
629 | TRAIL.Size = VT(5,DIST,5) | |
630 | else | |
631 | TRAIL.Size = VT(5,DIST,5) | |
632 | end | |
633 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
634 | coroutine.resume(coroutine.create(function() | |
635 | for i = 1, 55 do | |
636 | Swait() | |
637 | TRAIL.Transparency = TRAIL.Transparency + 0.01 | |
638 | end | |
639 | TRAIL:remove() | |
640 | end)) | |
641 | end | |
642 | ||
643 | Debris = game:GetService("Debris") | |
644 | ||
645 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
646 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
647 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
648 | end | |
649 | ||
650 | function turnto(position) | |
651 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
652 | end | |
653 | CircleParts = {} | |
654 | Equipped = false | |
655 | ||
656 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
657 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
658 | end | |
659 | Humanoid = Character:FindFirstChildOfClass("Humanoid") | |
660 | Torso = Character:FindFirstChild("Torso") | |
661 | if not Player or not Humanoid or Humanoid.Health == 0 or not Torso then | |
662 | return | |
663 | end | |
664 | Equipped = true | |
665 | Circle = Instance.new("Model") | |
666 | Circle.Name = "Circle" | |
667 | Angle = 0 | |
668 | for i = 1, 1 do | |
669 | local CirclePart = Instance.new("Part") | |
670 | CirclePart.Name = "CirclePart" | |
671 | CirclePart.Transparency = 1 | |
672 | CirclePart.BrickColor = BrickColor.new("Really black") | |
673 | CirclePart.Material = Enum.Material.Plastic | |
674 | CirclePart.Shape = Enum.PartType.Block | |
675 | CirclePart.FormFactor = Enum.FormFactor.Custom | |
676 | CirclePart.TopSurface = Enum.SurfaceType.Smooth | |
677 | CirclePart.BottomSurface = Enum.SurfaceType.Smooth | |
678 | CirclePart.Anchored = true | |
679 | CirclePart.CanCollide = false | |
680 | CirclePart.Locked = true | |
681 | CirclePart.Size = Vector3.new(10, 0.2, 10) | |
682 | local Aura = Instance.new('ParticleEmitter') | |
683 | Aura.Name = "Aura" | |
684 | Aura.Texture = "rbxassetid://141116476" | |
685 | Aura.Parent = CirclePart | |
686 | Aura.LightEmission = .7 | |
687 | Aura.Transparency = NumberSequence.new(0.2,0.4,1) | |
688 | Aura.Color = ColorSequence.new(Color3.new(155/255, 0/255, 155/255),Color3.new(255/200, 0/200, 0/200)) | |
689 | Aura.Size = NumberSequence.new(0.9,0.5,0.3) | |
690 | Aura.LockedToPart = false | |
691 | Aura.Lifetime = NumberRange.new(1) | |
692 | Aura.Rate = 100 | |
693 | Aura.Speed = NumberRange.new(2) | |
694 | Aura.SpreadAngle = Vector2.new(80,80) | |
695 | local BlockMesh = Instance.new("BlockMesh") | |
696 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
697 | BlockMesh.Parent = CirclePart | |
698 | CirclePart.Parent = Circle | |
699 | local Star = Instance.new("Decal", CirclePart) | |
700 | Star.Texture = "http://www.roblox.com/asset/?id=1258741019" | |
701 | Star.Face = "Top" | |
702 | local Light = Instance.new("PointLight", CirclePart) | |
703 | Light.Color = Color3.new(1,0,0) | |
704 | Light.Brightness = 100 | |
705 | Light.Range = 0 | |
706 | table.insert(CircleParts, CirclePart) | |
707 | end | |
708 | function CreateDebreeRing1(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
709 | if FLOOR ~= nil then | |
710 | coroutine.resume(coroutine.create(function() | |
711 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
712 | PART.CFrame = CF(POSITION) | |
713 | for i = 1, 45 do | |
714 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
715 | RingPiece.Material = FLOOR.Material | |
716 | RingPiece.Color = FLOOR.Color | |
717 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
718 | Debris:AddItem(RingPiece,SWAIT) | |
719 | end | |
720 | PART:remove() | |
721 | end)) | |
722 | end | |
723 | end | |
724 | function CreateFlyingDebree1(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
725 | if FLOOR ~= nil then | |
726 | for i = 1, AMOUNT do | |
727 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
728 | DEBREE.Material = FLOOR.Material | |
729 | DEBREE.Color = FLOOR.Color | |
730 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
731 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
732 | coroutine.resume(coroutine.create(function() | |
733 | Swait(15) | |
734 | DEBREE.Parent = workspace | |
735 | DEBREE.CanCollide = true | |
736 | Debris:AddItem(DEBREE,SWAIT) | |
737 | end)) | |
738 | end | |
739 | end | |
740 | end | |
741 | function CreateDebreeRing2(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
742 | if FLOOR ~= nil then | |
743 | coroutine.resume(coroutine.create(function() | |
744 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really black", "DebreeCenter", VT(0,0,0)) | |
745 | PART.CFrame = CF(POSITION) | |
746 | for i = 1, 45 do | |
747 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really black", "DebreePart", BLOCKSIZE) | |
748 | RingPiece.Material = FLOOR.Material | |
749 | RingPiece.Color = FLOOR.Color | |
750 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
751 | Debris:AddItem(RingPiece,SWAIT) | |
752 | end | |
753 | PART:remove() | |
754 | end)) | |
755 | end | |
756 | end | |
757 | function CreateFlyingDebree2(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
758 | if FLOOR ~= nil then | |
759 | for i = 1, AMOUNT do | |
760 | local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Debree", BLOCKSIZE, false) | |
761 | DEBREE.Material = FLOOR.Material | |
762 | DEBREE.Color = FLOOR.Color | |
763 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
764 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH)) | |
765 | coroutine.resume(coroutine.create(function() | |
766 | Swait(15) | |
767 | DEBREE.Parent = workspace | |
768 | DEBREE.CanCollide = true | |
769 | Debris:AddItem(DEBREE,SWAIT) | |
770 | end)) | |
771 | end | |
772 | end | |
773 | end | |
774 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
775 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
776 | local mesh = IT("SpecialMesh",wave) | |
777 | mesh.MeshType = "FileMesh" | |
778 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
779 | mesh.Scale = SIZE | |
780 | mesh.Offset = VT(0,0,0) | |
781 | wave.CFrame = CFRAME | |
782 | coroutine.resume(coroutine.create(function(PART) | |
783 | for i = 1, WAIT do | |
784 | Swait() | |
785 | mesh.Scale = mesh.Scale + GROW | |
786 | if DOESROT == true then | |
787 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
788 | end | |
789 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
790 | if wave.Transparency > 0.99 then | |
791 | wave:remove() | |
792 | end | |
793 | end | |
794 | end)) | |
795 | end | |
796 | local BODY = {} | |
797 | ||
798 | for _, c in pairs(Character:GetDescendants()) do | |
799 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
800 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
801 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
802 | end | |
803 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
804 | elseif c:IsA("JointInstance") then | |
805 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
806 | end | |
807 | end | |
808 | for e = 1, #BODY do | |
809 | if BODY[e] ~= nil then | |
810 | local STUFF = BODY[e] | |
811 | local PART = STUFF[1] | |
812 | local PARENT = STUFF[2] | |
813 | local MATERIAL = STUFF[3] | |
814 | local COLOR = STUFF[4] | |
815 | local TRANSPARENCY = STUFF[5] | |
816 | if PART.ClassName == "Part" and PART ~= RootPart then | |
817 | PART.Material = MATERIAL | |
818 | PART.Color = COLOR | |
819 | PART.Transparency = TRANSPARENCY | |
820 | end | |
821 | PART.AncestryChanged:Connect(function() | |
822 | PART.Parent = PARENT | |
823 | end) | |
824 | end | |
825 | end | |
826 | function refit() | |
827 | Character.Parent = workspace | |
828 | for e = 1, #BODY do | |
829 | if BODY[e] ~= nil then | |
830 | local STUFF = BODY[e] | |
831 | local PART = STUFF[1] | |
832 | local PARENT = STUFF[2] | |
833 | local MATERIAL = STUFF[3] | |
834 | local COLOR = STUFF[4] | |
835 | local TRANSPARENCY = STUFF[5] | |
836 | if PART.ClassName == "Part" and PART ~= RootPart then | |
837 | PART.Material = MATERIAL | |
838 | PART.Color = COLOR | |
839 | PART.Transparency = TRANSPARENCY | |
840 | end | |
841 | if PART.Parent ~= PARENT then | |
842 | Humanoid:remove() | |
843 | PART.Parent = PARENT | |
844 | Humanoid = IT("Humanoid",Character) | |
845 | end | |
846 | end | |
847 | end | |
848 | end | |
849 | local Particle = IT("ParticleEmitter",nil) | |
850 | Particle.Enabled = false | |
851 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
852 | Particle.LightEmission = 0.5 | |
853 | Particle.Rate = 150 | |
854 | Particle.ZOffset = 1 | |
855 | Particle.Rotation = NumberRange.new(-180, 180) | |
856 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
857 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
858 | - | Particle.Color = ColorSequence.new(C3(58,125,21),C3(0.4,0,0)) |
858 | + | Particle.ColorSequence.new(C3(255,128,0),C3(0,155,0),C3(255,255,0),C3(0,255,0),C3(0,255,255),C3(0,0,255),C3(191,0,255),C3(255,0,191)) |
859 | ||
860 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
861 | function ParticleEmitter(Table) | |
862 | local PRTCL = Particle:Clone() | |
863 | local Speed = Table.Speed or 5 | |
864 | local Drag = Table.Drag or 0 | |
865 | local Size1 = Table.Size1 or 1 | |
866 | local Size2 = Table.Size2 or 5 | |
867 | local Lifetime1 = Table.Lifetime1 or 1 | |
868 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
869 | local Parent = Table.Parent or Torso | |
870 | local Emit = Table.Emit or 100 | |
871 | local Offset = Table.Offset or 360 | |
872 | local Acel = Table.Acel or VT(0,0,0) | |
873 | local Enabled = Table.Enabled or false | |
874 | PRTCL.Parent = Parent | |
875 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
876 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
877 | PRTCL.Speed = NumberRange.new(Speed) | |
878 | PRTCL.VelocitySpread = Offset | |
879 | PRTCL.Drag = Drag | |
880 | PRTCL.Acceleration = Acel | |
881 | if Enabled == false then | |
882 | PRTCL:Emit(Emit) | |
883 | Debris:AddItem(PRTCL,Lifetime2) | |
884 | else | |
885 | PRTCL.Enabled = true | |
886 | end | |
887 | return PRTCL | |
888 | end | |
889 | ||
890 | local A = IT("Attachment",Torso) | |
891 | A.Position = VT(1,1.3,0) | |
892 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
893 | local B = IT("Attachment",Torso) | |
894 | B.Position = VT(-1.3,-0.6,0) | |
895 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
896 | local ChainLink = IT("Beam",Torso) | |
897 | ChainLink.Texture = "rbxassetid://343533707" | |
898 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
899 | ChainLink.TextureSpeed = 1 | |
900 | ChainLink.FaceCamera = true | |
901 | ChainLink.Width0 = 1 | |
902 | ChainLink.Width1 = 1 | |
903 | ChainLink.TextureLength = 3 | |
904 | ChainLink.Attachment0 = A | |
905 | ChainLink.Attachment1 = B | |
906 | ChainLink.CurveSize0 = 1.6 | |
907 | ChainLink.CurveSize1 = 1.6 | |
908 | ChainLink.FaceCamera = true | |
909 | ChainLink.Transparency = NumberSequence.new(0) | |
910 | local ChainLink = IT("Beam",Torso) | |
911 | ChainLink.Texture = "rbxassetid://343533707" | |
912 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
913 | ChainLink.TextureSpeed = 1 | |
914 | ChainLink.FaceCamera = true | |
915 | ChainLink.Width0 = 1 | |
916 | ChainLink.Width1 = 1 | |
917 | ChainLink.TextureLength = 3 | |
918 | ChainLink.Attachment0 = B | |
919 | ChainLink.Attachment1 = A | |
920 | ChainLink.CurveSize0 = 1.6 | |
921 | ChainLink.CurveSize1 = 1.6 | |
922 | ChainLink.FaceCamera = true | |
923 | ChainLink.Transparency = NumberSequence.new(0) | |
924 | local A = IT("Attachment",Torso) | |
925 | A.Position = VT(1.3,-0.85,0) | |
926 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
927 | local B = IT("Attachment",Torso) | |
928 | B.Position = VT(-1,2,0) | |
929 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
930 | local ChainLink = IT("Beam",Torso) | |
931 | ChainLink.Texture = "rbxassetid://343533707" | |
932 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
933 | ChainLink.TextureSpeed = 1 | |
934 | ChainLink.FaceCamera = true | |
935 | ChainLink.Width0 = 1 | |
936 | ChainLink.Width1 = 1 | |
937 | ChainLink.TextureLength = 3 | |
938 | ChainLink.Attachment0 = A | |
939 | ChainLink.Attachment1 = B | |
940 | ChainLink.CurveSize0 = 1.3 | |
941 | ChainLink.CurveSize1 = 1.3 | |
942 | ChainLink.FaceCamera = true | |
943 | ChainLink.Transparency = NumberSequence.new(0) | |
944 | local ChainLink = IT("Beam",Torso) | |
945 | ChainLink.Texture = "rbxassetid://343533707" | |
946 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
947 | ChainLink.TextureSpeed = 1 | |
948 | ChainLink.FaceCamera = true | |
949 | ChainLink.Width0 = 1 | |
950 | ChainLink.Width1 = 1 | |
951 | ChainLink.TextureLength = 3 | |
952 | ChainLink.Attachment0 = B | |
953 | ChainLink.Attachment1 = A | |
954 | ChainLink.CurveSize0 = 1.3 | |
955 | ChainLink.CurveSize1 = 1.3 | |
956 | ChainLink.FaceCamera = true | |
957 | ChainLink.Transparency = NumberSequence.new(0) | |
958 | ||
959 | m = game.Players.LocalPlayer | |
960 | char = m.Character | |
961 | local txt = Instance.new("BillboardGui", char) | |
962 | txt.Adornee = char.Head | |
963 | txt.Name = "_status" | |
964 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
965 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
966 | local text = Instance.new("TextLabel", txt) | |
967 | text.Size = UDim2.new(10, 0, 7, 0) | |
968 | text.FontSize = "Size24" | |
969 | text.TextScaled = true | |
970 | text.TextTransparency = 0 | |
971 | text.BackgroundTransparency = 1 | |
972 | text.TextTransparency = 0 | |
973 | text.TextStrokeTransparency = 0 | |
974 | text.Font = "Bodoni" | |
975 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
976 | v = Instance.new("Part") | |
977 | v.Name = "ColorBrick" | |
978 | v.Parent = m.Character | |
979 | v.FormFactor = "Symmetric" | |
980 | v.Anchored = true | |
981 | v.CanCollide = false | |
982 | v.BottomSurface = "Smooth" | |
983 | v.TopSurface = "Smooth" | |
984 | v.Size = Vector3.new(10, 5, 3) | |
985 | v.Transparency = 1 | |
986 | v.CFrame = char.Torso.CFrame | |
987 | v.BrickColor = BrickColor.new("Really black") | |
988 | v.Transparency = 1 | |
989 | v.Shape = "Block" | |
990 | spawn(function() | |
991 | local TweenService = game:GetService("TweenService") | |
992 | local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
993 | local Int = 0 | |
994 | while wait(0.5) do | |
995 | if Int == #Colours then Int = 0 end | |
996 | Int = Int+1 | |
997 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
998 | end | |
999 | end) | |
1000 | text.Text = "Ultimate Justce God" | |
1001 | ||
1002 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) | |
1003 | MakeForm(Eye,"Ball") | |
1004 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
1005 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) | |
1006 | MakeForm(Eye,"Ball") | |
1007 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1008 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) | |
1009 | MakeForm(Eye,"Ball") | |
1010 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1011 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) | |
1012 | MakeForm(Eye,"Ball") | |
1013 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1014 | ||
1015 | 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}) | |
1016 | PRT.LockedToPart = true | |
1017 | 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}) | |
1018 | PRT.LockedToPart = true | |
1019 | 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}) | |
1020 | PRT.LockedToPart = true | |
1021 | 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}) | |
1022 | PRT.LockedToPart = true | |
1023 | 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}) | |
1024 | PRT.LockedToPart = true | |
1025 | ||
1026 | --//=================================\\ | |
1027 | --|| WEAPON CREATION | |
1028 | --\\=================================// | |
1029 | ||
1030 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
1031 | PRT.Color = C3(0,0,0) | |
1032 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
1033 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
1034 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false) | |
1035 | PRT.Color = C3(255, 0, 0) | |
1036 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1037 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
1038 | for i = 1, 16 do | |
1039 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) | |
1040 | FACE.Color = C3(255, 0, 0) | |
1041 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1042 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0)) | |
1043 | end | |
1044 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Institutional White", "Eye", VT(0.1,1,1)/2,false) | |
1045 | MakeForm(Eye,"Ball") | |
1046 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1047 | local LASTPART = Head | |
1048 | for i = 1, 20 do | |
1049 | local MATH = (1-(i/25)) | |
1050 | if LASTPART == Head then | |
1051 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1052 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
1053 | LASTPART = Horn | |
1054 | Horn.Color = C3((i*3-3)/255,0,0) | |
1055 | else | |
1056 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1057 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0)) | |
1058 | LASTPART = Horn | |
1059 | Horn.Color = C3((i*3-3)/255,0,0) | |
1060 | end | |
1061 | end | |
1062 | ||
1063 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1064 | local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1065 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1066 | MakeForm(Part,"Wedge") | |
1067 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1068 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1069 | MakeForm(Part,"Wedge") | |
1070 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1071 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1072 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1073 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1074 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1075 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1076 | MakeForm(Part,"Cyl") | |
1077 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1078 | for i = 1, 8 do | |
1079 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1080 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1081 | end | |
1082 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1083 | MakeForm(Part,"Cyl") | |
1084 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1085 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1086 | MakeForm(Part,"Ball") | |
1087 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1088 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1089 | MakeForm(Part,"Wedge") | |
1090 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1091 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1092 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1093 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1094 | MakeForm(Part,"Cyl") | |
1095 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1096 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1097 | MakeForm(Part,"Cyl") | |
1098 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1099 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1100 | MakeForm(Part,"Cyl") | |
1101 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1102 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1103 | MakeForm(Part,"Wedge") | |
1104 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1105 | local LASTPART = Handle | |
1106 | for i = 1, 10 do | |
1107 | if LASTPART == Handle then | |
1108 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1109 | LASTPART = Part | |
1110 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1111 | else | |
1112 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1113 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1114 | LASTPART = Part | |
1115 | end | |
1116 | end | |
1117 | ||
1118 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1119 | MakeForm(Barrel,"Cyl") | |
1120 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1121 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1122 | MakeForm(Part,"Cyl") | |
1123 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1124 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1125 | MakeForm(Part,"Wedge") | |
1126 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1127 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1128 | MakeForm(Hole,"Cyl") | |
1129 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1130 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1131 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1132 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1133 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1134 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1135 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1136 | coroutine.resume(coroutine.create(function() | |
1137 | while wait() do | |
1138 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1139 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1140 | end | |
1141 | end)) | |
1142 | ||
1143 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1144 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1145 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1146 | MakeForm(Part,"Wedge") | |
1147 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1148 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1149 | MakeForm(Part,"Wedge") | |
1150 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1151 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1152 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1153 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1154 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1155 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1156 | MakeForm(Part,"Cyl") | |
1157 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1158 | for i = 1, 8 do | |
1159 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1160 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1161 | end | |
1162 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1163 | MakeForm(Part,"Cyl") | |
1164 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1165 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1166 | MakeForm(Part,"Ball") | |
1167 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1168 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1169 | MakeForm(Part,"Wedge") | |
1170 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1171 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1172 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1173 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1174 | MakeForm(Part,"Cyl") | |
1175 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1176 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1177 | MakeForm(Part,"Cyl") | |
1178 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1179 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1180 | MakeForm(Part,"Cyl") | |
1181 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1182 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1183 | MakeForm(Part,"Wedge") | |
1184 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1185 | local LASTPART = Handle | |
1186 | for i = 1, 10 do | |
1187 | if LASTPART == Handle then | |
1188 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1189 | LASTPART = Part | |
1190 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1191 | else | |
1192 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1193 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1194 | LASTPART = Part | |
1195 | end | |
1196 | end | |
1197 | ||
1198 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1199 | MakeForm(Barrel,"Cyl") | |
1200 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1201 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1202 | MakeForm(Part,"Cyl") | |
1203 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1204 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1205 | MakeForm(Part,"Wedge") | |
1206 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1207 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1208 | MakeForm(Hole,"Cyl") | |
1209 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1210 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1211 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1212 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1213 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1214 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1215 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1216 | coroutine.resume(coroutine.create(function() | |
1217 | while wait() do | |
1218 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1219 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1220 | end | |
1221 | end)) | |
1222 | ||
1223 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1224 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1225 | ||
1226 | for _, c in pairs(Weapon:GetDescendants()) do | |
1227 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1228 | c.Material = "Glass" | |
1229 | c.Color = C3(0,0,0) | |
1230 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1231 | c.Color = C3(1,0,0) | |
1232 | c.Material = "Neon" | |
1233 | end | |
1234 | end | |
1235 | ||
1236 | Weapon.Parent = Character | |
1237 | for _, c in pairs(Weapon:GetChildren()) do | |
1238 | if c.ClassName == "Part" then | |
1239 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1240 | end | |
1241 | end | |
1242 | function swait(num) | |
1243 | if num == 0 or num == nil then | |
1244 | ArtificialHB.Event:wait() | |
1245 | else | |
1246 | for i = 0, num do | |
1247 | ArtificialHB.Event:wait() | |
1248 | end | |
1249 | end | |
1250 | end | |
1251 | ||
1252 | function chatfunc(text) | |
1253 | local chat = coroutine.wrap(function() | |
1254 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1255 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1256 | end | |
1257 | local Bill = Instance.new("BillboardGui",Character) | |
1258 | Bill.Size = UDim2.new(0,100,0,40) | |
1259 | Bill.StudsOffset = Vector3.new(0,3,0) | |
1260 | Bill.Adornee = Character.Head | |
1261 | Bill.Name = "TalkingBillBoard" | |
1262 | local Hehe = Instance.new("TextLabel",Bill) | |
1263 | Hehe.BackgroundTransparency = 1 | |
1264 | Hehe.BorderSizePixel = 0 | |
1265 | Hehe.Text = "" | |
1266 | Hehe.Font = "Bodoni" | |
1267 | Hehe.TextSize = 40 | |
1268 | Hehe.TextStrokeTransparency = 0 | |
1269 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
1270 | coroutine.resume(coroutine.create(function() | |
1271 | while Hehe ~= nil do | |
1272 | swait() | |
1273 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1274 | Hehe.Rotation = math.random(-5,5) | |
1275 | Hehe.TextColor3 = Color3.new(255, 0, 0) | |
1276 | Hehe.TextStrokeColor3 = Color3.new(17, 17, 17) | |
1277 | end | |
1278 | end)) | |
1279 | for i = 1,string.len(text),1 do | |
1280 | swait() | |
1281 | Hehe.Text = string.sub(text,1,i) | |
1282 | end | |
1283 | swait(90)--Re[math.random(1, 93)] | |
1284 | for i = 0, 1, .025 do | |
1285 | swait() | |
1286 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
1287 | Hehe.TextStrokeTransparency = i | |
1288 | Hehe.TextTransparency = i | |
1289 | end | |
1290 | Bill:Destroy() | |
1291 | end) | |
1292 | chat() | |
1293 | end | |
1294 | ||
1295 | function onChatted(msg) | |
1296 | chatfunc(msg) | |
1297 | end | |
1298 | ||
1299 | Player.Chatted:connect(onChatted) | |
1300 | ||
1301 | local SKILLTEXTCOLOR = C3(1,0,0) | |
1302 | local SKILLFONT = "Antique" | |
1303 | local SKILLTEXTSIZE = 7 | |
1304 | ||
1305 | Humanoid.Died:connect(function() | |
1306 | ATTACK = true | |
1307 | end) | |
1308 | ||
1309 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1310 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1311 | local SKILL3FRAME = 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 3 Frame") | |
1312 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.2, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1313 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.2, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1314 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.3, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1315 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.3, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
1316 | local SKILL8FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 8 Frame") | |
1317 | ||
1318 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Hell Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
1319 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Teleport", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
1320 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Ground Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
1321 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] Ultimate Supernova", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
1322 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[B] Ultimate Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
1323 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[P] Dance", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 6") | |
1324 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[T] Taunt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 7") | |
1325 | local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[G] Hell Pure", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 8") | |
1326 | ||
1327 | function printbye(Name) | |
1328 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
1329 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1330 | end | |
1331 | ||
1332 | workspace.ChildAdded:connect(function(instance) | |
1333 | for BANISH = 1, #TOBANISH do | |
1334 | if TOBANISH[BANISH] ~= nil then | |
1335 | if instance.Name == TOBANISH[BANISH] then | |
1336 | coroutine.resume(coroutine.create(function() | |
1337 | printbye(instance.Name) | |
1338 | instance:ClearAllChildren() | |
1339 | Debris:AddItem(instance,0.0005) | |
1340 | end)) | |
1341 | end | |
1342 | end | |
1343 | end | |
1344 | end) | |
1345 | ||
1346 | chatfunc("im back from the dead") | |
1347 | wait(4) | |
1348 | chatfunc("IM BACK TO KILL YOU") | |
1349 | wait(4) | |
1350 | chatfunc("iM...") | |
1351 | wait(3) | |
1352 | chatfunc("Ultimate justice God!") | |
1353 | --//=================================\\ | |
1354 | --|| DAMAGING | |
1355 | --\\=================================// | |
1356 | ||
1357 | function Banish(Foe) | |
1358 | if Foe then | |
1359 | coroutine.resume(coroutine.create(function() | |
1360 | --if game.Players:FindFirstChild(Foe.Name) then | |
1361 | table.insert(TOBANISH,Foe.Name) | |
1362 | printbye(Foe.Name) | |
1363 | --end | |
1364 | Foe.Archivable = true | |
1365 | local CLONE = Foe:Clone() | |
1366 | Foe:Destroy() | |
1367 | CLONE.Parent = Effects | |
1368 | CLONE:BreakJoints() | |
1369 | local MATERIALS = {"Glass","Neon"} | |
1370 | for _, c in pairs(CLONE:GetDescendants()) do | |
1371 | if c:IsA("BasePart") then | |
1372 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1373 | CreateSound(340722848, c, 10, 1, false) | |
1374 | end | |
1375 | c.Anchored = true | |
1376 | c.Transparency = c.Transparency + 0.2 | |
1377 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1378 | c.Color = C3(1,0,0) | |
1379 | if c.ClassName == "MeshPart" then | |
1380 | c.TextureID = "" | |
1381 | end | |
1382 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1383 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1384 | end | |
1385 | if c:FindFirstChildOfClass("Decal") then | |
1386 | c:FindFirstChildOfClass("Decal"):remove() | |
1387 | end | |
1388 | c.Name = "Banished" | |
1389 | c.CanCollide = false | |
1390 | else | |
1391 | c:remove() | |
1392 | end | |
1393 | end | |
1394 | local A = false | |
1395 | for i = 1, 35 do | |
1396 | if A == false then | |
1397 | A = true | |
1398 | elseif A == true then | |
1399 | A = false | |
1400 | end | |
1401 | for _, c in pairs(CLONE:GetDescendants()) do | |
1402 | if c:IsA("BasePart") then | |
1403 | c.Anchored = true | |
1404 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1405 | c.Transparency = c.Transparency + 0.8/35 | |
1406 | if A == false then | |
1407 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1408 | elseif A == true then | |
1409 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1410 | end | |
1411 | end | |
1412 | end | |
1413 | Swait() | |
1414 | end | |
1415 | CLONE:remove() | |
1416 | end)) | |
1417 | end | |
1418 | end | |
1419 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1420 | local CHILDREN = workspace:GetDescendants() | |
1421 | for index, CHILD in pairs(CHILDREN) do | |
1422 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1423 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1424 | if HUM then | |
1425 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1426 | if TORSO then | |
1427 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1428 | if ISBANISH == true then | |
1429 | Banish(CHILD) | |
1430 | else | |
1431 | if ISBANISH == "Gravity" then | |
1432 | HUM.PlatformStand = true | |
1433 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1434 | local grav = Instance.new("BodyPosition",TORSO) | |
1435 | grav.D = 15 | |
1436 | grav.P = 20000 | |
1437 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1438 | grav.position = TORSO.Position | |
1439 | grav.Name = "V3BanishForce"..Player.Name | |
1440 | else | |
1441 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1442 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1443 | end | |
1444 | else | |
1445 | HUM.PlatformStand = false | |
1446 | end | |
1447 | end | |
1448 | elseif ISBANISH == "Gravity" then | |
1449 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1450 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1451 | HUM.PlatformStand = false | |
1452 | end | |
1453 | end | |
1454 | end | |
1455 | end | |
1456 | end | |
1457 | end | |
1458 | end | |
1459 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
1460 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
1461 | local mesh = IT("SpecialMesh",wave) | |
1462 | mesh.MeshType = "Sphere" | |
1463 | mesh.Scale = SIZE | |
1464 | mesh.Offset = VT(0,0,0) | |
1465 | wave.CFrame = CFRAME | |
1466 | coroutine.resume(coroutine.create(function(PART) | |
1467 | for i = 1, WAIT do | |
1468 | Swait() | |
1469 | mesh.Scale = mesh.Scale + GROW | |
1470 | wave.Transparency = wave.Transparency + (1/WAIT) | |
1471 | if wave.Transparency > 0.99 then | |
1472 | wave:remove() | |
1473 | end | |
1474 | end | |
1475 | end)) | |
1476 | end | |
1477 | function MagicSpheres(size,waitt,cframe,color) | |
1478 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1)) | |
1479 | local mesh = IT("SpecialMesh",wave) | |
1480 | mesh.MeshType = "Sphere" | |
1481 | mesh.Scale = VT(size,size,size) | |
1482 | mesh.Offset = VT(0,0,0) | |
1483 | wave.CFrame = cframe | |
1484 | coroutine.resume(coroutine.create(function(PART) | |
1485 | for i = 1, waitt do | |
1486 | Swait() | |
1487 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
1488 | wave.Transparency = wave.Transparency + (1/waitt) | |
1489 | if wave.Transparency > 0.99 then | |
1490 | wave:remove() | |
1491 | end | |
1492 | end | |
1493 | end)) | |
1494 | end | |
1495 | ||
1496 | function MagicSpheres2(size,waitt,cframe,color) | |
1497 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1)) | |
1498 | local mesh = IT("SpecialMesh",wave) | |
1499 | mesh.MeshType = "Sphere" | |
1500 | mesh.Scale = VT(size,size,size) | |
1501 | mesh.Offset = VT(0,0,0) | |
1502 | wave.CFrame = cframe | |
1503 | coroutine.resume(coroutine.create(function(PART) | |
1504 | for i = 1, waitt do | |
1505 | Swait() | |
1506 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
1507 | wave.Transparency = wave.Transparency - (1/waitt) | |
1508 | end | |
1509 | wave:remove() | |
1510 | end)) | |
1511 | end | |
1512 | ||
1513 | function MagicBlock(size,waitt,part,offset,color) | |
1514 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size)) | |
1515 | local mesh = IT("BlockMesh",wave) | |
1516 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0)) | |
1517 | coroutine.resume(coroutine.create(function(PART) | |
1518 | for i = 1, waitt do | |
1519 | Swait() | |
1520 | mesh.Scale = mesh.Scale + VT(size/15,size/15,size/15) | |
1521 | wave.CFrame = CF(wave.Position) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1522 | wave.Transparency = wave.Transparency + (1/waitt) | |
1523 | if wave.Transparency > 0.99 then | |
1524 | wave:remove() | |
1525 | end | |
1526 | end | |
1527 | end)) | |
1528 | end | |
1529 | --//=================================\\ | |
1530 | --|| ATTACK FUNCTIONS AND STUFF | |
1531 | --\\=================================// | |
1532 | local LAUGHS = {"907329532"} | |
1533 | ||
1534 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1535 | MakeForm(RightHole,"Cyl") | |
1536 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1537 | MakeForm(LeftHole,"Cyl") | |
1538 | ||
1539 | function getbloody(victim,amount) | |
1540 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
1541 | PART.CFrame = victim.CFrame | |
1542 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1543 | Debris:AddItem(PART,5) | |
1544 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1545 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1546 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1547 | local prtcl = asd:Clone() | |
1548 | prtcl.Parent = PART | |
1549 | prtcl:Emit(amount*10) | |
1550 | end | |
1551 | ||
1552 | function Kill(Char) | |
1553 | local NewCharacter = IT("Model",Effects) | |
1554 | NewCharacter.Name = "Ow im ded ;-;" | |
1555 | for _, c in pairs(Char:GetDescendants()) do | |
1556 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1557 | if c.Parent == Char then | |
1558 | getbloody(c,5) | |
1559 | end | |
1560 | c:BreakJoints() | |
1561 | c.Material = "Glass" | |
1562 | c.Color = C3(0.5,0,0) | |
1563 | c.CanCollide = true | |
1564 | c.Transparency = 0.3 | |
1565 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1566 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1567 | end | |
1568 | if c.Name == "Head" then | |
1569 | c:ClearAllChildren() | |
1570 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1571 | end | |
1572 | if c.ClassName == "MeshPart" then | |
1573 | c.TextureID = "" | |
1574 | end | |
1575 | if c:FindFirstChildOfClass("BodyPosition") then | |
1576 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1577 | end | |
1578 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1579 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1580 | end | |
1581 | c.Parent = NewCharacter | |
1582 | c.Name = "DeadPart" | |
1583 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1584 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1585 | end | |
1586 | end | |
1587 | Char:remove() | |
1588 | Debris:AddItem(NewCharacter,5) | |
1589 | end | |
1590 | ||
1591 | function Colorful_Death() | |
1592 | ATTACK = true | |
1593 | Rooted = false | |
1594 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1595 | Swait() | |
1596 | turnto(Mouse.Hit.p) | |
1597 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1598 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1599 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1600 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1601 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1602 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1603 | end | |
1604 | repeat | |
1605 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1606 | Swait() | |
1607 | turnto(Mouse.Hit.p) | |
1608 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1609 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1610 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1611 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1612 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1613 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1614 | end | |
1615 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1616 | SpawnTrail(Hole.Position,POS) | |
1617 | if HIT ~= nil then | |
1618 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1619 | Banish(HIT.Parent) | |
1620 | end | |
1621 | end | |
1622 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,7.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1623 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1624 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1625 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1626 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1627 | Swait() | |
1628 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1629 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1630 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1631 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1632 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1633 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1634 | end | |
1635 | until KEYHOLD == false | |
1636 | ATTACK = false | |
1637 | Rooted = false | |
1638 | end | |
1639 | function Taunt() | |
1640 | ATTACK = true | |
1641 | Rooted = true | |
1642 | local TAUNT = CreateSound(907333294, Torso, 7, 1, false) | |
1643 | repeat | |
1644 | Swait() | |
1645 | TAUNT.Parent = Torso | |
1646 | TAUNT.Playing = true | |
1647 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1648 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1649 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1650 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1651 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1652 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1653 | until TAUNT.TimePosition >= 1.25 | |
1654 | for i=0, 1.6, 0.1 / Animation_Speed do | |
1655 | Swait() | |
1656 | TAUNT.Parent = Torso | |
1657 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
1658 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1659 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1660 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1661 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1662 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1663 | end | |
1664 | ATTACK = false | |
1665 | Rooted = false | |
1666 | end | |
1667 | function TakeOnMe() | |
1668 | Speed = 5 | |
1669 | local MEME = CreateSound(1501357995, Effects, 2, 1, false) | |
1670 | ATTACK = true | |
1671 | Rooted = false | |
1672 | local DANCE = true | |
1673 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
1674 | if NEWKEY == "p" then | |
1675 | DANCE = false | |
1676 | end | |
1677 | end) | |
1678 | PLAYSONG = false | |
1679 | while true do | |
1680 | for i = 1, 15 do | |
1681 | Swait() | |
1682 | MEME.Parent = Effects | |
1683 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1684 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1685 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1686 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1687 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1688 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1689 | end | |
1690 | if DANCE == false then | |
1691 | break | |
1692 | end | |
1693 | for i = 1, 15 do | |
1694 | Swait() | |
1695 | MEME.Parent = Effects | |
1696 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1697 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1698 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1699 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1700 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1701 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1702 | end | |
1703 | end | |
1704 | PLAYSONG = true | |
1705 | KEY:Disconnect() | |
1706 | MEME:remove() | |
1707 | Speed = 25 | |
1708 | ATTACK = false | |
1709 | Rooted = false | |
1710 | end | |
1711 | function AttackTemplate() | |
1712 | ATTACK = true | |
1713 | Rooted = false | |
1714 | for i=0, 1, 0.1 / Animation_Speed do | |
1715 | Swait() | |
1716 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1717 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1718 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1719 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1720 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1721 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1722 | end | |
1723 | ATTACK = false | |
1724 | Rooted = false | |
1725 | end | |
1726 | function Deathbound() | |
1727 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
1728 | ATTACK = true | |
1729 | Rooted = true | |
1730 | for i=0, 1, 0.1 / Animation_Speed do | |
1731 | Swait() | |
1732 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1733 | 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) | |
1734 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1735 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1736 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1737 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1738 | end | |
1739 | local DONE = false | |
1740 | local GATE = nil | |
1741 | local GATESPIN = true | |
1742 | coroutine.resume(coroutine.create(function() | |
1743 | repeat | |
1744 | Swait() | |
1745 | if GATE ~= nil then | |
1746 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
1747 | end | |
1748 | until GATESPIN == false | |
1749 | end)) | |
1750 | coroutine.resume(coroutine.create(function() | |
1751 | repeat | |
1752 | Swait() | |
1753 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1754 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1755 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1756 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1757 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1758 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1759 | until DONE == true | |
1760 | Swait(50) | |
1761 | for i = 1, 35 do | |
1762 | Swait(4) | |
1763 | local FIRED = false | |
1764 | local CHILDREN = workspace:GetDescendants() | |
1765 | for index, CHILD in pairs(CHILDREN) do | |
1766 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1767 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1768 | if HUM then | |
1769 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1770 | if TORSO then | |
1771 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1772 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1773 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1774 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6}) | |
1775 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1776 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1777 | Banish(CHILD) | |
1778 | FIRED = true | |
1779 | break | |
1780 | end | |
1781 | end | |
1782 | end | |
1783 | end | |
1784 | end | |
1785 | if FIRED == false then | |
1786 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1787 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6}) | |
1788 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1789 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1790 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1791 | if HITBOD ~= nil then | |
1792 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1793 | Kill(HITBOD.Parent) | |
1794 | end | |
1795 | end | |
1796 | end | |
1797 | end | |
1798 | for i = 1, 45 do | |
1799 | Swait() | |
1800 | GATE.Size = GATE.Size - VT(3,0,3) | |
1801 | end | |
1802 | GATESPIN = false | |
1803 | GATE:remove() | |
1804 | end)) | |
1805 | Swait(15) | |
1806 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1807 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Teal", "Gate", VT(0,0,0)) | |
1808 | local DECAL = IT("Decal",GATE) | |
1809 | DECAL.Texture = "http://www.roblox.com/asset/?id=68854060" | |
1810 | DECAL.Face = "Top" | |
1811 | GATE.CFrame = CF(HITPOS) | |
1812 | CreateSound(160772554, GATE, 7, 1.3, false) | |
1813 | for i = 1, 45 do | |
1814 | Swait() | |
1815 | GATE.Size = GATE.Size + VT(3,0,3) | |
1816 | end | |
1817 | CreateSound(213603013, RightHole, 7, 1, false) | |
1818 | CreateSound(213603013, LeftHole, 7, 1, false) | |
1819 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1820 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1821 | ATTACK = false | |
1822 | Rooted = false | |
1823 | DONE = true | |
1824 | end | |
1825 | function Banisher_Burn() | |
1826 | ATTACK = true | |
1827 | Rooted = true | |
1828 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
1829 | for i=0, 1, 0.1 / Animation_Speed do | |
1830 | Swait() | |
1831 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1832 | 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) | |
1833 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1834 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1835 | 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) | |
1836 | 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) | |
1837 | end | |
1838 | coroutine.resume(coroutine.create(function() | |
1839 | local POS = Mouse.Hit.p | |
1840 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Strike", VT(0,2000,0)) | |
1841 | MakeForm(RAY,"Cyl") | |
1842 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,0,0)) | |
1843 | MakeForm(SPHERE,"Ball") | |
1844 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Strike", VT(0,0,0)) | |
1845 | MakeForm(SHIELD,"Ball") | |
1846 | SHIELD.CFrame = CF(POS) | |
1847 | RAY.CFrame = CF(POS) | |
1848 | SPHERE.CFrame = CF(POS) | |
1849 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
1850 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
1851 | for i = 1, 200 do | |
1852 | Swait() | |
1853 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,255,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1854 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
1855 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
1856 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
1857 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
1858 | end | |
1859 | for i = 1, 45 do | |
1860 | Swait() | |
1861 | RAY.Transparency = RAY.Transparency + 1/45 | |
1862 | SPHERE.Transparency = RAY.Transparency | |
1863 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
1864 | end | |
1865 | RAY:remove() | |
1866 | SHIELD:remove() | |
1867 | SPHERE:remove() | |
1868 | end)) | |
1869 | for i=0, 1, 0.1 / Animation_Speed do | |
1870 | Swait() | |
1871 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1872 | 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) | |
1873 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1874 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1875 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1876 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1877 | end | |
1878 | ATTACK = false | |
1879 | Rooted = false | |
1880 | end | |
1881 | function SpawnSmite(POS) | |
1882 | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) | |
1883 | local EMITPOS = HITPOS | |
1884 | if HITFLOOR ~= nil then | |
1885 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then | |
1886 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
1887 | EMITPOS = HITPOS | |
1888 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1889 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) | |
1890 | EMITPOS = HITPOS | |
1891 | end | |
1892 | end | |
1893 | if HITFLOOR ~= nil then | |
1894 | ApplyAoE(EMITPOS,10) | |
1895 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
1896 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1897 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1898 | for i = 1, 5 do | |
1899 | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) | |
1900 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
1901 | end | |
1902 | end | |
1903 | end | |
1904 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
1905 | coroutine.resume(coroutine.create(function() | |
1906 | local METEOR = IT("Model",Effects) | |
1907 | METEOR.Name = "Meteorite" | |
1908 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
1909 | METEOR.PrimaryPart = CENTER | |
1910 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
1911 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1912 | for i = 1, 15 do | |
1913 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "White", "Fire", VT(5.1,1,5.1)*SIZE) | |
1914 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1915 | end | |
1916 | if ISDEBREE ~= true then | |
1917 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1918 | else | |
1919 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1920 | end | |
1921 | local IMPACT = false | |
1922 | CreateSound(463593339, CENTER, 10, 0.6) | |
1923 | if SIZE >= 3.5 then | |
1924 | for i = 1, MRANDOM(3,7) do | |
1925 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
1926 | end | |
1927 | end | |
1928 | for i = 1, 200 do | |
1929 | Swait() | |
1930 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
1931 | if HITFLOOR == nil then | |
1932 | local ORI = CENTER.Orientation | |
1933 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1934 | else | |
1935 | if HITFLOOR.Anchored == true then | |
1936 | CreateDebreeRing1(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
1937 | CreateFlyingDebree1(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
1938 | end | |
1939 | IMPACT = true | |
1940 | break | |
1941 | end | |
1942 | end | |
1943 | if IMPACT == true then | |
1944 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1945 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) | |
1946 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1947 | ApplyAoE(CENTER.Position,30*SIZE) | |
1948 | end | |
1949 | METEOR:remove() | |
1950 | end)) | |
1951 | end | |
1952 | function Teleport() | |
1953 | ATTACK = true | |
1954 | Rooted = false | |
1955 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1956 | Swait() | |
1957 | 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) | |
1958 | 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) | |
1959 | end | |
1960 | for e = 1, #BODY do | |
1961 | if BODY[e] ~= nil then | |
1962 | local STUFF = BODY[e] | |
1963 | local PART = STUFF[1] | |
1964 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
1965 | local PRT = PART:Clone() | |
1966 | PRT.Anchored = true | |
1967 | PRT.CanCollide = false | |
1968 | PRT.Material = "Neon" | |
1969 | PRT.Color = C3(1,0,0) | |
1970 | PRT.Name = "WarpEffect" | |
1971 | PRT.Parent = Effects | |
1972 | PRT.CFrame = PART.CFrame | |
1973 | PRT:BreakJoints() | |
1974 | if PRT:FindFirstChildOfClass("Sound") then | |
1975 | PRT:FindFirstChildOfClass("Sound"):remove() | |
1976 | end | |
1977 | if PRT:FindFirstChildOfClass("Decal") then | |
1978 | PRT:FindFirstChildOfClass("Decal"):remove() | |
1979 | end | |
1980 | coroutine.resume(coroutine.create(function() | |
1981 | for i = 1, 100 do | |
1982 | Swait() | |
1983 | PRT.Transparency = PRT.Transparency + 1/100 | |
1984 | end | |
1985 | PRT:remove() | |
1986 | end)) | |
1987 | end | |
1988 | end | |
1989 | end | |
1990 | CreateSound(217767125, Torso, 10, 1) | |
1991 | local POS = RootPart.Orientation | |
1992 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
1993 | RootPart.Orientation = POS | |
1994 | RootJoint.Parent = RootPart | |
1995 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1996 | Swait() | |
1997 | 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) | |
1998 | 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) | |
1999 | end | |
2000 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2001 | Swait() | |
2002 | 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) | |
2003 | end | |
2004 | ATTACK = false | |
2005 | Rooted = false | |
2006 | end | |
2007 | function Pure_Night() | |
2008 | ATTACK = true | |
2009 | Rooted = true | |
2010 | local AIMPOS = Mouse.Hit.p | |
2011 | local AIM,AIMPOS = CastProperRay(AIMPOS+VT(0,1,0),AIMPOS,10000,Character) | |
2012 | coroutine.resume(coroutine.create(function() | |
2013 | local RAYS = {} | |
2014 | for i = 1, 4 do | |
2015 | local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Really blue", "Ray", VT(50,2000,50)) | |
2016 | MakeForm(RAY,"Cyl") | |
2017 | RAY.Mesh.Scale = VT(1,1.1,1) | |
2018 | table.insert(RAYS,RAY) | |
2019 | end | |
2020 | CreateSound(348663022, Effects, 2, 1.2, false) | |
2021 | for i = 1, 100 do | |
2022 | Swait() | |
2023 | for e = 1, #RAYS do | |
2024 | if RAYS[e] ~= nil then | |
2025 | local RAY = RAYS[e] | |
2026 | RAY.CFrame = CF(AIMPOS+VT(0,1000,0))*ANGLES(RAD(0),RAD(90*e),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(50-(i/2)))*CF(0,-1000,0) | |
2027 | RAY.Transparency = RAY.Transparency - 0.01 | |
2028 | end | |
2029 | end | |
2030 | end | |
2031 | for i = 1, 20 do | |
2032 | Swait() | |
2033 | for e = 1, #RAYS do | |
2034 | if RAYS[e] ~= nil then | |
2035 | local RAY = RAYS[e] | |
2036 | RAY.Mesh.Scale = RAY.Mesh.Scale - VT(1/20,0,1/20) | |
2037 | end | |
2038 | end | |
2039 | end | |
2040 | wait(0.3) | |
2041 | for i = 1, 16 do | |
2042 | local POS = CF(AIMPOS)*ANGLES(RAD(0),RAD(0,360),RAD(0))*CF(0,0,MRANDOM(0,5)).p | |
2043 | SpawnTrail(POS+VT(0,200,0),POS) | |
2044 | end | |
2045 | for i = 1, 4 do | |
2046 | CreateDebreeRing2(AIM,AIMPOS-VT(0,3,0),5*i,VT(5,5,5)*i,5) | |
2047 | end | |
2048 | ||
2049 | CreateFlyingDebree2(AIM,CF(AIMPOS),7,VT(3,3,3),5,185,false) | |
2050 | CreateFlyingDebree2(AIM,CF(AIMPOS),7,VT(6,6,6),5,285,false) | |
2051 | CreateSound(130972023, Effects, 2, 1, false) | |
2052 | local POS = Mouse.Hit.p | |
2053 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(0,0,0)) | |
2054 | MakeForm(RAY,"Cyl") | |
2055 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "White", "Strike", VT(130,130,130)) | |
2056 | MakeForm(SPHERE,"Ball") | |
2057 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Strike", VT(120,120,120)) | |
2058 | MakeForm(SHIELD,"Ball") | |
2059 | SHIELD.CFrame = CF(AIMPOS) | |
2060 | RAY.CFrame = CF(AIMPOS) | |
2061 | SPHERE.CFrame = CF(AIMPOS) | |
2062 | local CFRAME = CF(SPHERE.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2063 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
2064 | for i = 1, 200 do | |
2065 | Swait() | |
2066 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(SPHERE.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = CF(RAY.Position), RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1,1,1), SoundID = "444667859", SoundPitch = 2, SoundVolume = nil}) | |
2067 | MagicSphere(VT(0,0,0),45,SPHERE.CFrame,"Really red",VT(5,20,5)) | |
2068 | RAY.Size = RAY.Size + VT(0,0,0) | |
2069 | SPHERE.Size = SPHERE.Size + VT(0.05,0.05,0.05) | |
2070 | SHIELD.Size = SPHERE.Size + VT(0.05,0.05,0.05) | |
2071 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
2072 | end | |
2073 | for i = 1, 45 do | |
2074 | Swait() | |
2075 | RAY.Transparency = RAY.Transparency + 1/45 | |
2076 | SPHERE.Transparency = RAY.Transparency | |
2077 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
2078 | end | |
2079 | RAY:remove() | |
2080 | SHIELD:remove() | |
2081 | SPHERE:remove() | |
2082 | end)) | |
2083 | ATTACK = false | |
2084 | Rooted = false | |
2085 | end | |
2086 | function Nuke() | |
2087 | ATTACK = true | |
2088 | Rooted = true | |
2089 | local CHARGE = false | |
2090 | local BLASTS = {468991944, 468991990} | |
2091 | coroutine.resume(coroutine.create(function() | |
2092 | repeat | |
2093 | Swait() | |
2094 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
2095 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
2096 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
2097 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
2098 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -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)), 0.1 / Animation_Speed) | |
2099 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
2100 | until CHARGE == true | |
2101 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
2102 | Swait() | |
2103 | WACKYEFFECT({ | |
2104 | Time = 15, | |
2105 | EffectType = "Sphere", | |
2106 | Size = VT(60, 60, 60), | |
2107 | Size2 = VT(0, 0, 0), | |
2108 | Transparency = 1, | |
2109 | Transparency2 = 0.7, | |
2110 | CFrame = CF(RootPart.Position), | |
2111 | MoveToPos = nil, | |
2112 | RotationX = 0, | |
2113 | RotationY = 0, | |
2114 | RotationZ = 0, | |
2115 | Material = "Neon", | |
2116 | Color = C3(1, 1, 1), | |
2117 | SoundID = nil, | |
2118 | SoundPitch = nil, | |
2119 | SoundVolume = nil | |
2120 | }) | |
2121 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2122 | 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) | |
2123 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-50 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2124 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(50 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2125 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -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) | |
2126 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -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) | |
2127 | end | |
2128 | coroutine.resume(coroutine.create(function() | |
2129 | local POS = RootPart.Position | |
2130 | wait(0.2) | |
2131 | for i = 1, 5 do | |
2132 | WACKYEFFECT({ | |
2133 | Time = 65, | |
2134 | EffectType = "Sphere", | |
2135 | Size = VT(2, 2, 2), | |
2136 | Size2 = VT(0, 0, 500), | |
2137 | Transparency = 1, | |
2138 | Transparency2 = 0, | |
2139 | CFrame = CF(POS), | |
2140 | MoveToPos = nil, | |
2141 | RotationX = MRANDOM(-2, 2), | |
2142 | RotationY = MRANDOM(-12, 12), | |
2143 | RotationZ = MRANDOM(-2, 2), | |
2144 | Material = "Neon", | |
2145 | Color = C3(1, 1, 1), | |
2146 | SoundID = nil, | |
2147 | SoundPitch = nil, | |
2148 | SoundVolume = nil | |
2149 | }) | |
2150 | end | |
2151 | wait(1) | |
2152 | SHAKECAM(POS, 9999999999, 25, 25) | |
2153 | ApplyAoE(POS, 450) | |
2154 | WACKYEFFECT({ | |
2155 | Time = 85, | |
2156 | EffectType = "Sphere", | |
2157 | Size = VT(120, 120, 120), | |
2158 | Size2 = VT(350, 350, 350), | |
2159 | Transparency = 0, | |
2160 | Transparency2 = 1, | |
2161 | CFrame = CF(POS), | |
2162 | MoveToPos = nil, | |
2163 | RotationX = 0, | |
2164 | RotationY = 0, | |
2165 | RotationZ = 0, | |
2166 | Material = "Neon", | |
2167 | Color = C3(1, 1, 1), | |
2168 | SoundID = nil, | |
2169 | SoundPitch = 1, | |
2170 | SoundVolume = 10 | |
2171 | }) | |
2172 | for i = 1, 20 do | |
2173 | WACKYEFFECT({ | |
2174 | Time = 85, | |
2175 | EffectType = "Sphere", | |
2176 | Size = VT(120, 120, 120), | |
2177 | Size2 = VT(120, 120, 144) + VT(i * 3, i * 3, i * 3), | |
2178 | Transparency = 0.8, | |
2179 | Transparency2 = 1, | |
2180 | CFrame = CF(POS), | |
2181 | MoveToPos = nil, | |
2182 | RotationX = 0, | |
2183 | RotationY = 0, | |
2184 | RotationZ = 0, | |
2185 | Material = "Neon", | |
2186 | Color = C3(1, 1, 1), | |
2187 | SoundID = nil, | |
2188 | SoundPitch = 1, | |
2189 | SoundVolume = 10 | |
2190 | }) | |
2191 | WACKYEFFECT({ | |
2192 | Time = 100, | |
2193 | EffectType = "Wave", | |
2194 | Size = VT(25, 2, 25), | |
2195 | Size2 = VT(400, 0, 400) * 1.2, | |
2196 | Transparency = 0, | |
2197 | Transparency2 = 1, | |
2198 | CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2199 | MoveToPos = nil, | |
2200 | RotationX = 0, | |
2201 | RotationY = 0, | |
2202 | RotationZ = 0, | |
2203 | Material = "Neon", | |
2204 | Color = C3(1, 1, 1), | |
2205 | SoundID = nil, | |
2206 | SoundPitch = nil, | |
2207 | SoundVolume = nil | |
2208 | }) | |
2209 | end | |
2210 | local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2211 | for i = 1, 5 do | |
2212 | CreateSound(438666077, Effects, 15, 1 - i / 15, false) | |
2213 | WACKYEFFECT({ | |
2214 | Time = 120, | |
2215 | EffectType = "Wave", | |
2216 | Size = VT(150, 2, 150), | |
2217 | Size2 = VT(300 + i * 170, 0, 300 + i * 170) * 1.2, | |
2218 | Transparency = 0, | |
2219 | Transparency2 = 1, | |
2220 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
2221 | MoveToPos = nil, | |
2222 | RotationX = 0, | |
2223 | RotationY = 0, | |
2224 | RotationZ = 0, | |
2225 | Material = "Neon", | |
2226 | Color = C3(1, 1, 1), | |
2227 | SoundID = nil, | |
2228 | SoundPitch = nil, | |
2229 | SoundVolume = nil | |
2230 | }) | |
2231 | end | |
2232 | end)) | |
2233 | for i = 0, 1, 0.1 / Animation_Speed do | |
2234 | Swait() | |
2235 | 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) | |
2236 | 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) | |
2237 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2238 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2239 | 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) | |
2240 | 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) | |
2241 | end | |
2242 | ATTACK = false | |
2243 | Rooted = false | |
2244 | end)) | |
2245 | for i = 1, 30 do | |
2246 | wait(0.01) | |
2247 | local POS = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(10, 150)) | |
2248 | local HITFLOOR, HITPOS = Raycast(POS.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2249 | if HITFLOOR then | |
2250 | ApplyAoE(HITPOS, 65, true) | |
2251 | local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0)) | |
2252 | WACKYEFFECT({ | |
2253 | Time = 25, | |
2254 | EffectType = "Sphere", | |
2255 | Size = VT(22, 22, 22), | |
2256 | Size2 = VT(85, 85, 85), | |
2257 | Transparency = 0, | |
2258 | Transparency2 = 1, | |
2259 | CFrame = CF(HITPOS), | |
2260 | MoveToPos = nil, | |
2261 | RotationX = 0, | |
2262 | RotationY = 0, | |
2263 | RotationZ = 0, | |
2264 | Material = "Neon", | |
2265 | Color = C3(1, 1, 1), | |
2266 | SoundID = BLASTS[MRANDOM(1, #BLASTS)], | |
2267 | SoundPitch = MRANDOM(9, 12) / 10, | |
2268 | SoundVolume = 10 | |
2269 | }) | |
2270 | for e = 1, 3 do | |
2271 | WACKYEFFECT({ | |
2272 | EffectType = "Wave", | |
2273 | Size = VT(25, 0, 25), | |
2274 | Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6), | |
2275 | Transparency = 0, | |
2276 | Transparency2 = 1, | |
2277 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
2278 | MoveToPos = nil, | |
2279 | RotationX = 0, | |
2280 | RotationY = 3, | |
2281 | RotationZ = 0, | |
2282 | Material = "Neon", | |
2283 | Color = C3(1, 1, 1), | |
2284 | SoundID = nil, | |
2285 | SoundPitch = nil, | |
2286 | SoundVolume = nil | |
2287 | }) | |
2288 | WACKYEFFECT({ | |
2289 | Time = 35, | |
2290 | EffectType = "Sphere", | |
2291 | Size = VT(22, 45, 22), | |
2292 | Size2 = VT(25, 45 + e * 75, 25), | |
2293 | Transparency = 0, | |
2294 | Transparency2 = 1, | |
2295 | CFrame = CF(HITPOS) * TURN, | |
2296 | MoveToPos = nil, | |
2297 | RotationX = 0, | |
2298 | RotationY = 0, | |
2299 | RotationZ = 0, | |
2300 | Material = "Neon", | |
2301 | Color = C3(1, 1, 1), | |
2302 | SoundID = nil, | |
2303 | SoundPitch = MRANDOM(9, 12) / 10, | |
2304 | SoundVolume = 10 | |
2305 | }) | |
2306 | end | |
2307 | end | |
2308 | end | |
2309 | CHARGE = true | |
2310 | end | |
2311 | ||
2312 | --//=================================\\ | |
2313 | --|| ASSIGN THINGS TO KEYS | |
2314 | --\\=================================// | |
2315 | ||
2316 | function MouseUp(Mouse) | |
2317 | HOLD = false | |
2318 | end | |
2319 | ||
2320 | function KeyDown(Key) | |
2321 | KEYHOLD = true | |
2322 | if Key == "z" and ATTACK == false then | |
2323 | Colorful_Death() | |
2324 | end | |
2325 | ||
2326 | if Key == "b" and ATTACK == false then | |
2327 | Banisher_Burn() | |
2328 | end | |
2329 | ||
2330 | if Key == "c" and ATTACK == false then | |
2331 | Nuke() | |
2332 | end | |
2333 | ||
2334 | if Key == "v" and ATTACK == false then | |
2335 | Teleport() | |
2336 | end | |
2337 | ||
2338 | if Key == "t" and ATTACK == false then | |
2339 | Taunt() | |
2340 | end | |
2341 | ||
2342 | if Key == "g" and ATTACK == false then | |
2343 | Pure_Night() | |
2344 | end | |
2345 | ||
2346 | if Key == "p" and ATTACK == false then | |
2347 | TakeOnMe() | |
2348 | end | |
2349 | ||
2350 | if Key == "x" and ATTACK == false then | |
2351 | Deathbound() | |
2352 | end | |
2353 | end | |
2354 | ||
2355 | function KeyUp(Key) | |
2356 | KEYHOLD = false | |
2357 | end | |
2358 | ||
2359 | Mouse.Button1Down:connect(function(NEWKEY) | |
2360 | MouseDown(NEWKEY) | |
2361 | end) | |
2362 | Mouse.Button1Up:connect(function(NEWKEY) | |
2363 | MouseUp(NEWKEY) | |
2364 | end) | |
2365 | Mouse.KeyDown:connect(function(NEWKEY) | |
2366 | KeyDown(NEWKEY) | |
2367 | end) | |
2368 | Mouse.KeyUp:connect(function(NEWKEY) | |
2369 | KeyUp(NEWKEY) | |
2370 | end) | |
2371 | ||
2372 | --//=================================\\ | |
2373 | --\\=================================// | |
2374 | ||
2375 | ||
2376 | function unanchor() | |
2377 | if UNANCHOR == true then | |
2378 | g = Character:GetChildren() | |
2379 | for i = 1, #g do | |
2380 | if g[i].ClassName == "Part" then | |
2381 | g[i].Anchored = false | |
2382 | end | |
2383 | end | |
2384 | end | |
2385 | end | |
2386 | ||
2387 | ||
2388 | --//=================================\\ | |
2389 | --|| WRAP THE WHOLE SCRIPT UP | |
2390 | --\\=================================// | |
2391 | ||
2392 | Humanoid.Changed:connect(function(Jump) | |
2393 | if Jump == "Jump" and (Disable_Jump == true) then | |
2394 | Humanoid.Jump = false | |
2395 | end | |
2396 | end) | |
2397 | ||
2398 | local CONNECT = nil | |
2399 | ||
2400 | while true do | |
2401 | Swait() | |
2402 | ANIMATE.Parent = nil | |
2403 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
2404 | Humanoid = IT("Humanoid",Character) | |
2405 | end | |
2406 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2407 | v:Stop(); | |
2408 | end | |
2409 | SINE = SINE + CHANGE | |
2410 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2411 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2412 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2413 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2414 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2415 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2416 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2417 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2418 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2419 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2420 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2421 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2422 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2423 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2424 | end | |
2425 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2426 | ANIM = "Jump" | |
2427 | if ATTACK == false then | |
2428 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2429 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2430 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2431 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, -0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(-25))* LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2432 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2433 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2434 | end | |
2435 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2436 | ANIM = "Fall" | |
2437 | if ATTACK == false then | |
2438 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2439 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2440 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2441 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, -0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2442 | 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) | |
2443 | 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) | |
2444 | end | |
2445 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2446 | ANIM = "Idle" | |
2447 | if ATTACK == false then | |
2448 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
2449 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
2450 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2451 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -0.4) * ANGLES(RAD(75), RAD(45), RAD(25))* LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2452 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2453 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2454 | end | |
2455 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2456 | ANIM = "Walk" | |
2457 | if ATTACK == false then | |
2458 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2459 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2460 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2461 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2462 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2463 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2464 | end | |
2465 | end | |
2466 | ||
2467 | unanchor() | |
2468 | Humanoid.MaxHealth = "inf" | |
2469 | Humanoid.Health = "inf" | |
2470 | if Rooted == false then | |
2471 | Disable_Jump = false | |
2472 | Humanoid.WalkSpeed = Speed | |
2473 | elseif Rooted == true then | |
2474 | Disable_Jump = true | |
2475 | Humanoid.WalkSpeed = 0 | |
2476 | end | |
2477 | sick.Parent = Torso | |
2478 | sick:resume() | |
2479 | sick.Volume = 5 | |
2480 | sick.Pitch = 1 | |
2481 | sick.SoundId = "rbxassetid://924339757" | |
2482 | sick.Name = "BanishV3Music" | |
2483 | end | |
2484 | ||
2485 | --//=================================\\ | |
2486 | --\\=================================// | |
2487 | ||
2488 | ||
2489 | ||
2490 | ||
2491 | ||
2492 | --//====================================================\\-- | |
2493 | --|| END OF SCRIPT | |
2494 | --\\====================================================//-- |