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