SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | - | --|| CREATED BY SHACKLUSTER EDIT BY tamloveeif02 |
2 | + | --|| CREATED BY SHACKLUSTER EDIT BY tamloveeif02 |
3 | --\\====================================================//-- | |
4 | ||
5 | wait(0.2) | |
6 | ||
7 | VT = Vector3.new | |
8 | CF = CFrame.new | |
9 | IT = Instance.new | |
10 | RAD = math.rad | |
11 | C3 = Color3.new | |
12 | UD2 = UDim2.new | |
13 | BRICKC = BrickColor.new | |
14 | ANGLES = CFrame.Angles | |
15 | EULER = CFrame.fromEulerAnglesXYZ | |
16 | COS = math.cos | |
17 | ACOS = math.acos | |
18 | SIN = math.sin | |
19 | ASIN = math.asin | |
20 | ABS = math.abs | |
21 | MRANDOM = math.random | |
22 | FLOOR = math.floor | |
23 | ||
24 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
25 | local NEWPART = IT("Part") | |
26 | NEWPART.formFactor = FORMFACTOR | |
27 | NEWPART.Reflectance = REFLECTANCE | |
28 | NEWPART.Transparency = TRANSPARENCY | |
29 | NEWPART.CanCollide = false | |
30 | NEWPART.Locked = true | |
31 | NEWPART.Anchored = true | |
32 | if ANCHOR == false then | |
33 | NEWPART.Anchored = false | |
34 | end | |
35 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
36 | NEWPART.Name = NAME | |
37 | NEWPART.Size = SIZE | |
38 | NEWPART.Position = Torso.Position | |
39 | NEWPART.Material = MATERIAL | |
40 | NEWPART:BreakJoints() | |
41 | NEWPART.Parent = PARENT | |
42 | return NEWPART | |
43 | end | |
44 | ||
45 | function MakeForm(PART,TYPE) | |
46 | if TYPE == "Cyl" then | |
47 | local MSH = IT("CylinderMesh",PART) | |
48 | elseif TYPE == "Ball" then | |
49 | local MSH = IT("SpecialMesh",PART) | |
50 | MSH.MeshType = "Sphere" | |
51 | elseif TYPE == "Wedge" then | |
52 | local MSH = IT("SpecialMesh",PART) | |
53 | MSH.MeshType = "Wedge" | |
54 | end | |
55 | end | |
56 | ||
57 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
58 | local NEWWELD = IT(TYPE) | |
59 | NEWWELD.Part0 = PART0 | |
60 | NEWWELD.Part1 = PART1 | |
61 | NEWWELD.C0 = C0 | |
62 | NEWWELD.C1 = C1 | |
63 | NEWWELD.Parent = PARENT | |
64 | return NEWWELD | |
65 | end | |
66 | Player = game:GetService("Players").LocalPlayer | |
67 | PlayerGui = Player.PlayerGui | |
68 | Cam = workspace.CurrentCamera | |
69 | Backpack = Player.Backpack | |
70 | Character = Player.Character | |
71 | Humanoid = Character.Humanoid | |
72 | Mouse = Player:GetMouse() | |
73 | RootPart = Character["HumanoidRootPart"] | |
74 | Torso = Character["Torso"] | |
75 | Head = Character["Head"] | |
76 | RightArm = Character["Right Arm"] | |
77 | LeftArm = Character["Left Arm"] | |
78 | RightLeg = Character["Right Leg"] | |
79 | LeftLeg = Character["Left Leg"] | |
80 | RootJoint = RootPart["RootJoint"] | |
81 | Neck = Torso["Neck"] | |
82 | RightShoulder = Torso["Right Shoulder"] | |
83 | LeftShoulder = Torso["Left Shoulder"] | |
84 | RightHip = Torso["Right Hip"] | |
85 | LeftHip = Torso["Left Hip"] | |
86 | local sick = Instance.new("Sound",Character) | |
87 | sick.SoundId = "rbxassetid://318062766" | |
88 | sick.Looped = true | |
89 | sick.Volume = 1 | |
90 | local LAUGHS = {834001699,834001752,834001797,834001828} | |
91 | local asd = Instance.new("ParticleEmitter") | |
92 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
93 | asd.LightEmission = .1 | |
94 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
95 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
96 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
97 | asd.Transparency = bbb | |
98 | asd.Size = aaa | |
99 | asd.ZOffset = .9 | |
100 | asd.Acceleration = Vector3.new(0, -15, 0) | |
101 | asd.LockedToPart = false | |
102 | asd.EmissionDirection = "Back" | |
103 | asd.Lifetime = NumberRange.new(1, 2) | |
104 | asd.Rotation = NumberRange.new(-100, 100) | |
105 | asd.RotSpeed = NumberRange.new(-100, 100) | |
106 | asd.Speed = NumberRange.new(10) | |
107 | asd.Enabled = false | |
108 | asd.VelocitySpread = 999 | |
109 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false) | |
110 | local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false) | |
111 | MakeForm(LeftBarrel,"Cyl") | |
112 | local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false) | |
113 | MakeForm(RightBarrel,"Cyl") | |
114 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
115 | MakeForm(LeftHole,"Cyl") | |
116 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
117 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
118 | MakeForm(RightHole,"Cyl") | |
119 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
120 | ||
121 | --//=================================\\ | |
122 | --|| USEFUL VALUES | |
123 | --\\=================================// | |
124 | ||
125 | Animation_Speed = 3 | |
126 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
127 | local Speed = 45 | |
128 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
129 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
130 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
131 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
132 | local DAMAGEMULTIPLIER = 1 | |
133 | local ANIM = "Idle" | |
134 | local ATTACK = false | |
135 | local EQUIPPED = false | |
136 | local HOLD = false | |
137 | local COMBO = 1 | |
138 | local Rooted = false | |
139 | local SINE = 0 | |
140 | local KEYHOLD = false | |
141 | local CHANGE = 2 / Animation_Speed | |
142 | local WALKINGANIM = false | |
143 | local VALUE1 = false | |
144 | local VALUE2 = false | |
145 | local ROBLOXIDLEANIMATION = IT("Animation") | |
146 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
147 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
148 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
149 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
150 | WEAPONGUI.Name = "Weapon GUI" | |
151 | local Effects = IT("Folder", Character) | |
152 | Effects.Name = "Effects" | |
153 | local ANIMATOR = Humanoid.Animator | |
154 | local ANIMATE = Character.Animate | |
155 | local UNANCHOR = true | |
156 | local HITPOS = nil | |
157 | local HITFLOOR = nil | |
158 | local LEFTWINGS = {} | |
159 | local RIGHTWINGS = {} | |
160 | local BODY = {} | |
161 | ||
162 | --//=================================\\ | |
163 | --\\=================================// | |
164 | ||
165 | ||
166 | --//=================================\\ | |
167 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
168 | --\\=================================// | |
169 | ||
170 | ArtificialHB = Instance.new("BindableEvent", script) | |
171 | ArtificialHB.Name = "ArtificialHB" | |
172 | ||
173 | script:WaitForChild("ArtificialHB") | |
174 | ||
175 | frame = Frame_Speed | |
176 | tf = 0 | |
177 | allowframeloss = false | |
178 | tossremainder = false | |
179 | lastframe = tick() | |
180 | script.ArtificialHB:Fire() | |
181 | ||
182 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
183 | tf = tf + s | |
184 | if tf >= frame then | |
185 | if allowframeloss then | |
186 | script.ArtificialHB:Fire() | |
187 | lastframe = tick() | |
188 | else | |
189 | for i = 1, math.floor(tf / frame) do | |
190 | script.ArtificialHB:Fire() | |
191 | end | |
192 | lastframe = tick() | |
193 | end | |
194 | if tossremainder then | |
195 | tf = 0 | |
196 | else | |
197 | tf = tf - frame * math.floor(tf / frame) | |
198 | end | |
199 | end | |
200 | end) | |
201 | ||
202 | --//=================================\\ | |
203 | --\\=================================// | |
204 | ||
205 | --//=================================\\ | |
206 | --|| SOME FUNCTIONS | |
207 | --\\=================================// | |
208 | ||
209 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
210 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
211 | end | |
212 | ||
213 | function PositiveAngle(NUMBER) | |
214 | if NUMBER >= 0 then | |
215 | NUMBER = 0 | |
216 | end | |
217 | return NUMBER | |
218 | end | |
219 | ||
220 | function NegativeAngle(NUMBER) | |
221 | if NUMBER <= 0 then | |
222 | NUMBER = 0 | |
223 | end | |
224 | return NUMBER | |
225 | end | |
226 | ||
227 | function Swait(NUMBER) | |
228 | if NUMBER == 0 or NUMBER == nil then | |
229 | ArtificialHB.Event:wait() | |
230 | else | |
231 | for i = 1, NUMBER do | |
232 | ArtificialHB.Event:wait() | |
233 | end | |
234 | end | |
235 | end | |
236 | ||
237 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
238 | local NEWMESH = IT(MESH) | |
239 | if MESH == "SpecialMesh" then | |
240 | NEWMESH.MeshType = MESHTYPE | |
241 | if MESHID ~= "nil" and MESHID ~= "" then | |
242 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
243 | end | |
244 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
245 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
246 | end | |
247 | end | |
248 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
249 | NEWMESH.Scale = SCALE | |
250 | NEWMESH.Parent = PARENT | |
251 | return NEWMESH | |
252 | end | |
253 | ||
254 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
255 | local NEWPART = IT("Part") | |
256 | NEWPART.formFactor = FORMFACTOR | |
257 | NEWPART.Reflectance = REFLECTANCE | |
258 | NEWPART.Transparency = TRANSPARENCY | |
259 | NEWPART.CanCollide = false | |
260 | NEWPART.Locked = true | |
261 | NEWPART.Anchored = true | |
262 | if ANCHOR == false then | |
263 | NEWPART.Anchored = false | |
264 | end | |
265 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
266 | NEWPART.Name = NAME | |
267 | NEWPART.Size = SIZE | |
268 | NEWPART.Position = Torso.Position | |
269 | NEWPART.Material = MATERIAL | |
270 | NEWPART:BreakJoints() | |
271 | NEWPART.Parent = PARENT | |
272 | return NEWPART | |
273 | end | |
274 | ||
275 | local function weldBetween(a, b) | |
276 | local weldd = Instance.new("ManualWeld") | |
277 | weldd.Part0 = a | |
278 | weldd.Part1 = b | |
279 | weldd.C0 = CFrame.new() | |
280 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
281 | weldd.Parent = a | |
282 | return weldd | |
283 | end | |
284 | ||
285 | ||
286 | function QuaternionFromCFrame(cf) | |
287 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
288 | local trace = m00 + m11 + m22 | |
289 | if trace > 0 then | |
290 | local s = math.sqrt(1 + trace) | |
291 | local recip = 0.5 / s | |
292 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
293 | else | |
294 | local i = 0 | |
295 | if m11 > m00 then | |
296 | i = 1 | |
297 | end | |
298 | if m22 > (i == 0 and m00 or m11) then | |
299 | i = 2 | |
300 | end | |
301 | if i == 0 then | |
302 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
303 | local recip = 0.5 / s | |
304 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
305 | elseif i == 1 then | |
306 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
307 | local recip = 0.5 / s | |
308 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
309 | elseif i == 2 then | |
310 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
311 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
312 | end | |
313 | end | |
314 | end | |
315 | ||
316 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
317 | local xs, ys, zs = x + x, y + y, z + z | |
318 | local wx, wy, wz = w * xs, w * ys, w * zs | |
319 | local xx = x * xs | |
320 | local xy = x * ys | |
321 | local xz = x * zs | |
322 | local yy = y * ys | |
323 | local yz = y * zs | |
324 | local zz = z * zs | |
325 | 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)) | |
326 | end | |
327 | ||
328 | function QuaternionSlerp(a, b, t) | |
329 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
330 | local startInterp, finishInterp; | |
331 | if cosTheta >= 0.0001 then | |
332 | if (1 - cosTheta) > 0.0001 then | |
333 | local theta = ACOS(cosTheta) | |
334 | local invSinTheta = 1 / SIN(theta) | |
335 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
336 | finishInterp = SIN(t * theta) * invSinTheta | |
337 | else | |
338 | startInterp = 1 - t | |
339 | finishInterp = t | |
340 | end | |
341 | else | |
342 | if (1 + cosTheta) > 0.0001 then | |
343 | local theta = ACOS(-cosTheta) | |
344 | local invSinTheta = 1 / SIN(theta) | |
345 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
346 | finishInterp = SIN(t * theta) * invSinTheta | |
347 | else | |
348 | startInterp = t - 1 | |
349 | finishInterp = t | |
350 | end | |
351 | end | |
352 | 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 | |
353 | end | |
354 | ||
355 | function Clerp(a, b, t) | |
356 | local qa = {QuaternionFromCFrame(a)} | |
357 | local qb = {QuaternionFromCFrame(b)} | |
358 | local ax, ay, az = a.x, a.y, a.z | |
359 | local bx, by, bz = b.x, b.y, b.z | |
360 | local _t = 1 - t | |
361 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
362 | end | |
363 | ||
364 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
365 | local frame = IT("Frame") | |
366 | frame.BackgroundTransparency = TRANSPARENCY | |
367 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
368 | frame.Position = POSITION | |
369 | frame.Size = SIZE | |
370 | frame.BackgroundColor3 = COLOR | |
371 | frame.BorderColor3 = BORDERCOLOR | |
372 | frame.Name = NAME | |
373 | frame.Parent = PARENT | |
374 | return frame | |
375 | end | |
376 | ||
377 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
378 | local label = IT("TextLabel") | |
379 | label.BackgroundTransparency = 1 | |
380 | label.Size = UD2(1, 0, 1, 0) | |
381 | label.Position = UD2(0, 0, 0, 0) | |
382 | label.TextColor3 = TEXTCOLOR | |
383 | label.TextStrokeColor3 = BRICKC"Really blue".Color | |
384 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
385 | label.TextTransparency = TRANSPARENCY | |
386 | label.FontSize = TEXTFONTSIZE | |
387 | label.Font = TEXTFONT | |
388 | label.BorderSizePixel = BORDERSIZEPIXEL | |
389 | label.TextScaled = false | |
390 | label.Text = TEXT | |
391 | label.Name = NAME | |
392 | label.Parent = PARENT | |
393 | return label | |
394 | end | |
395 | ||
396 | function NoOutlines(PART) | |
397 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
398 | end | |
399 | ||
400 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
401 | local NEWWELD = IT(TYPE) | |
402 | NEWWELD.Part0 = PART0 | |
403 | NEWWELD.Part1 = PART1 | |
404 | NEWWELD.C0 = C0 | |
405 | NEWWELD.C1 = C1 | |
406 | NEWWELD.Parent = PARENT | |
407 | return NEWWELD | |
408 | end | |
409 | ||
410 | local S = IT("Sound") | |
411 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
412 | local NEWSOUND = nil | |
413 | coroutine.resume(coroutine.create(function() | |
414 | NEWSOUND = S:Clone() | |
415 | NEWSOUND.Parent = PARENT | |
416 | NEWSOUND.Volume = VOLUME | |
417 | NEWSOUND.Pitch = PITCH | |
418 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
419 | NEWSOUND:play() | |
420 | NEWSOUND.Name = "Audio" | |
421 | if DOESLOOP == true then | |
422 | NEWSOUND.Looped = true | |
423 | else | |
424 | repeat Swait() until NEWSOUND.Playing == false | |
425 | NEWSOUND:remove() | |
426 | end | |
427 | end)) | |
428 | return NEWSOUND | |
429 | end | |
430 | ||
431 | function CFrameFromTopBack(at, top, back) | |
432 | local right = top:Cross(back) | |
433 | 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) | |
434 | end | |
435 | ||
436 | --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}) | |
437 | function WACKYEFFECT(Table) | |
438 | local TYPE = (Table.EffectType or "Sphere") | |
439 | local SIZE = (Table.Size or VT(1,1,1)) | |
440 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
441 | local TRANSPARENCY = (Table.Transparency or 0) | |
442 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
443 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
444 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
445 | local ROTATION1 = (Table.RotationX or 0) | |
446 | local ROTATION2 = (Table.RotationY or 0) | |
447 | local ROTATION3 = (Table.RotationZ or 0) | |
448 | local MATERIAL = (Table.Material or "Neon") | |
449 | local COLOR = (Table.Color or C3(1,1,1)) | |
450 | local TIME = (Table.Time or 45) | |
451 | local SOUNDID = (Table.SoundID or nil) | |
452 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
453 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
454 | coroutine.resume(coroutine.create(function() | |
455 | local PLAYSSOUND = false | |
456 | local SOUND = nil | |
457 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
458 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
459 | PLAYSSOUND = true | |
460 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
461 | end | |
462 | EFFECT.Color = COLOR | |
463 | local MSH = nil | |
464 | if TYPE == "Sphere" then | |
465 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
466 | elseif TYPE == "Block" then | |
467 | MSH = IT("BlockMesh",EFFECT) | |
468 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
469 | elseif TYPE == "Box" then | |
470 | MSH = IT("BlockMesh",EFFECT) | |
471 | MSH.Scale = SIZE | |
472 | elseif TYPE == "Wave" then | |
473 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
474 | elseif TYPE == "Ring" then | |
475 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
476 | elseif TYPE == "Slash" then | |
477 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
478 | elseif TYPE == "Round Slash" then | |
479 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
480 | elseif TYPE == "Swirl" then | |
481 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
482 | elseif TYPE == "Skull" then | |
483 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
484 | elseif TYPE == "Crystal" then | |
485 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
486 | end | |
487 | if MSH ~= nil then | |
488 | local MOVESPEED = nil | |
489 | if MOVEDIRECTION ~= nil then | |
490 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
491 | end | |
492 | local GROWTH = SIZE - ENDSIZE | |
493 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
494 | if TYPE == "Block" then | |
495 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
496 | else | |
497 | EFFECT.CFrame = CFRAME | |
498 | end | |
499 | for LOOP = 1, TIME do | |
500 | Swait() | |
501 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
502 | if TYPE == "Wave" then | |
503 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
504 | end | |
505 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
506 | if TYPE == "Block" then | |
507 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
508 | else | |
509 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
510 | end | |
511 | if MOVEDIRECTION ~= nil then | |
512 | local ORI = EFFECT.Orientation | |
513 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
514 | EFFECT.Orientation = ORI | |
515 | end | |
516 | end | |
517 | if PLAYSSOUND == false then | |
518 | EFFECT:remove() | |
519 | else | |
520 | repeat Swait() until SOUND.Playing == false | |
521 | EFFECT:remove() | |
522 | end | |
523 | else | |
524 | if PLAYSSOUND == false then | |
525 | EFFECT:remove() | |
526 | else | |
527 | repeat Swait() until SOUND.Playing == false | |
528 | EFFECT:remove() | |
529 | end | |
530 | end | |
531 | end)) | |
532 | end | |
533 | ||
534 | function Shatter(Part) | |
535 | if Part.Transparency == 0 then | |
536 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0)) | |
537 | Debris:AddItem(SOUNDPART,5) | |
538 | CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false) | |
539 | local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z | |
540 | local SIZESET = SIZE/4 | |
541 | local XOffset = Part.Size.X*1.5/SIZESET | |
542 | local YOffset = Part.Size.Y*1.5/SIZESET | |
543 | local ZOffset = Part.Size.Z*1.5/SIZESET | |
544 | for x = 1, math.ceil(XOffset) do | |
545 | for y = 1, math.ceil(YOffset) do | |
546 | for z = 1, math.ceil(ZOffset) do | |
547 | local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false) | |
548 | SHARD.CanCollide = true | |
549 | SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4)) | |
550 | SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3 | |
551 | Debris:AddItem(SHARD,MRANDOM(10,25)/3) | |
552 | end | |
553 | end | |
554 | end | |
555 | end | |
556 | Part:remove() | |
557 | end | |
558 | ||
559 | function MakeForm(PART,TYPE) | |
560 | if TYPE == "Cyl" then | |
561 | local MSH = IT("CylinderMesh",PART) | |
562 | elseif TYPE == "Ball" then | |
563 | local MSH = IT("SpecialMesh",PART) | |
564 | MSH.MeshType = "Sphere" | |
565 | elseif TYPE == "Wedge" then | |
566 | local MSH = IT("SpecialMesh",PART) | |
567 | MSH.MeshType = "Wedge" | |
568 | end | |
569 | end | |
570 | ||
571 | Debris = game:GetService("Debris") | |
572 | ||
573 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
574 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
575 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
576 | end | |
577 | ||
578 | function turnto(position) | |
579 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
580 | end | |
581 | ||
582 | --//=================================\\ | |
583 | --|| WEAPON CREATION | |
584 | --\\=================================// | |
585 | ||
586 | local Back = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(1,1,0.35),false) | |
587 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0)) | |
588 | ||
589 | local ANGLE = 35 | |
590 | for i = 1, 5 do | |
591 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(0.15,2+(i/2),0.15),false) | |
592 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) | |
593 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(0.25,1,0.25),false) | |
594 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
595 | ANGLE = ANGLE - 15 | |
596 | table.insert(LEFTWINGS,WingWeld) | |
597 | end | |
598 | ANGLE = 35 | |
599 | for i = 1, 5 do | |
600 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(0.15,2+(i/2),0.15),false) | |
601 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) | |
602 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(0.25,1,0.25),false) | |
603 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
604 | ANGLE = ANGLE - 15 | |
605 | table.insert(RIGHTWINGS,WingWeld) | |
606 | end | |
607 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eye", VT(0.3,0.3,0.3),false) | |
608 | local EyeWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0)) | |
609 | local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Really red", "Eye", VT(0.5,0.5,0.29),false) | |
610 | local EyeWeld2 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye2, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0)) | |
611 | ||
612 | local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Eye", VT(0.1,0.1,0.31),false) | |
613 | local EyeWeld3 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye3, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(-25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0)) | |
614 | ||
615 | - | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Cyber Smash", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") |
615 | + | |
616 | local SKILLFONT = "SciFi" | |
617 | local SKILLTEXTSIZE = 6 | |
618 | ||
619 | local naeeym2 = Instance.new("BillboardGui",Character) | |
620 | naeeym2.AlwaysOnTop = true | |
621 | naeeym2.Size = UDim2.new(5,35,2,15) | |
622 | naeeym2.StudsOffset = Vector3.new(0,1.2,0) | |
623 | naeeym2.Adornee = Character.Head | |
624 | naeeym2.Name = "Name" | |
625 | naeeym2.PlayerToHideFrom = Player | |
626 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
627 | tecks2.BackgroundTransparency = 1 | |
628 | tecks2.TextScaled = true | |
629 | tecks2.BorderSizePixel = 0 | |
630 | tecks2.Text = "Reanimate" | |
631 | tecks2.Font = SKILLFONT | |
632 | tecks2.TextSize = 30 | |
633 | tecks2.TextStrokeTransparency = 0 | |
634 | tecks2.TextColor3 = C3(0,0,0) | |
635 | tecks2.TextStrokeColor3 = BRICKC"Really blue".Color | |
636 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
637 | tecks2.Parent = naeeym2 | |
638 | ||
639 | for _, c in pairs(Character:GetChildren()) do | |
640 | if c.ClassName == "Part" then | |
641 | table.insert(BODY,{c,Character}) | |
642 | for _, q in pairs(c:GetChildren()) do | |
643 | if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then | |
644 | table.insert(BODY,{q,c}) | |
645 | end | |
646 | end | |
647 | end | |
648 | end | |
649 | ||
650 | function refit() | |
651 | Character.Parent = workspace | |
652 | for e = 1, #BODY do | |
653 | if BODY[e] ~= nil then | |
654 | local STUFF = BODY[e] | |
655 | local PART = STUFF[1] | |
656 | local PARENT = STUFF[2] | |
657 | PART.Parent = PARENT | |
658 | end | |
659 | end | |
660 | end | |
661 | ||
662 | Humanoid.HealthChanged:connect(function() | |
663 | Humanoid.Parent = nil | |
664 | Humanoid.MaxHealth = "inf" | |
665 | Humanoid.Health = "inf" | |
666 | refit() | |
667 | Humanoid.Parent = Character | |
668 | end) | |
669 | ||
670 | Humanoid.Died:connect(function() | |
671 | Humanoid.Parent = nil | |
672 | Humanoid.MaxHealth = "inf" | |
673 | Humanoid.Health = "inf" | |
674 | refit() | |
675 | - | killnearest(CHILD) |
675 | + | |
676 | end) | |
677 | ||
678 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
679 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
680 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
681 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
682 | ||
683 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Cyber Star", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
684 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Techno Beam", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
685 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Techno Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
686 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Cyber Bound", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
687 | ||
688 | --//=================================\\ | |
689 | --|| DAMAGING | |
690 | --\\=================================// | |
691 | ||
692 | function killnearest(position,range,EFFECT) | |
693 | for i,v in ipairs(workspace:GetChildren()) do | |
694 | local body = v:GetChildren() | |
695 | for part = 1, #body do | |
696 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
697 | local SIZE = body[part].Size.Magnitude | |
698 | if(body[part].Position - position).Magnitude < range + SIZE/2 then | |
699 | if v.ClassName == "Model" then | |
700 | if v:FindFirstChildOfClass("Humanoid") ~= nil then | |
701 | if v:FindFirstChildOfClass("Humanoid").Health > 0 then | |
702 | v:BreakJoints() | |
703 | if EFFECT == "Glitch" then | |
704 | coroutine.resume(coroutine.create(function() | |
705 | - | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Strike", VT(0,0,0)) |
705 | + | |
706 | local SIZE = body[part].Size | |
707 | for i = 1, 100 do | |
708 | Swait() | |
709 | local PART = body[part] | |
710 | PART.Anchored = true | |
711 | PART.Size = SIZE*MRANDOM(5,15)/10 | |
712 | PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15) | |
713 | end | |
714 | body[part]:remove() | |
715 | end)) | |
716 | elseif EFFECT == "Shatter" then | |
717 | for _, c in pairs(v:GetChildren()) do | |
718 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
719 | Shatter(c) | |
720 | end | |
721 | end | |
722 | end | |
723 | end | |
724 | end | |
725 | end | |
726 | end | |
727 | end | |
728 | end | |
729 | end | |
730 | end | |
731 | ||
732 | --//=================================\\ | |
733 | --|| ATTACK FUNCTIONS AND STUFF | |
734 | --\\=================================// | |
735 | ||
736 | function SpawnTrail(FROM,TO,BIG) | |
737 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
738 | MakeForm(TRAIL,"Cyl") | |
739 | local DIST = (FROM - TO).Magnitude | |
740 | if BIG == true then | |
741 | TRAIL.Size = VT(0.5,DIST,0.5) | |
742 | else | |
743 | TRAIL.Size = VT(0.25,DIST,0.25) | |
744 | end | |
745 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
746 | coroutine.resume(coroutine.create(function() | |
747 | for i = 1, 5 do | |
748 | Swait() | |
749 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
750 | end | |
751 | TRAIL:remove() | |
752 | end)) | |
753 | end | |
754 | ||
755 | function getbloody(victim,amount) | |
756 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
757 | PART.CFrame = victim.CFrame | |
758 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
759 | Debris:AddItem(PART,5) | |
760 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
761 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
762 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
763 | local prtcl = asd:Clone() | |
764 | prtcl.Parent = PART | |
765 | prtcl:Emit(amount*10) | |
766 | end | |
767 | ||
768 | function Kill(Char) | |
769 | local NewCharacter = IT("Model",Effects) | |
770 | NewCharacter.Name = "Ow im ded ;-;" | |
771 | for _, c in pairs(Char:GetDescendants()) do | |
772 | if c:IsA("BasePart") and c.Transparency == 0 then | |
773 | if c.Parent == Char then | |
774 | getbloody(c,5) | |
775 | end | |
776 | c:BreakJoints() | |
777 | c.Material = "Glass" | |
778 | c.Color = C3(0.5,0,0) | |
779 | c.CanCollide = true | |
780 | c.Transparency = 0.3 | |
781 | if c:FindFirstChildOfClass("SpecialMesh") then | |
782 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
783 | end | |
784 | if c.Name == "Head" then | |
785 | c:ClearAllChildren() | |
786 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
787 | end | |
788 | if c.ClassName == "MeshPart" then | |
789 | c.TextureID = "" | |
790 | end | |
791 | if c:FindFirstChildOfClass("BodyPosition") then | |
792 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
793 | end | |
794 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
795 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
796 | end | |
797 | c.Parent = NewCharacter | |
798 | c.Name = "DeadPart" | |
799 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
800 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
801 | end | |
802 | end | |
803 | Char:remove() | |
804 | Debris:AddItem(NewCharacter,5) | |
805 | end | |
806 | ||
807 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
808 | local CHILDREN = workspace:GetDescendants() | |
809 | for index, CHILD in pairs(CHILDREN) do | |
810 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
811 | - | WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) |
811 | + | |
812 | if HUM then | |
813 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
814 | if TORSO then | |
815 | - | function CyberSmash() |
815 | + | |
816 | if BRUTAL == true then | |
817 | Kill(CHILD) | |
818 | else | |
819 | CHILD:BreakJoints() | |
820 | end | |
821 | end | |
822 | end | |
823 | - | local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really blue", "Block", VT(25,25,25)) |
823 | + | |
824 | - | SMASH.CanCollide = true |
824 | + | |
825 | - | SMASH.Color = C3(0,0,0) |
825 | + | |
826 | - | local EF = Instance.new("SelectionBox",SMASH) |
826 | + | |
827 | - | EF.Adornee = SMASH |
827 | + | |
828 | - | EF.Color = BrickColor.new("Really blue") |
828 | + | |
829 | - | EF.LineThickness = 0.2 |
829 | + | |
830 | - | EF.Transparency = 1 |
830 | + | |
831 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
832 | - | for i = 1, 20 do |
832 | + | |
833 | Swait() | |
834 | - | SMASH.Transparency = SMASH.Transparency - 0.05 |
834 | + | |
835 | - | EF.Transparency = SMASH.Transparency |
835 | + | |
836 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
837 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
838 | 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) | |
839 | - | SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0) |
839 | + | |
840 | end | |
841 | - | GYRO.cframe = CF(RootPart.Position,SMASH.Position) |
841 | + | |
842 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) |
842 | + | |
843 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,2000,0)) | |
844 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(130), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
844 | + | |
845 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,0,0)) | |
846 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
846 | + | |
847 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
847 | + | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really blue", "Strike", VT(0,0,0)) |
848 | - | until HOLD == true and SMASH.Transparency < 0.99 |
848 | + | |
849 | - | for i = 1, 25 do |
849 | + | |
850 | RAY.CFrame = CF(POS) | |
851 | - | SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0) |
851 | + | |
852 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) |
852 | + | |
853 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
854 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(160), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
854 | + | |
855 | Swait() | |
856 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
856 | + | |
857 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
857 | + | |
858 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
859 | - | local TOCH = SMASH.Touched:Connect(function(hit) |
859 | + | |
860 | - | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then |
860 | + | |
861 | end | |
862 | for i = 1, 45 do | |
863 | Swait() | |
864 | - | local n0 = nil |
864 | + | |
865 | - | local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character) |
865 | + | |
866 | - | if HITFLOOR ~= nil then |
866 | + | |
867 | - | if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then |
867 | + | |
868 | - | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then |
868 | + | |
869 | - | if HITFLOOR.Parent.ClassName == "Model" then |
869 | + | |
870 | - | HITFLOOR.Parent:BreakJoints() |
870 | + | |
871 | - | elseif HITFLOOR.Parent.Parent.ClassName == "Model" then |
871 | + | |
872 | - | HITFLOOR.Parent.Parent:BreakJoints() |
872 | + | |
873 | Swait() | |
874 | 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) | |
875 | - | local POS = HITPOS |
875 | + | |
876 | - | n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent) |
876 | + | |
877 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
878 | 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) | |
879 | - | killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter") |
879 | + | |
880 | - | SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0)) |
880 | + | |
881 | - | WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10}) |
881 | + | |
882 | - | for i = 1, 25 do |
882 | + | |
883 | end | |
884 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) |
884 | + | |
885 | function Technobeam() | |
886 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(30), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
886 | + | |
887 | Rooted = false | |
888 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
888 | + | |
889 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
889 | + | |
890 | GYRO.P = 2000 | |
891 | GYRO.MaxTorque = VT(0,4000000,0) | |
892 | - | wait(0.2) |
892 | + | |
893 | - | TOCH:disconnect() |
893 | + | |
894 | - | wait(1.8) |
894 | + | |
895 | - | for i = 1, 100 do |
895 | + | |
896 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
897 | - | SMASH.Transparency = i/100 |
897 | + | |
898 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
899 | - | for i = 1, 10 do |
899 | + | |
900 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
901 | - | EF.Transparency = EF.Transparency + 0.1 |
901 | + | |
902 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
903 | - | SMASH:remove() |
903 | + | |
904 | end | |
905 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really blue", "Lazer", VT(0,0,0)) | |
906 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
907 | local TOCH = BEAM.Touched:Connect(function(hit) | |
908 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
909 | Shatter(hit) | |
910 | end | |
911 | end) | |
912 | local I = 0 | |
913 | repeat | |
914 | Swait() | |
915 | I = I + 1 | |
916 | if I <= 10 then | |
917 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
918 | end | |
919 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
920 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
921 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
922 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
923 | BEAM.Size = VT(2,2,DISTANCE) | |
924 | WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
925 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-4,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
926 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
927 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
928 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
929 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
930 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
931 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
932 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
933 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
934 | if ENDHIT ~= nil then | |
935 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
936 | Shatter(ENDHIT) | |
937 | end | |
938 | end | |
939 | until LOOP.Playing == false | |
940 | - | CyberSmash() |
940 | + | |
941 | BEAM:remove() | |
942 | ATTACK = false | |
943 | Rooted = false | |
944 | end | |
945 | ||
946 | function Technowarp() | |
947 | local FRAME = RootPart.Position | |
948 | for i = 1, 6 do | |
949 | WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) | |
950 | end | |
951 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z)) | |
952 | for i = 1, 6 do | |
953 | WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) | |
954 | end | |
955 | end | |
956 | ||
957 | function Cyberbound() | |
958 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
959 | ATTACK = true | |
960 | Rooted = true | |
961 | for i=0, 1, 0.1 / Animation_Speed do | |
962 | Swait() | |
963 | 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) | |
964 | 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) | |
965 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
966 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
967 | 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) | |
968 | 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) | |
969 | end | |
970 | local DONE = false | |
971 | local GATE = nil | |
972 | local GATESPIN = true | |
973 | coroutine.resume(coroutine.create(function() | |
974 | repeat | |
975 | Swait() | |
976 | if GATE ~= nil then | |
977 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
978 | end | |
979 | until GATESPIN == false | |
980 | end)) | |
981 | coroutine.resume(coroutine.create(function() | |
982 | repeat | |
983 | Swait() | |
984 | 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) | |
985 | 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) | |
986 | 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) | |
987 | 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) | |
988 | 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) | |
989 | 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) | |
990 | until DONE == true | |
991 | Swait(50) | |
992 | for i = 1, 35 do | |
993 | Swait(4) | |
994 | local FIRED = false | |
995 | local CHILDREN = workspace:GetDescendants() | |
996 | for index, CHILD in pairs(CHILDREN) do | |
997 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
998 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
999 | if HUM then | |
1000 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1001 | if TORSO then | |
1002 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1003 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1004 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1005 | 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(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) | |
1006 | 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1007 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1008 | Kill(CHILD) | |
1009 | FIRED = true | |
1010 | break | |
1011 | end | |
1012 | end | |
1013 | end | |
1014 | end | |
1015 | end | |
1016 | if FIRED == false then | |
1017 | 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))) | |
1018 | 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(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6}) | |
1019 | 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1020 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1021 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1022 | if HITBOD ~= nil then | |
1023 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1024 | Kill(HITBOD.Parent) | |
1025 | end | |
1026 | end | |
1027 | end | |
1028 | end | |
1029 | for i = 1, 45 do | |
1030 | Swait() | |
1031 | GATE.Size = GATE.Size - VT(3,0,3) | |
1032 | end | |
1033 | GATESPIN = false | |
1034 | GATE:remove() | |
1035 | end)) | |
1036 | Swait(15) | |
1037 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1038 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really blue", "Gate", VT(0,0,0)) | |
1039 | local DECAL = IT("Decal",GATE) | |
1040 | DECAL.Texture = "http://www.roblox.com/asset/?id=99404940" | |
1041 | DECAL.Face = "Top" | |
1042 | GATE.CFrame = CF(HITPOS) | |
1043 | CreateSound(160772554, GATE, 7, 1.3, false) | |
1044 | for i = 1, 45 do | |
1045 | Swait() | |
1046 | GATE.Size = GATE.Size + VT(3,0,3) | |
1047 | end | |
1048 | CreateSound(145080998, RightHole, 7, 1, false) | |
1049 | - | EF.Color = BrickColor.new("Really red") |
1049 | + | CreateSound(145080998, LeftHole, 7, 1, false) |
1050 | 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1051 | 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(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1052 | ATTACK = false | |
1053 | Rooted = false | |
1054 | DONE = true | |
1055 | end | |
1056 | ||
1057 | --//=================================\\ | |
1058 | --|| ASSIGN THINGS TO KEYS | |
1059 | --\\=================================// | |
1060 | ||
1061 | function MouseDown(Mouse) | |
1062 | HOLD = true | |
1063 | if ATTACK == false then | |
1064 | end | |
1065 | end | |
1066 | ||
1067 | function MouseUp(Mouse) | |
1068 | HOLD = false | |
1069 | end | |
1070 | ||
1071 | function KeyDown(Key) | |
1072 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1073 | KEYHOLD = true | |
1074 | if Key == "z" and ATTACK == false then | |
1075 | Cyber_Star() | |
1076 | end | |
1077 | ||
1078 | if Key == "b" and ATTACK == false then | |
1079 | Technobeam() | |
1080 | end | |
1081 | ||
1082 | if Key == "c" and ATTACK == false then | |
1083 | Technowarp() | |
1084 | end | |
1085 | ||
1086 | if Key == "v" and ATTACK == false then | |
1087 | Cyberbound() | |
1088 | end | |
1089 | ||
1090 | if Key == "t" then | |
1091 | local TAUNT = CreateSound("132392118", Head, 10, 0.8) | |
1092 | TAUNT.TimePosition = 1.1 | |
1093 | end | |
1094 | end | |
1095 | end | |
1096 | ||
1097 | function KeyUp(Key) | |
1098 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1099 | KEYHOLD = false | |
1100 | end | |
1101 | end | |
1102 | ||
1103 | Mouse.Button1Down:connect(function(NEWKEY) | |
1104 | MouseDown(NEWKEY) | |
1105 | end) | |
1106 | Mouse.Button1Up:connect(function(NEWKEY) | |
1107 | MouseUp(NEWKEY) | |
1108 | end) | |
1109 | Mouse.KeyDown:connect(function(NEWKEY) | |
1110 | KeyDown(NEWKEY) | |
1111 | end) | |
1112 | Mouse.KeyUp:connect(function(NEWKEY) | |
1113 | KeyUp(NEWKEY) | |
1114 | end) | |
1115 | ||
1116 | --//=================================\\ | |
1117 | --\\=================================// | |
1118 | ||
1119 | ||
1120 | function unanchor() | |
1121 | if UNANCHOR == true then | |
1122 | g = Character:GetChildren() | |
1123 | for i = 1, #g do | |
1124 | if g[i].ClassName == "Part" then | |
1125 | g[i].Anchored = false | |
1126 | end | |
1127 | end | |
1128 | end | |
1129 | end | |
1130 | ||
1131 | ||
1132 | --//=================================\\ | |
1133 | --|| WRAP THE WHOLE SCRIPT UP | |
1134 | --\\=================================// | |
1135 | ||
1136 | Humanoid.Changed:connect(function(Jump) | |
1137 | if Jump == "Jump" and (Disable_Jump == true) then | |
1138 | Humanoid.Jump = false | |
1139 | end | |
1140 | end) | |
1141 | ||
1142 | Humanoid.HipHeight = 2 | |
1143 | ||
1144 | while true do | |
1145 | Swait() | |
1146 | refit() | |
1147 | Character.Parent = workspace | |
1148 | Humanoid.Parent = Character | |
1149 | ANIMATE.Parent = nil | |
1150 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1151 | IDLEANIMATION:Play() | |
1152 | SINE = SINE + CHANGE | |
1153 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1154 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1155 | HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character) | |
1156 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1157 | EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
1158 | EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
1159 | EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed) | |
1160 | for LW = 1, #LEFTWINGS do | |
1161 | if LEFTWINGS[LW] ~= nil then | |
1162 | LEFTWINGS[LW].C1 = Clerp(LEFTWINGS[LW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(-3 + 3 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1163 | end | |
1164 | end | |
1165 | for RW = 1, #RIGHTWINGS do | |
1166 | if RIGHTWINGS[RW] ~= nil then | |
1167 | RIGHTWINGS[RW].C1 = Clerp(RIGHTWINGS[RW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(3 - 3 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1168 | end | |
1169 | end | |
1170 | if ATTACK == false then | |
1171 | if TORSOVELOCITY < 1 then | |
1172 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1173 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1174 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1175 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1176 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1177 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1178 | elseif TORSOVELOCITY > 1 then | |
1179 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1180 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-2.5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1181 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1182 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1183 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1184 | 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) | |
1185 | end | |
1186 | end | |
1187 | for _, c in pairs(Character:GetChildren()) do | |
1188 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
1189 | c.Material = "Neon" | |
1190 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1191 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1192 | end | |
1193 | if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then | |
1194 | local EF = Instance.new("SelectionBox",c) | |
1195 | EF.Adornee = c | |
1196 | EF.Color = BrickColor.new("Really blue") | |
1197 | EF.LineThickness = 0.01 | |
1198 | EF.Transparency = 0 | |
1199 | EF.Name = "BoxEffect" | |
1200 | end | |
1201 | c.Color = C3(0,0,0) | |
1202 | if c == Head then | |
1203 | --[[if c:FindFirstChild("Dominus") == nil then | |
1204 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0)) | |
1205 | M.Name = "Dominus" | |
1206 | end]]-- | |
1207 | if c:FindFirstChild("face") then | |
1208 | c.face:remove() | |
1209 | end | |
1210 | end | |
1211 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1212 | c:remove() | |
1213 | end | |
1214 | end | |
1215 | if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then | |
1216 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p | |
1217 | local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character) | |
1218 | if BOXFLOOR ~= nil then | |
1219 | WACKYEFFECT({EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,15,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(BOXPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1220 | end | |
1221 | end | |
1222 | unanchor() | |
1223 | Humanoid.MaxHealth = "inf" | |
1224 | Humanoid.Health = "inf" | |
1225 | if Rooted == false then | |
1226 | Disable_Jump = false | |
1227 | Humanoid.WalkSpeed = Speed | |
1228 | elseif Rooted == true then | |
1229 | Disable_Jump = true | |
1230 | Humanoid.WalkSpeed = 0 | |
1231 | end | |
1232 | for _, c in pairs(workspace:GetChildren()) do | |
1233 | if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then | |
1234 | end | |
1235 | end | |
1236 | script.Parent = WEAPONGUI | |
1237 | Humanoid.Name = "Monarch" | |
1238 | sick.Parent = Effects | |
1239 | sick.Pitch = 0.85 | |
1240 | sick.Playing = true | |
1241 | for _, q in pairs(Head:GetChildren()) do | |
1242 | if q.ClassName == "Sound" and q.Name ~= "Audio" then | |
1243 | q:remove() | |
1244 | end | |
1245 | end | |
1246 | Humanoid.DisplayDistanceType = "None" | |
1247 | end | |
1248 | ||
1249 | --//=================================\\ | |
1250 | --\\=================================// | |
1251 | ||
1252 | ||
1253 | ||
1254 | ||
1255 | ||
1256 | --//====================================================\\-- | |
1257 | --|| END OF SCRIPT | |
1258 | --\\====================================================//-- |