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 | --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 | 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 = game:GetService("Players").LocalPlayer | |
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 | ||
85 | ||
86 | ||
87 | ||
88 | ||
89 | ||
90 | ||
91 | ||
92 | ||
93 | ||
94 | ||
95 | ||
96 | ||
97 | ||
98 | ||
99 | ||
100 | ||
101 | ||
102 | -- Synapse Decompiler | |
103 | -- Purchase Here: https://brack4712.xyz/synapse/purchase/ | |
104 | ||
105 | wait(0.2) | |
106 | - | Player = game:GetService("Players").Originickname |
106 | + | Player = game:GetService("Players").lafur2 |
107 | PlayerGui = Player.PlayerGui | |
108 | Cam = workspace.CurrentCamera | |
109 | Backpack = Player.Backpack | |
110 | Character = Player.Character | |
111 | Humanoid = Character.Humanoid | |
112 | RootPart = Character.HumanoidRootPart | |
113 | Torso = Character.Torso | |
114 | Head = Character.Head | |
115 | RightArm = Character["Right Arm"] | |
116 | LeftArm = Character["Left Arm"] | |
117 | RightLeg = Character["Right Leg"] | |
118 | LeftLeg = Character["Left Leg"] | |
119 | RootJoint = RootPart.RootJoint | |
120 | Neck = Torso.Neck | |
121 | RightShoulder = Torso["Right Shoulder"] | |
122 | LeftShoulder = Torso["Left Shoulder"] | |
123 | RightHip = Torso["Right Hip"] | |
124 | LeftHip = Torso["Left Hip"] | |
125 | local sick = Instance.new("Sound", Workspace) | |
126 | sick.SoundId = "rbxassetid://2050608658" | |
127 | sick.Looped = true | |
128 | sick.Pitch = 1 | |
129 | sick.Volume = 5 | |
130 | sick:Play() | |
131 | IT = Instance.new | |
132 | CF = CFrame.new | |
133 | VT = Vector3.new | |
134 | RAD = math.rad | |
135 | C3 = Color3.new | |
136 | UD2 = UDim2.new | |
137 | BRICKC = BrickColor.new | |
138 | ANGLES = CFrame.Angles | |
139 | EULER = CFrame.fromEulerAnglesXYZ | |
140 | COS = math.cos | |
141 | ACOS = math.acos | |
142 | SIN = math.sin | |
143 | ASIN = math.asin | |
144 | ABS = math.abs | |
145 | MRANDOM = math.random | |
146 | FLOOR = math.floor | |
147 | Animation_Speed = 3 | |
148 | Humanoid.HipHeight = 1 | |
149 | Frame_Speed = 0.016666666666666666 | |
150 | local Speed = 75 | |
151 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
152 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
153 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
154 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
155 | local DAMAGEMULTIPLIER = 1 | |
156 | local ANIM = "Idle" | |
157 | local ATTACK = false | |
158 | local EQUIPPED = false | |
159 | local HOLD = false | |
160 | local COMBO = 1 | |
161 | local Rooted = false | |
162 | local SINE = 0 | |
163 | local KEYHOLD = false | |
164 | local CHANGE = 2 / Animation_Speed | |
165 | local WALKINGANIM = false | |
166 | local VALUE1 = false | |
167 | local VALUE2 = false | |
168 | local ROBLOXIDLEANIMATION = IT("Animation") | |
169 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
170 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
171 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
172 | WEAPONGUI.Name = "Weapon GUI" | |
173 | local Weapon = IT("Model") | |
174 | Weapon.Name = "Adds" | |
175 | local Effects = IT("Folder", Weapon) | |
176 | Effects.Name = "Effects" | |
177 | local ANIMATOR = Humanoid.Animator | |
178 | local ANIMATE = Character.Animate | |
179 | local UNANCHOR = true | |
180 | local FORCEWINGS = false | |
181 | local GYRO, FLIGHTFORCE | |
182 | local INTRO = false | |
183 | ArtificialHB = Instance.new("BindableEvent", script) | |
184 | ArtificialHB.Name = "ArtificialHB" | |
185 | script:WaitForChild("ArtificialHB") | |
186 | frame = Frame_Speed | |
187 | tf = 0 | |
188 | allowframeloss = false | |
189 | tossremainder = false | |
190 | lastframe = tick() | |
191 | script.ArtificialHB:Fire() | |
192 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
193 | tf = tf + s | |
194 | if tf >= frame then | |
195 | if allowframeloss then | |
196 | script.ArtificialHB:Fire() | |
197 | lastframe = tick() | |
198 | else | |
199 | for i = 1, math.floor(tf / frame) do | |
200 | script.ArtificialHB:Fire() | |
201 | end | |
202 | lastframe = tick() | |
203 | end | |
204 | if tossremainder then | |
205 | tf = 0 | |
206 | else | |
207 | tf = tf - frame * math.floor(tf / frame) | |
208 | end | |
209 | end | |
210 | end) | |
211 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
212 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
213 | end | |
214 | function PositiveAngle(NUMBER) | |
215 | if NUMBER >= 0 then | |
216 | NUMBER = 0 | |
217 | end | |
218 | return NUMBER | |
219 | end | |
220 | function NegativeAngle(NUMBER) | |
221 | if NUMBER <= 0 then | |
222 | NUMBER = 0 | |
223 | end | |
224 | return NUMBER | |
225 | end | |
226 | function Swait(NUMBER) | |
227 | if NUMBER == 0 or NUMBER == nil then | |
228 | ArtificialHB.Event:wait() | |
229 | else | |
230 | for i = 1, NUMBER do | |
231 | ArtificialHB.Event:wait() | |
232 | end | |
233 | end | |
234 | end | |
235 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
236 | local NEWMESH = IT(MESH) | |
237 | if MESH == "SpecialMesh" then | |
238 | NEWMESH.MeshType = MESHTYPE | |
239 | if MESHID ~= "nil" and MESHID ~= "" then | |
240 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID | |
241 | end | |
242 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
243 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID | |
244 | end | |
245 | end | |
246 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
247 | NEWMESH.Scale = SCALE | |
248 | NEWMESH.Parent = PARENT | |
249 | return NEWMESH | |
250 | end | |
251 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
252 | local NEWPART = IT("Part") | |
253 | NEWPART.formFactor = FORMFACTOR | |
254 | NEWPART.Reflectance = REFLECTANCE | |
255 | NEWPART.Transparency = TRANSPARENCY | |
256 | NEWPART.CanCollide = false | |
257 | NEWPART.Locked = true | |
258 | NEWPART.Anchored = true | |
259 | if ANCHOR == false then | |
260 | NEWPART.Anchored = false | |
261 | end | |
262 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
263 | NEWPART.Name = NAME | |
264 | NEWPART.Size = SIZE | |
265 | NEWPART.Position = Torso.Position | |
266 | NEWPART.Material = MATERIAL | |
267 | NEWPART:BreakJoints() | |
268 | NEWPART.Parent = PARENT | |
269 | return NEWPART | |
270 | end | |
271 | function QuaternionFromCFrame(cf) | |
272 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
273 | local trace = m00 + m11 + m22 | |
274 | if trace > 0 then | |
275 | local s = math.sqrt(1 + trace) | |
276 | local recip = 0.5 / s | |
277 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
278 | else | |
279 | local i = 0 | |
280 | if m00 < m11 then | |
281 | i = 1 | |
282 | end | |
283 | if m22 > (i == 0 and m00 or m11) then | |
284 | i = 2 | |
285 | end | |
286 | if i == 0 then | |
287 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
288 | local recip = 0.5 / s | |
289 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
290 | elseif i == 1 then | |
291 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
292 | local recip = 0.5 / s | |
293 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
294 | elseif i == 2 then | |
295 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
296 | local recip = 0.5 / s | |
297 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
298 | end | |
299 | end | |
300 | end | |
301 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
302 | local xs, ys, zs = x + x, y + y, z + z | |
303 | local wx, wy, wz = w * xs, w * ys, w * zs | |
304 | local xx = x * xs | |
305 | local xy = x * ys | |
306 | local xz = x * zs | |
307 | local yy = y * ys | |
308 | local yz = y * zs | |
309 | local zz = z * zs | |
310 | 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)) | |
311 | end | |
312 | function QuaternionSlerp(a, b, t) | |
313 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
314 | local startInterp, finishInterp | |
315 | if cosTheta >= 1.0E-4 then | |
316 | if 1 - cosTheta > 1.0E-4 then | |
317 | local theta = ACOS(cosTheta) | |
318 | local invSinTheta = 1 / SIN(theta) | |
319 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
320 | finishInterp = SIN(t * theta) * invSinTheta | |
321 | else | |
322 | startInterp = 1 - t | |
323 | finishInterp = t | |
324 | end | |
325 | elseif 1 + cosTheta > 1.0E-4 then | |
326 | local theta = ACOS(-cosTheta) | |
327 | local invSinTheta = 1 / SIN(theta) | |
328 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
329 | finishInterp = SIN(t * theta) * invSinTheta | |
330 | else | |
331 | startInterp = t - 1 | |
332 | finishInterp = t | |
333 | end | |
334 | 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 | |
335 | end | |
336 | function Clerp(a, b, t) | |
337 | local qa = { | |
338 | QuaternionFromCFrame(a) | |
339 | } | |
340 | local qb = { | |
341 | QuaternionFromCFrame(b) | |
342 | } | |
343 | local ax, ay, az = a.x, a.y, a.z | |
344 | local bx, by, bz = b.x, b.y, b.z | |
345 | local _t = 1 - t | |
346 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
347 | end | |
348 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
349 | local frame = IT("Frame") | |
350 | frame.BackgroundTransparency = TRANSPARENCY | |
351 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
352 | frame.Position = POSITION | |
353 | frame.Size = SIZE | |
354 | frame.BackgroundColor3 = COLOR | |
355 | frame.BorderColor3 = BORDERCOLOR | |
356 | frame.Name = NAME | |
357 | frame.Parent = PARENT | |
358 | return frame | |
359 | end | |
360 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
361 | local label = IT("TextLabel") | |
362 | label.BackgroundTransparency = 1 | |
363 | label.Size = UD2(1, 0, 1, 0) | |
364 | label.Position = UD2(0, 0, 0, 0) | |
365 | label.TextColor3 = TEXTCOLOR | |
366 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
367 | label.TextTransparency = TRANSPARENCY | |
368 | label.FontSize = TEXTFONTSIZE | |
369 | label.Font = TEXTFONT | |
370 | label.BorderSizePixel = BORDERSIZEPIXEL | |
371 | label.TextScaled = false | |
372 | label.Text = TEXT | |
373 | label.Name = NAME | |
374 | label.Parent = PARENT | |
375 | return label | |
376 | end | |
377 | function NoOutlines(PART) | |
378 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
379 | end | |
380 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
381 | local NEWWELD = IT(TYPE) | |
382 | NEWWELD.Part0 = PART0 | |
383 | NEWWELD.Part1 = PART1 | |
384 | NEWWELD.C0 = C0 | |
385 | NEWWELD.C1 = C1 | |
386 | NEWWELD.Parent = PARENT | |
387 | return NEWWELD | |
388 | end | |
389 | local S = IT("Sound") | |
390 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
391 | local NEWSOUND | |
392 | coroutine.resume(coroutine.create(function() | |
393 | NEWSOUND = S:Clone() | |
394 | NEWSOUND.Parent = PARENT | |
395 | NEWSOUND.Volume = VOLUME | |
396 | NEWSOUND.Pitch = PITCH | |
397 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
398 | NEWSOUND:play() | |
399 | if DOESLOOP == true then | |
400 | NEWSOUND.Looped = true | |
401 | else | |
402 | repeat | |
403 | wait(1) | |
404 | until NEWSOUND.Playing == false | |
405 | NEWSOUND:remove() | |
406 | end | |
407 | end)) | |
408 | return NEWSOUND | |
409 | end | |
410 | function CFrameFromTopBack(at, top, back) | |
411 | local right = top:Cross(back) | |
412 | 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) | |
413 | end | |
414 | function WACKYEFFECT(Table) | |
415 | local TYPE = Table.EffectType or "Sphere" | |
416 | local SIZE = Table.Size or VT(1, 1, 1) | |
417 | local ENDSIZE = Table.Size2 or VT(0, 0, 0) | |
418 | local TRANSPARENCY = Table.Transparency or 0 | |
419 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
420 | local CFRAME = Table.CFrame or Torso.CFrame | |
421 | local MOVEDIRECTION = Table.MoveToPos or nil | |
422 | local ROTATION1 = Table.RotationX or 0 | |
423 | local ROTATION2 = Table.RotationY or 0 | |
424 | local ROTATION3 = Table.RotationZ or 0 | |
425 | local MATERIAL = Table.Material or "ForceField" | |
426 | local COLOR = Table.Color or C3(1, 1, 1) | |
427 | local TIME = Table.Time or 45 | |
428 | local SOUNDID = Table.SoundID or nil | |
429 | local SOUNDPITCH = Table.SoundPitch or nil | |
430 | local SOUNDVOLUME = Table.SoundVolume or nil | |
431 | coroutine.resume(coroutine.create(function() | |
432 | local PLAYSSOUND = false | |
433 | local SOUND | |
434 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true) | |
435 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
436 | PLAYSSOUND = true | |
437 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
438 | end | |
439 | EFFECT.Color = COLOR | |
440 | local MSH | |
441 | if TYPE == "Sphere" then | |
442 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
443 | elseif TYPE == "Block" then | |
444 | MSH = IT("BlockMesh", EFFECT) | |
445 | MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X) | |
446 | elseif TYPE == "Wave" then | |
447 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
448 | elseif TYPE == "Ring" then | |
449 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0)) | |
450 | elseif TYPE == "Slash" then | |
451 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
452 | elseif TYPE == "Round Slash" then | |
453 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
454 | elseif TYPE == "Swirl" then | |
455 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0)) | |
456 | elseif TYPE == "Skull" then | |
457 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0)) | |
458 | elseif TYPE == "Crystal" then | |
459 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0)) | |
460 | end | |
461 | if MSH ~= nil then | |
462 | local MOVESPEED | |
463 | if MOVEDIRECTION ~= nil then | |
464 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME | |
465 | end | |
466 | local GROWTH = SIZE - ENDSIZE | |
467 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
468 | if TYPE == "Block" then | |
469 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
470 | else | |
471 | EFFECT.CFrame = CFRAME | |
472 | end | |
473 | for LOOP = 1, TIME + 1 do | |
474 | Swait() | |
475 | MSH.Scale = MSH.Scale - GROWTH / TIME | |
476 | if TYPE == "Wave" then | |
477 | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) | |
478 | end | |
479 | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME | |
480 | if TYPE == "Block" then | |
481 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
482 | else | |
483 | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) | |
484 | end | |
485 | if MOVEDIRECTION ~= nil then | |
486 | local ORI = EFFECT.Orientation | |
487 | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) | |
488 | EFFECT.Orientation = ORI | |
489 | end | |
490 | end | |
491 | if PLAYSSOUND == false then | |
492 | EFFECT:remove() | |
493 | else | |
494 | SOUND.Stopped:Connect(function() | |
495 | EFFECT:remove() | |
496 | end) | |
497 | end | |
498 | elseif PLAYSSOUND == false then | |
499 | EFFECT:remove() | |
500 | else | |
501 | repeat | |
502 | Swait() | |
503 | until SOUND.Playing == false | |
504 | EFFECT:remove() | |
505 | end | |
506 | end)) | |
507 | end | |
508 | function MakeForm(PART, TYPE) | |
509 | if TYPE == "Cyl" then | |
510 | local MSH = IT("CylinderMesh", PART) | |
511 | elseif TYPE == "Ball" then | |
512 | local MSH = IT("SpecialMesh", PART) | |
513 | MSH.MeshType = "Sphere" | |
514 | elseif TYPE == "Pine" then | |
515 | CreateMesh("SpecialMesh", PART, "FileMesh", "1033714", "", PART.Size, VT(0, 0, 0)) | |
516 | end | |
517 | end | |
518 | Debris = game:GetService("Debris") | |
519 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
520 | local DIRECTION = CF(StartPos, EndPos).lookVector | |
521 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
522 | end | |
523 | function turnto(position) | |
524 | RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0) | |
525 | end | |
526 | function Lightning(Table) | |
527 | local Color = Table.Color or C3(1, 1, 1) | |
528 | local StartPos = Table.Start or Torso.Position | |
529 | local EndPos = Table.End or Mouse.Hit.p | |
530 | local SegmentLength = Table.SegmentL or 2 | |
531 | local Thickness = Table.Thickness or 0.1 | |
532 | local Dissapear = Table.DoesFade or false | |
533 | local Parent = Table.Ignore or Character | |
534 | local MaxDist = Table.MaxDist or 400 | |
535 | local Branches = Table.Branches or false | |
536 | local HIT, HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
537 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude / SegmentLength) | |
538 | local LIGHTNINGMODEL = IT("Model", Effects) | |
539 | LIGHTNINGMODEL.Name = "Lightning" | |
540 | local LastBolt | |
541 | for E = 1, DISTANCE do | |
542 | local ExtraSize = (DISTANCE - E) / 15 | |
543 | local PART = CreatePart(3, LIGHTNINGMODEL, "ForceField", 0, 0, BRICKC("Pearl"), "LightningPart" .. E, VT(Thickness + ExtraSize, SegmentLength, Thickness + ExtraSize)) | |
544 | PART.Color = Color | |
545 | MakeForm(PART, "Cyl") | |
546 | if LastBolt == nil then | |
547 | PART.CFrame = CF(StartPos, HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0, -PART.Size.Y / 2, 0) | |
548 | else | |
549 | PART.CFrame = CF(LastBolt.CFrame * CF(0, -LastBolt.Size.Y / 2, 0).p, CF(HITPOS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, SegmentLength / 3 + (DISTANCE - E)).p) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0, -PART.Size.Y / 2, 0) | |
550 | end | |
551 | LastBolt = PART | |
552 | if Branches == true then | |
553 | local CHOICE = MRANDOM(1, 7 + (DISTANCE - E) * 2) | |
554 | if CHOICE == 1 then | |
555 | local LASTBRANCH | |
556 | for i = 1, MRANDOM(2, 5) do | |
557 | local ExtraSize2 = (DISTANCE - E) / 25 / i | |
558 | local PART = CreatePart(3, LIGHTNINGMODEL, "ForceField", 0, 0, BRICKC("Pearl"), "Branch" .. E .. "-" .. i, VT(Thickness + ExtraSize2, SegmentLength, Thickness + ExtraSize2)) | |
559 | PART.Color = Color | |
560 | MakeForm(PART, "Cyl") | |
561 | if LASTBRANCH == nil then | |
562 | PART.CFrame = CF(LastBolt.CFrame * CF(0, -LastBolt.Size.Y / 2, 0).p, LastBolt.CFrame * CF(0, -LastBolt.Size.Y / 2, 0) * ANGLES(RAD(0), RAD(0), RAD(MRANDOM(0, 360))) * CF(0, Thickness * 7, 0) * CF(0, 0, -1).p) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0, -PART.Size.Y / 2, 0) | |
563 | else | |
564 | PART.CFrame = CF(LASTBRANCH.CFrame * CF(0, -LASTBRANCH.Size.Y / 2, 0).p, LASTBRANCH.CFrame * CF(0, -LASTBRANCH.Size.Y / 2, 0) * ANGLES(RAD(0), RAD(0), RAD(MRANDOM(0, 360))) * CF(0, Thickness * 3, 0) * CF(0, 0, -1).p) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0, -PART.Size.Y / 2, 0) | |
565 | end | |
566 | LASTBRANCH = PART | |
567 | end | |
568 | end | |
569 | end | |
570 | end | |
571 | if Dissapear == true then | |
572 | coroutine.resume(coroutine.create(function() | |
573 | for i = 1, 30 do | |
574 | Swait() | |
575 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
576 | if c.ClassName == "Part" then | |
577 | c.Transparency = i / 30 | |
578 | end | |
579 | end | |
580 | end | |
581 | LIGHTNINGMODEL:remove() | |
582 | end)) | |
583 | elseif Dissapear == false then | |
584 | Debris:AddItem(LIGHTNINGMODEL, 0.1) | |
585 | end | |
586 | return { | |
587 | End = LastBolt.CFrame * CF(0, 0, -LastBolt.Size.Z / 2).p, | |
588 | LastBolt = LastBolt, | |
589 | Model = LIGHTNINGMODEL | |
590 | } | |
591 | end | |
592 | local Particle = IT("ParticleEmitter", nil) | |
593 | Particle.Enabled = false | |
594 | Particle.Transparency = NumberSequence.new({ | |
595 | NumberSequenceKeypoint.new(0, 0), | |
596 | NumberSequenceKeypoint.new(0.7, 0), | |
597 | NumberSequenceKeypoint.new(1, 1) | |
598 | }) | |
599 | Particle.LightEmission = 0.5 | |
600 | Particle.Rate = 500 | |
601 | Particle.Rotation = NumberRange.new(-180, 180) | |
602 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
603 | Particle.Texture = "http://www.roblox.com/asset/?id=51349099" | |
604 | Particle.Color = ColorSequence.new(C3(1, 1, 1)) | |
605 | function ParticleEmitter(Table) | |
606 | local PRTCL = Particle:Clone() | |
607 | local Speed = Table.Speed or 5 | |
608 | local Drag = Table.Drag or 0 | |
609 | local Size1 = Table.Size1 or 1 | |
610 | local Size2 = Table.Size2 or 5 | |
611 | local Lifetime1 = Table.Lifetime1 or 1 | |
612 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
613 | local Parent = Table.Parent or Torso | |
614 | local Emit = Table.Emit or 100 | |
615 | local Offset = Table.Offset or 360 | |
616 | local Enabled = Table.Enabled or false | |
617 | PRTCL.Parent = Parent | |
618 | PRTCL.Size = NumberSequence.new(Size1, Size2) | |
619 | PRTCL.Lifetime = NumberRange.new(Lifetime1, Lifetime2) | |
620 | PRTCL.Speed = NumberRange.new(Speed) | |
621 | PRTCL.VelocitySpread = Offset | |
622 | PRTCL.Drag = Drag | |
623 | if Enabled == false then | |
624 | PRTCL:Emit(Emit) | |
625 | Debris:AddItem(PRTCL, Lifetime2) | |
626 | else | |
627 | PRTCL.Enabled = true | |
628 | end | |
629 | return PRTCL | |
630 | end | |
631 | local RWING = CreatePart(3, Weapon, "ForceField", 0, 1, "Pearl", "Right Wing", VT(2, 3, 2) * 1.5, false) | |
632 | RWING.Color = C3(0.807843137254902, 0.6392156862745098, 0.8549019607843137) | |
633 | local RWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, RWING, CF(1, 2, 0.5), CF(-1.5, 0, 0)) | |
634 | local LWING = CreatePart(3, Weapon, "ForceField", 0, 1, "Pearl", "Left Wing", VT(2, 3, 2) * 1.5, false) | |
635 | LWING.Color = C3(0.807843137254902, 0.6392156862745098, 0.8549019607843137) | |
636 | local LWELD = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, LWING, CF(-1, 2, 0.5), CF(1.6, 0, 0)) | |
637 | CreateMesh("SpecialMesh", RWING, "FileMesh", "90615661", "", VT(1.5, 1.5, 1.5) * 0.8, VT(0, 0, 0)) | |
638 | CreateMesh("SpecialMesh", LWING, "FileMesh", "90615581", "", VT(1.5, 1.5, 1.5) * 0.8, VT(0, 0, 0)) | |
639 | local Mask = CreatePart(3, Weapon, "ForceField", 0, 0, "Pearl", "Mask", VT(1, 1, 1), false) | |
640 | CreateMesh("SpecialMesh", Mask, "FileMesh", "395088733", "", VT(0.5, 0.5, 1), VT(0, 0, 0)) | |
641 | CreateWeldOrSnapOrMotor("Weld", Head, Head, Mask, CF(0, 0, -0.5), CF(0, 0, 0)) | |
642 | local Mask = CreatePart(3, Weapon, "ForceField", 0, 0, "New Yeller", "Mask", VT(1.3, 0.1, 1.3), false) | |
643 | MakeForm(Mask, "Cyl") | |
644 | CreateWeldOrSnapOrMotor("Weld", Head, Head, Mask, CF(0, 0.2, 0), CF(0, 0, 0)) | |
645 | local Black = CreatePart(3, Weapon, "ForceField", 0, 0, "Pearl", "Mask", VT(0.2, 0.7, 0.3), false) | |
646 | Black.Color = C3(0, 0, 0) | |
647 | MakeForm(Black, "Ball") | |
648 | CreateWeldOrSnapOrMotor("Weld", Head, Head, Black, CF(0, 0.05, -0.6), CF(0, 0, 0)) | |
649 | local Black = CreatePart(3, Weapon, "ForceField", 0, 0, "Pearl", "Mask", VT(1, 0.2, 0.3), false) | |
650 | Black.Color = C3(0, 0, 0) | |
651 | MakeForm(Black, "Ball") | |
652 | CreateWeldOrSnapOrMotor("Weld", Head, Head, Black, CF(0, 0.1, -0.6), CF(0, 0, 0)) | |
653 | local Eye = CreatePart(3, Weapon, "ForceField", 0, 0, "Magenta", "Mask", VT(0.1, 0.1, 0.1), false) | |
654 | MakeForm(Eye, "Ball") | |
655 | CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0.22, 0.1, -0.7), CF(0, 0, 0)) | |
656 | local Eye = CreatePart(3, Weapon, "ForceField", 0, 0, "Magenta", "Mask", VT(0.1, 0.1, 0.1), false) | |
657 | MakeForm(Eye, "Ball") | |
658 | CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(-0.22, 0.1, -0.7), CF(0, 0, 0)) | |
659 | local Horns = CreatePart(3, Weapon, "ForceField", 0, 0, "New Yeller", "Horns", VT(1, 1, 1), false) | |
660 | CreateWeldOrSnapOrMotor("Weld", Head, Head, Horns, CF(0, 0.6, 0.1), CF(0, 0, 0)) | |
661 | local MSH = CreateMesh("SpecialMesh", Horns, "FileMesh", "704130637", "", VT(0.17, 0.17, 0.17), VT(0, 0, 0)) | |
662 | MSH.VertexColor = VT(1, 1, 0.5) | |
663 | local MaskPart = CreatePart(3, Weapon, "ForceField", 0, 0, "Pearl", "Mask", VT(0.4, 0.4, 0.4), false) | |
664 | MakeForm(MaskPart, "Ball") | |
665 | CreateWeldOrSnapOrMotor("Weld", Head, Head, MaskPart, CF(-0.35, 0.35, -0.5), CF(0, 0, 0)) | |
666 | local MaskPart = CreatePart(3, Weapon, "ForceField", 0, 0, "Pearl", "Mask", VT(0.4, 0.4, 0.4), false) | |
667 | MakeForm(MaskPart, "Ball") | |
668 | CreateWeldOrSnapOrMotor("Weld", Head, Head, MaskPart, CF(0.35, 0.35, -0.5), CF(0, 0, 0)) | |
669 | local Handle = CreatePart(3, Weapon, "ForceField", 0, 0, "New Yeller", "Handle", VT(0.2, 1, 0.2), false) | |
670 | MakeForm(Handle, "Cyl") | |
671 | local Grasp = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Handle, CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
672 | local Bop = CreatePart(3, Weapon, "ForceField", 0, 0, "New Yeller", "Bop", VT(0.5, 0.5, 0.5), false) | |
673 | MakeForm(Bop, "Ball") | |
674 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Bop, CF(0, 0.7, 0), CF(0, 0, 0)) | |
675 | local Part = CreatePart(3, Weapon, "ForceField", 0, 0, "Black", "Shield", VT(0.5, 0.2, 0.5), false) | |
676 | MakeForm(Part, "Pine") | |
677 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
678 | local Part = CreatePart(3, Weapon, "ForceField", 0, 0, "Dark blue", "Shield", VT(0.6, 0.3, 0.6), false) | |
679 | MakeForm(Part, "Pine") | |
680 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
681 | local Blade = CreatePart(3, Weapon, "ForceField", 0, 0, "Magenta", "Blade", VT(0.3, 5, 0.3), false) | |
682 | MakeForm(Blade, "Pine") | |
683 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Blade, CF(0, -2.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
684 | local Shield = CreatePart(3, Weapon, "ForceField", 0, 0, "New Yeller", "Shield", VT(1.05, 0.1, 1.05), false) | |
685 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(0, -0.3, 0), CF(0, 0, 0)) | |
686 | local ShieldBase = CreatePart(3, Weapon, "ForceField", 0, 0, "Pearl", "Shield", VT(2, 2, 1), false) | |
687 | CreateMesh("SpecialMesh", ShieldBase, "FileMesh", "395088733", "", VT(1, 1, 1), VT(0, 0, 0)) | |
688 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, ShieldBase, CF(-0.5, -0.3, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
689 | local Shield = CreatePart(3, Weapon, "ForceField", 0, 0, "Pearl", "Shield", VT(0, 0, 0), false) | |
690 | CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.95, 0.95, 1), VT(0, 0, 0)) | |
691 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.4, -0.3, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
692 | local Shield = CreatePart(3, Weapon, "ForceField", 0, 0, "Magenta", "Shield", VT(0, 0, 0), false) | |
693 | CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.95, 0.95, 1), VT(0, 0, 0)) | |
694 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.515, -0.3, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
695 | local Shield = CreatePart(3, Weapon, "ForceField", 0, 0, "Pearl", "Shield", VT(0, 0, 0), false) | |
696 | CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.7, 0.7, 1), VT(0, 0, 0)) | |
697 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6, -0.3, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
698 | local Shield = CreatePart(3, Weapon, "ForceField", 0, 0, "Magenta", "Shield", VT(0, 0, 0), false) | |
699 | CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.5, 0.5, 1), VT(0, 0, 0)) | |
700 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65, -0.3, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
701 | local Shield = CreatePart(3, Weapon, "ForceField", 0, 0, "New Yeller", "Shield", VT(0.8, 2, 0.2), false) | |
702 | MakeForm(Shield, "Ball") | |
703 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65, -0.3, 0), CF(0, 0, 0)) | |
704 | local Shield = CreatePart(3, Weapon, "ForceField", 0, 0, "New Yeller", "Shield", VT(0.8, 0.2, 2), false) | |
705 | MakeForm(Shield, "Ball") | |
706 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65, -0.3, 0), CF(0, 0, 0)) | |
707 | local Shield = CreatePart(3, Weapon, "ForceField", 0, 0, "Magenta", "Shield", VT(0.8, 2, 0.3), false) | |
708 | MakeForm(Shield, "Ball") | |
709 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6, -0.3, 0), CF(0, 0, 0)) | |
710 | local Shield = CreatePart(3, Weapon, "ForceField", 0, 0, "Magenta", "Shield", VT(0.8, 0.3, 2), false) | |
711 | MakeForm(Shield, "Ball") | |
712 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6, -0.3, 0), CF(0, 0, 0)) | |
713 | local SKILLTEXTCOLOR = BRICKC("Magenta").Color | |
714 | local SKILLFONT = "SciFi" | |
715 | local SKILLTEXTSIZE = 12 | |
716 | Humanoid.DisplayDistanceType = "None" | |
717 | local naeeym2 = IT("BillboardGui", Character) | |
718 | naeeym2.AlwaysOnTop = true | |
719 | naeeym2.Size = UDim2.new(5, 35, 2, 15) | |
720 | naeeym2.StudsOffset = Vector3.new(0, 1.3, 0) | |
721 | naeeym2.MaxDistance = 75 | |
722 | naeeym2.Adornee = Character.Head | |
723 | naeeym2.Name = "Name" | |
724 | naeeym2.PlayerToHideFrom = Player | |
725 | local tecks2 = IT("TextLabel", naeeym2) | |
726 | tecks2.BackgroundTransparency = 1 | |
727 | tecks2.TextScaled = true | |
728 | tecks2.BorderSizePixel = 0 | |
729 | tecks2.Text = Player.Name | |
730 | tecks2.Font = "SciFi" | |
731 | tecks2.TextSize = 30 | |
732 | tecks2.TextStrokeTransparency = 0 | |
733 | tecks2.TextColor3 = C3(1, 1, 1) | |
734 | tecks2.TextStrokeColor3 = SKILLTEXTCOLOR | |
735 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
736 | tecks2.Parent = naeeym2 | |
737 | for _, c in pairs(Weapon:GetChildren()) do | |
738 | if c.ClassName == "Part" then | |
739 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
740 | end | |
741 | end | |
742 | Weapon.Parent = Character | |
743 | Humanoid.Died:connect(function() | |
744 | ATTACK = true | |
745 | end) | |
746 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Frame") | |
747 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[ Z - B - C - V - G - X - Q ]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text") | |
748 | function ApplyDamage(Humanoid, Damage, TorsoPart) | |
749 | local defence = Instance.new("BoolValue", Humanoid.Parent) | |
750 | defence.Name = "HitBy" .. Player.Name | |
751 | game:GetService("Debris"):AddItem(defence, 0.001) | |
752 | Damage = Damage * DAMAGEMULTIPLIER | |
753 | if Humanoid.Health ~= 0 then | |
754 | local CritChance = MRANDOM(1, 100) | |
755 | if Damage > Humanoid.Health then | |
756 | Damage = math.ceil(Humanoid.Health) | |
757 | if Damage == 0 then | |
758 | Damage = 0.1 | |
759 | end | |
760 | end | |
761 | Humanoid.Health = Humanoid.Health - Damage | |
762 | end | |
763 | end | |
764 | function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, FRAME) | |
765 | local CHILDREN = workspace:GetDescendants() | |
766 | for index, CHILD in pairs(CHILDREN) do | |
767 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD:FindFirstChild(Player.Name .. "Frames") == nil then | |
768 | do | |
769 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
770 | if HUM then | |
771 | do | |
772 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
773 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude and HUM.Health > 0 then | |
774 | do | |
775 | local FRAMES = IT("Folder", CHILD) | |
776 | FRAMES.Name = Player.Name .. "Frames" | |
777 | local DMG = 0 | |
778 | if MINDMG > 1 then | |
779 | DMG = MRANDOM(MINDMG, MAXDMG) | |
780 | else | |
781 | DMG = MINDMG | |
782 | end | |
783 | ApplyDamage(HUM, DMG, TORSO) | |
784 | CreateSound(12222242, TORSO, 5, 1, false) | |
785 | coroutine.resume(coroutine.create(function() | |
786 | for _, c in pairs(CHILD:GetDescendants()) do | |
787 | if c:IsA("BasePart") then | |
788 | local bv = Instance.new("BodyVelocity") | |
789 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
790 | if POSITION.Y < TORSO.Position.Y then | |
791 | bv.velocity = CF(POSITION, TORSO.Position + VT(0, TORSO.Position.Y - POSITION.Y, 0)).lookVector * FLING | |
792 | else | |
793 | bv.velocity = CF(POSITION, TORSO.Position + VT(0, 5, 0)).lookVector * FLING | |
794 | end | |
795 | bv.Parent = c | |
796 | c.Reflectance = c.Transparency | |
797 | c.Transparency = 1 | |
798 | Debris:AddItem(bv, 0.05) | |
799 | end | |
800 | end | |
801 | if 0 < HUM.Health then | |
802 | if FRAME > 0 then | |
803 | for i = 1, FRAME do | |
804 | for _, c in pairs(CHILD:GetDescendants()) do | |
805 | if c:IsA("BasePart") then | |
806 | c.Transparency = c.Reflectance | |
807 | c.Reflectance = 0 | |
808 | end | |
809 | end | |
810 | wait() | |
811 | for _, c in pairs(CHILD:GetDescendants()) do | |
812 | if c:IsA("BasePart") then | |
813 | c.Reflectance = c.Transparency | |
814 | c.Transparency = 1 | |
815 | end | |
816 | end | |
817 | wait() | |
818 | end | |
819 | else | |
820 | coroutine.resume(coroutine.create(function() | |
821 | HUM.CameraOffset = VT(MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65) | |
822 | end)) | |
823 | TORSO.CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
824 | end | |
825 | for _, c in pairs(CHILD:GetDescendants()) do | |
826 | if c:IsA("BasePart") then | |
827 | c.Transparency = c.Reflectance | |
828 | c.Reflectance = 0 | |
829 | end | |
830 | end | |
831 | else | |
832 | for _, c in pairs(CHILD:GetDescendants()) do | |
833 | if c:IsA("BasePart") then | |
834 | c.Transparency = c.Reflectance | |
835 | c.Reflectance = 0 | |
836 | end | |
837 | end | |
838 | end | |
839 | coroutine.resume(coroutine.create(function() | |
840 | HUM.CameraOffset = VT(0, 0, 0) | |
841 | end)) | |
842 | FRAMES:remove() | |
843 | end)) | |
844 | end | |
845 | end | |
846 | end | |
847 | end | |
848 | end | |
849 | end | |
850 | end | |
851 | end | |
852 | function X() | |
853 | ATTACK = true | |
854 | Rooted = true | |
855 | local TOAIM = Mouse.Hit.p | |
856 | turnto(Mouse.Hit.p) | |
857 | local DONE = false | |
858 | Humanoid.HipHeight = 5 | |
859 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
860 | Swait() | |
861 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
862 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), 0.75 / Animation_Speed) | |
863 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
864 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
865 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
866 | end | |
867 | for i = 0, 1.3, 0.1 / Animation_Speed do | |
868 | Swait() | |
869 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.5 * COS(SINE), 0) * ANGLES(RAD(0), RAD(0), RAD(230)), 0.75 / Animation_Speed) | |
870 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(-50)), 0.75 / Animation_Speed) | |
871 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
872 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
873 | end | |
874 | CreateSound(1537955136, Blade, 5, 1, false) | |
875 | local SLICE = CreatePart(3, Effects, "ForceField", 0, 0, "Magenta", "Slash", VT(0, 16, 0)) | |
876 | MakeForm(SLICE, "Ball") | |
877 | CreateSound(342793847, SLICE, 5, 3, false) | |
878 | SLICE.CFrame = CF(RootPart.CFrame * CF(0, 0, 4).p, TOAIM) * ANGLES(RAD(0), RAD(0), RAD(-45)) | |
879 | ParticleEmitter({ | |
880 | Speed = 2, | |
881 | Drag = 3, | |
882 | Size1 = 0.2, | |
883 | Size2 = 1, | |
884 | Lifetime1 = 1, | |
885 | Lifetime2 = 3, | |
886 | Parent = SLICE, | |
887 | Emit = 15, | |
888 | Offset = 360, | |
889 | Enabled = false | |
890 | }) | |
891 | coroutine.resume(coroutine.create(function() | |
892 | Swait(35) | |
893 | SLICE.Transparency = 0 | |
894 | for i = 1, 45 do | |
895 | Swait() | |
896 | SLICE.Size = SLICE.Size + VT(1 + i / 45, 0, 0) / 5 | |
897 | end | |
898 | wait(0.3) | |
899 | local BEAM = CreatePart(3, Effects, "ForceField", 0, 0, "Magenta", "SlashBeam", VT(0, 0, 0)) | |
900 | MakeForm(BEAM, "Cyl") | |
901 | BEAM.Color = SLICE.Color | |
902 | local AIMHIT, AIMPOS = CastProperRay(SLICE.Position, TOAIM, 750, Character) | |
903 | local DISTANCE = (SLICE.Position - AIMPOS).Magnitude | |
904 | BEAM.CFrame = CF(SLICE.Position, AIMPOS) * CF(0, 0, -(DISTANCE / 2) - 7.5) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
905 | BEAM.Size = VT(0, DISTANCE + 15, 0) | |
906 | BEAM.Mesh.Scale = VT(1.8, 1, 1.8) | |
907 | local BOP = CreatePart(3, Effects, "ForceField", 0, 0, "Magenta", "Bop", VT(0, 0, 0)) | |
908 | MakeForm(BOP, "Ball") | |
909 | BOP.Color = SLICE.Color | |
910 | BOP.CFrame = BEAM.CFrame * CF(0, -BEAM.Size.Y / 2, 0) | |
911 | wait(0.1) | |
912 | local SIZE = SLICE.Size.X | |
913 | local SOUND = CreateSound(415700134, SLICE, 10, 1, false) | |
914 | local PRT = ParticleEmitter({ | |
915 | Speed = 0, | |
916 | Drag = 0, | |
917 | Size1 = 0.3, | |
918 | Size2 = 0.7, | |
919 | Lifetime1 = 1, | |
920 | Lifetime2 = 1.5, | |
921 | Parent = BEAM, | |
922 | Emit = 100, | |
923 | Offset = 360, | |
924 | Enabled = true | |
925 | }) | |
926 | PRT.ZOffset = 12 | |
927 | for i = 1, 25 do | |
928 | Swait() | |
929 | for i = 1, math.ceil(BEAM.Size.Y / 5) do | |
930 | ApplyAoE(BEAM.CFrame * CF(0, BEAM.Size.Y / 2 - i * 5, 0).p, BEAM.Size.X / 1.5, 1, 1, 5, 0) | |
931 | end | |
932 | BEAM.Size = BEAM.Size + VT(SIZE / 25, 0, SIZE / 25) / 1.8 | |
933 | BOP.Size = BOP.Size + VT(SIZE / 25, SIZE / 25, SIZE / 25) | |
934 | Humanoid.CameraOffset = VT(MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65) | |
935 | end | |
936 | repeat | |
937 | Swait() | |
938 | BOP.CFrame = BEAM.CFrame * CF(0, -BEAM.Size.Y / 2, 0) | |
939 | SOUND.Parent = SLICE | |
940 | for i = 1, math.ceil(BEAM.Size.Y / 5) do | |
941 | ApplyAoE(BEAM.CFrame * CF(0, BEAM.Size.Y / 2 - i * 5, 0).p, BEAM.Size.X, 1, 1, 5, 0) | |
942 | end | |
943 | Humanoid.CameraOffset = VT(MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65, MRANDOM(-35, 35) / 65) | |
944 | until SOUND.Playing == false | |
945 | BOP:remove() | |
946 | BEAM:remove() | |
947 | DONE = true | |
948 | Humanoid.CameraOffset = VT(0, 0, 0) | |
949 | for i = 1, 45 do | |
950 | Swait() | |
951 | SLICE.Size = SLICE.Size - VT(1 + i / 45, 0, 0) / 5 | |
952 | end | |
953 | SLICE:remove() | |
954 | end)) | |
955 | for i = 0, 1, 0.1 / Animation_Speed do | |
956 | Swait() | |
957 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(40), RAD(0), RAD(0)), 3 / Animation_Speed) | |
958 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(130)), 3 / Animation_Speed) | |
959 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(0)), 3 / Animation_Speed) | |
960 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(-75), RAD(45)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
961 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
962 | end | |
963 | FORCEWINGS = true | |
964 | for i = 1, 200 do | |
965 | Swait() | |
966 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
967 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(180 + i)) * ANGLES(RAD(15), RAD(0), RAD(0)) * CF(i, -i, i * 5), 0.75 / Animation_Speed) | |
968 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
969 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
970 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
971 | end | |
972 | repeat | |
973 | wait() | |
974 | until DONE == true | |
975 | RootJoint.C0 = CF(0, 300, 0) | |
976 | Humanoid.HipHeight = 1 | |
977 | for i = 1, 50 do | |
978 | Swait() | |
979 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(40), RAD(0), RAD(0)), 3 / Animation_Speed) | |
980 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0), 0.25 / Animation_Speed) | |
981 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
982 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(32)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
983 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(35), RAD(-32)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
984 | end | |
985 | ATTACK = false | |
986 | Rooted = false | |
987 | FORCEWINGS = false | |
988 | end | |
989 | function Intro() | |
990 | ATTACK = true | |
991 | Rooted = true | |
992 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
993 | Swait() | |
994 | LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.85) * ANGLES(RAD(0), RAD(-15), RAD(0)), 0.75 / Animation_Speed) | |
995 | RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.85) * ANGLES(RAD(0), RAD(15), RAD(0)), 0.75 / Animation_Speed) | |
996 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(50)), 0.75 / Animation_Speed) | |
997 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(-50)), 0.75 / Animation_Speed) | |
998 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
999 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1000 | end | |
1001 | for i = 0, 3, 0.1 / Animation_Speed do | |
1002 | Swait() | |
1003 | LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1004 | RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1005 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 - 0.5 * COS(SINE), 0, 0) * ANGLES(RAD(0), RAD(0), RAD(50)), 0.75 / Animation_Speed) | |
1006 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(-50)), 0.75 / Animation_Speed) | |
1007 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(35), RAD(-35)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1008 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1009 | end | |
1010 | CreateSound(1537955136, Blade, 5, 1, false) | |
1011 | RWING.Transparency = 0 | |
1012 | LWING.Transparency = 0 | |
1013 | for i = 1, 15 do | |
1014 | Swait() | |
1015 | LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.55) * ANGLES(RAD(0), RAD(15), RAD(0)), 0.75 / Animation_Speed) | |
1016 | RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.55) * ANGLES(RAD(0), RAD(-15), RAD(0)), 0.75 / Animation_Speed) | |
1017 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-50 - i / 15 * 360)), 0.75 / Animation_Speed) | |
1018 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(50)), 0.75 / Animation_Speed) | |
1019 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1020 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1021 | end | |
1022 | for i = 1, 15 do | |
1023 | Swait() | |
1024 | LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.7, 0.55) * ANGLES(RAD(0), RAD(15), RAD(0)), 0.75 / Animation_Speed) | |
1025 | RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.7, 0.55) * ANGLES(RAD(0), RAD(-15), RAD(0)), 0.75 / Animation_Speed) | |
1026 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.75 / Animation_Speed) | |
1027 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(50)), 0.75 / Animation_Speed) | |
1028 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1029 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1030 | end | |
1031 | for i = 0, 1, 0.1 / Animation_Speed do | |
1032 | Swait() | |
1033 | LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(65), RAD(0)), 0.75 / Animation_Speed) | |
1034 | RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.5, 0.85) * ANGLES(RAD(-25), RAD(-65), RAD(0)), 0.75 / Animation_Speed) | |
1035 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1036 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1037 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1038 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1039 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1040 | end | |
1041 | ATTACK = false | |
1042 | Rooted = false | |
1043 | end | |
1044 | function Z() | |
1045 | ATTACK = true | |
1046 | Rooted = true | |
1047 | CreateSound(1537955136, Torso, 5, 1, false) | |
1048 | for i = 1, 15 do | |
1049 | Swait() | |
1050 | RootPart.CFrame = RootPart.CFrame * CF(0, 0, 0.5) | |
1051 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + i / 15 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed) | |
1052 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed) | |
1053 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1054 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1055 | end | |
1056 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1057 | Swait() | |
1058 | RootPart.CFrame = RootPart.CFrame * CF(0, 0, 0.015) | |
1059 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed) | |
1060 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed) | |
1061 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1062 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1063 | end | |
1064 | FORCEWINGS = true | |
1065 | for i = 1, 10 do | |
1066 | for i = 0, 0.02, 0.1 / Animation_Speed do | |
1067 | Swait() | |
1068 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1069 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(85)), 2 / Animation_Speed) | |
1070 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)), 2 / Animation_Speed) | |
1071 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1072 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1073 | end | |
1074 | do | |
1075 | local RANDOM = MRANDOM(-7, 7) / 5 | |
1076 | local RANDOM2 = MRANDOM(-7, 7) / 5 | |
1077 | for i = 0, 0.01, 0.1 / Animation_Speed do | |
1078 | Swait() | |
1079 | RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.2) | |
1080 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1081 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 3 / Animation_Speed) | |
1082 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 3 / Animation_Speed) | |
1083 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.75, 0.5 + RANDOM, 0 + RANDOM2) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1084 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1085 | end | |
1086 | local WAVES = {} | |
1087 | coroutine.resume(coroutine.create(function() | |
1088 | repeat | |
1089 | Swait() | |
1090 | for E = 1, #WAVES do | |
1091 | if WAVES[E] ~= nil then | |
1092 | ApplyAoE(WAVES[E].Position, 3, 25, 35, 35, 3) | |
1093 | if WAVES[E].Transparency > 0.99 then | |
1094 | WAVES[E]:remove() | |
1095 | table.remove(WAVES, E) | |
1096 | else | |
1097 | WAVES[E].CFrame = WAVES[E].CFrame * CF(0, 1.2, 0) | |
1098 | WAVES[E].Transparency = WAVES[E].Transparency + 0.03 | |
1099 | end | |
1100 | end | |
1101 | end | |
1102 | until #WAVES == 0 | |
1103 | end)) | |
1104 | local Wave = CreatePart(3, Effects, "ForceField", 0, 0.25, "New Yeller", "Wave", VT(1, 3, 1)) | |
1105 | MakeForm(Wave, "Pine") | |
1106 | Wave.CFrame = Blade.CFrame | |
1107 | table.insert(WAVES, Wave) | |
1108 | CreateSound(1537955679, Wave, 7, 1, true) | |
1109 | end | |
1110 | end | |
1111 | ATTACK = false | |
1112 | Rooted = false | |
1113 | FORCEWINGS = false | |
1114 | end | |
1115 | function B() | |
1116 | ATTACK = true | |
1117 | Rooted = false | |
1118 | FORCEWINGS = true | |
1119 | for i = 0, 1, 0.1 / Animation_Speed do | |
1120 | Swait() | |
1121 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(170), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1122 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.5 * COS(SINE), 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1123 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1124 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1125 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1126 | end | |
1127 | CreateSound(1537955679, Blade, 7, 0.7, false) | |
1128 | Rooted = true | |
1129 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
1130 | Swait() | |
1131 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed) | |
1132 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1133 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1134 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1135 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1136 | end | |
1137 | coroutine.resume(coroutine.create(function() | |
1138 | local FRAME = RootPart.CFrame * CF(0, -5, -0.5) | |
1139 | for i = 1, 125 do | |
1140 | Swait() | |
1141 | FRAME = FRAME * CF(0, 0, -1) | |
1142 | ApplyAoE(FRAME.p, 5, 45, 55, 35, 15) | |
1143 | WACKYEFFECT({ | |
1144 | Time = 25, | |
1145 | EffectType = "Sphere", | |
1146 | Size = VT(1, 18, 1), | |
1147 | Size2 = VT(1, 0, 1), | |
1148 | Transparency = 0, | |
1149 | Transparency2 = 1, | |
1150 | CFrame = FRAME, | |
1151 | MoveToPos = nil, | |
1152 | RotationX = 0, | |
1153 | RotationY = 0, | |
1154 | RotationZ = 0, | |
1155 | Material = "ForceField", | |
1156 | Color = RWING.Color, | |
1157 | SoundID = nil, | |
1158 | SoundPitch = nil, | |
1159 | SoundVolume = nil | |
1160 | }) | |
1161 | end | |
1162 | end)) | |
1163 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
1164 | Swait() | |
1165 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed) | |
1166 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1167 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1168 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1169 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1170 | end | |
1171 | FORCEWINGS = false | |
1172 | ATTACK = false | |
1173 | Rooted = false | |
1174 | end | |
1175 | function C() | |
1176 | FORCEWINGS = true | |
1177 | ATTACK = true | |
1178 | for i = 0, 1, 0.1 / Animation_Speed do | |
1179 | Swait() | |
1180 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1181 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1182 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1183 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1184 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1185 | end | |
1186 | Rooted = true | |
1187 | local Orb = CreatePart(3, Effects, "ForceField", 0, 0, "Pearl", "Orb", VT(0, 0, 0)) | |
1188 | MakeForm(Orb, "Ball") | |
1189 | Orb.CFrame = Blade.CFrame * CF(0, 2.25, 0) | |
1190 | for i = 1, 35 do | |
1191 | Swait() | |
1192 | Orb.CFrame = Blade.CFrame * CF(0, 2.25, 0) | |
1193 | Orb.Size = Orb.Size + VT(0.05, 0.05, 0.05) | |
1194 | end | |
1195 | local MAIN = CreatePart(3, Effects, "ForceField", 0, 0, "Pearl", "Beam", VT(0, 0, 0)) | |
1196 | MakeForm(MAIN, "Cyl") | |
1197 | for i = 1, 200 do | |
1198 | Swait() | |
1199 | local AIMHIT, AIMPOS = CastProperRay(Orb.Position, Mouse.Hit.p, 750, Character) | |
1200 | local DISTANCE = (Orb.Position - AIMPOS).Magnitude | |
1201 | MAIN.CFrame = CF(Orb.Position, AIMPOS) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1202 | MAIN.Size = VT(0.7, DISTANCE, 0.7) | |
1203 | ApplyAoE(AIMPOS, 3, 35, 65, 35, 20) | |
1204 | end | |
1205 | MAIN:remove() | |
1206 | ATTACK = false | |
1207 | Rooted = false | |
1208 | FORCEWINGS = false | |
1209 | for i = 1, 35 do | |
1210 | Swait() | |
1211 | Orb.Size = Orb.Size - VT(0.05, 0.05, 0.05) | |
1212 | end | |
1213 | Orb:remove() | |
1214 | end | |
1215 | function V() | |
1216 | FORCEWINGS = true | |
1217 | ATTACK = true | |
1218 | Rooted = true | |
1219 | local AREAS = {} | |
1220 | for i = 1, 15 do | |
1221 | local AREA = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(6, 35)).p | |
1222 | local HITFLOOR, HITPOS = CastProperRay(AREA + VT(0, 35, 0), AREA - VT(0, 35, 0), 65, Character) | |
1223 | if HITFLOOR then | |
1224 | table.insert(AREAS, HITPOS) | |
1225 | end | |
1226 | end | |
1227 | for E = 1, 35 do | |
1228 | Swait() | |
1229 | for i = 1, #AREAS do | |
1230 | WACKYEFFECT({ | |
1231 | Time = 5, | |
1232 | EffectType = "Wave", | |
1233 | Size = VT(5, 1, 5), | |
1234 | Size2 = VT(5, 1, 5), | |
1235 | Transparency = 0.5, | |
1236 | Transparency2 = 1, | |
1237 | CFrame = CF(AREAS[i]) * ANGLES(RAD(0), RAD(E), RAD(0)), | |
1238 | MoveToPos = nil, | |
1239 | RotationX = 0, | |
1240 | RotationY = 0, | |
1241 | RotationZ = 0, | |
1242 | Material = "ForceField", | |
1243 | Color = RWING.Color, | |
1244 | SoundID = nil, | |
1245 | SoundPitch = nil, | |
1246 | SoundVolume = nil | |
1247 | }) | |
1248 | end | |
1249 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.5 * COS(SINE), 0) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.75 / Animation_Speed) | |
1250 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35), RAD(0), RAD(50)), 0.75 / Animation_Speed) | |
1251 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1252 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1253 | end | |
1254 | for E = 1, 12 do | |
1255 | Swait() | |
1256 | for i = 1, #AREAS do | |
1257 | WACKYEFFECT({ | |
1258 | Time = 5, | |
1259 | EffectType = "Wave", | |
1260 | Size = VT(5, 1, 5), | |
1261 | Size2 = VT(5, 1, 5), | |
1262 | Transparency = 0.5, | |
1263 | Transparency2 = 1, | |
1264 | CFrame = CF(AREAS[i]) * ANGLES(RAD(0), RAD(E + 35), RAD(0)), | |
1265 | MoveToPos = nil, | |
1266 | RotationX = 0, | |
1267 | RotationY = 0, | |
1268 | RotationZ = 0, | |
1269 | Material = "ForceField", | |
1270 | Color = RWING.Color, | |
1271 | SoundID = nil, | |
1272 | SoundPitch = nil, | |
1273 | SoundVolume = nil | |
1274 | }) | |
1275 | end | |
1276 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1277 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1278 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1279 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1280 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1281 | end | |
1282 | for i = 1, #AREAS do | |
1283 | ApplyAoE(AREAS[i], 15, 45, 55, 35, 20) | |
1284 | Lightning({ | |
1285 | Color = BRICKC("New Yeller").Color, | |
1286 | Start = AREAS[i], | |
1287 | End = AREAS[i] + VT(0, 100, 0), | |
1288 | SegmentL = 2, | |
1289 | Thickness = 0.2, | |
1290 | DoesFade = true, | |
1291 | Ignore = workspace, | |
1292 | MaxDist = 30, | |
1293 | Branches = false | |
1294 | }) | |
1295 | Lightning({ | |
1296 | Color = RWING.Color, | |
1297 | Start = AREAS[i], | |
1298 | End = AREAS[i] + VT(0, 100, 0), | |
1299 | SegmentL = 2, | |
1300 | Thickness = 0.3, | |
1301 | DoesFade = true, | |
1302 | Ignore = workspace, | |
1303 | MaxDist = 35, | |
1304 | Branches = false | |
1305 | }) | |
1306 | WACKYEFFECT({ | |
1307 | Time = 15, | |
1308 | EffectType = "Wave", | |
1309 | Size = VT(10, 0, 10), | |
1310 | Size2 = VT(9, 5, 9), | |
1311 | Transparency = 0, | |
1312 | Transparency2 = 1, | |
1313 | CFrame = CF(AREAS[i]), | |
1314 | MoveToPos = nil, | |
1315 | RotationX = 0, | |
1316 | RotationY = 5, | |
1317 | RotationZ = 0, | |
1318 | Material = "ForceField", | |
1319 | Color = RWING.Color, | |
1320 | SoundID = 1537955136, | |
1321 | SoundPitch = MRANDOM(6, 8) / 10, | |
1322 | SoundVolume = 2 | |
1323 | }) | |
1324 | end | |
1325 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
1326 | Swait() | |
1327 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1328 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1329 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1330 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1331 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(80), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1332 | end | |
1333 | FORCEWINGS = false | |
1334 | ATTACK = false | |
1335 | Rooted = false | |
1336 | end | |
1337 | function G() | |
1338 | ATTACK = true | |
1339 | Rooted = true | |
1340 | FORCEWINGS = true | |
1341 | CreateSound(1537955136, Torso, 5, 1, false) | |
1342 | for i = 1, 15 do | |
1343 | Swait() | |
1344 | RootPart.CFrame = RootPart.CFrame * CF(0, 0, 0.8) | |
1345 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + i / 15 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed) | |
1346 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed) | |
1347 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1348 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1349 | end | |
1350 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1351 | Swait() | |
1352 | RootPart.CFrame = RootPart.CFrame * CF(0, 0, 0.015) | |
1353 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed) | |
1354 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed) | |
1355 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1356 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1357 | end | |
1358 | for i = 0, 1, 0.1 / Animation_Speed do | |
1359 | Swait() | |
1360 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(170), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1361 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.5 * COS(SINE), 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1362 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1363 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1364 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1365 | end | |
1366 | CreateSound(1537955679, Blade, 7, 0.7, false) | |
1367 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
1368 | Swait() | |
1369 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed) | |
1370 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1371 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1372 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1373 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1374 | end | |
1375 | local TORNADOBASE = CreatePart(3, Effects, "ForceField", 0, 0, "Magenta", "Tornado", VT(5, 22.5, 5)) | |
1376 | MakeForm(TORNADOBASE, "Ball") | |
1377 | TORNADOBASE.Mesh.Scale = VT(1, 8, 1) | |
1378 | local SWIRL = CreatePart(3, Effects, "ForceField", 0, 0, "New Yeller", "Tornado", VT(0, 0, 0)) | |
1379 | CreateMesh("SpecialMesh", SWIRL, "FileMesh", "1051557", "", VT(6, 135, 6), VT(0, 0, 0)) | |
1380 | local SWIRL2 = CreatePart(3, Effects, "ForceField", 0, 0, "New Yeller", "Tornado", VT(0, 0, 0)) | |
1381 | CreateMesh("SpecialMesh", SWIRL2, "FileMesh", "1051557", "", VT(6, 135, 6), VT(0, 0, 0)) | |
1382 | CreateSound(415700134, TORNADOBASE, 3, 0.5, true) | |
1383 | coroutine.resume(coroutine.create(function() | |
1384 | local FRAME = RootPart.CFrame * CF(0, -5, -0.5) | |
1385 | for E = 1, 185 do | |
1386 | Swait() | |
1387 | FRAME = FRAME * CF(0, 0, -0.8) | |
1388 | TORNADOBASE.CFrame = FRAME * CF(0, TORNADOBASE.Size.Y / 2, 0) | |
1389 | SWIRL.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(E * 5), RAD(0)) | |
1390 | SWIRL2.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(-E * 15), RAD(0)) | |
1391 | for i = 1, math.ceil(TORNADOBASE.Size.Y / 6) do | |
1392 | ApplyAoE(TORNADOBASE.CFrame * CF(0, TORNADOBASE.Size.Y / 2, 0) * CF(0, -i * 6, 0).p, 8, 2, 3, -35, 0) | |
1393 | end | |
1394 | WACKYEFFECT({ | |
1395 | Time = 5, | |
1396 | EffectType = "Wave", | |
1397 | Size = VT(10, 8, 10), | |
1398 | Size2 = VT(0, 0, 0), | |
1399 | Transparency = 0, | |
1400 | Transparency2 = 1, | |
1401 | CFrame = CF(FRAME.p) * ANGLES(RAD(0), RAD(E * 5), RAD(0)), | |
1402 | MoveToPos = nil, | |
1403 | RotationX = 0, | |
1404 | RotationY = 5, | |
1405 | RotationZ = 0, | |
1406 | Material = "ForceField", | |
1407 | Color = TORNADOBASE.Color, | |
1408 | SoundID = nil, | |
1409 | SoundPitch = MRANDOM(6, 8) / 10, | |
1410 | SoundVolume = 2 | |
1411 | }) | |
1412 | end | |
1413 | for i = 1, 15 do | |
1414 | Swait() | |
1415 | TORNADOBASE.Transparency = i / 15 | |
1416 | SWIRL.Transparency = i / 15 | |
1417 | SWIRL2.Transparency = i / 15 | |
1418 | SWIRL.CFrame = SWIRL.CFrame * ANGLES(RAD(0), RAD(i * 5), RAD(0)) | |
1419 | SWIRL2.CFrame = SWIRL2.CFrame * ANGLES(RAD(0), RAD(-i * 15), RAD(0)) | |
1420 | end | |
1421 | TORNADOBASE:remove() | |
1422 | SWIRL:remove() | |
1423 | SWIRL2:remove() | |
1424 | end)) | |
1425 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
1426 | Swait() | |
1427 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed) | |
1428 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1429 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1430 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1431 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1432 | end | |
1433 | FORCEWINGS = false | |
1434 | ATTACK = false | |
1435 | Rooted = false | |
1436 | end | |
1437 | function MouseDown(Mouse) | |
1438 | if ATTACK == false then | |
1439 | end | |
1440 | end | |
1441 | function MouseUp(Mouse) | |
1442 | HOLD = false | |
1443 | end | |
1444 | function KeyDown(Key) | |
1445 | KEYHOLD = true | |
1446 | if VALUE1 == false then | |
1447 | if Key == "z" and ATTACK == false then | |
1448 | Z() | |
1449 | end | |
1450 | if Key == "b" and ATTACK == false then | |
1451 | B() | |
1452 | end | |
1453 | if Key == "c" and ATTACK == false then | |
1454 | C() | |
1455 | end | |
1456 | if Key == "v" and ATTACK == false then | |
1457 | V() | |
1458 | end | |
1459 | if Key == "g" and ATTACK == false then | |
1460 | G() | |
1461 | end | |
1462 | if Key == "x" and ATTACK == false then | |
1463 | X() | |
1464 | end | |
1465 | if Key == "q" and ATTACK == false then | |
1466 | VALUE1 = true | |
1467 | GYRO = IT("BodyGyro", RootPart) | |
1468 | GYRO.D = 75 | |
1469 | GYRO.P = 40000 | |
1470 | GYRO.MaxTorque = VT(40000, 40000, 40000) | |
1471 | GYRO.cframe = CF(RootPart.Position, RootPart.CFrame * CF(0, 0, -1).p) | |
1472 | FLIGHTFORCE = Instance.new("BodyPosition", RootPart) | |
1473 | FLIGHTFORCE.D = 215 | |
1474 | FLIGHTFORCE.P = 20000 | |
1475 | FLIGHTFORCE.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
1476 | FLIGHTFORCE.position = RootPart.Position + VT(0, 1, 0) | |
1477 | end | |
1478 | elseif VALUE1 == true then | |
1479 | if Key == "q" and ATTACK == false then | |
1480 | VALUE1 = false | |
1481 | end | |
1482 | if Key == "w" and ATTACK == false then | |
1483 | CreateSound(1537955679, RWING, 7, 1.2, false) | |
1484 | CreateSound(1537955679, LWING, 7, 1.2, false) | |
1485 | repeat | |
1486 | VALUE2 = true | |
1487 | Swait() | |
1488 | FLIGHTFORCE.Position = RootPart.CFrame * CF(0, 0, -5).p | |
1489 | until KEYHOLD == false | |
1490 | VALUE2 = false | |
1491 | end | |
1492 | end | |
1493 | end | |
1494 | function KeyUp(Key) | |
1495 | KEYHOLD = false | |
1496 | end | |
1497 | Mouse.Button1Down:connect(function(NEWKEY) | |
1498 | MouseDown(NEWKEY) | |
1499 | end) | |
1500 | Mouse.Button1Up:connect(function(NEWKEY) | |
1501 | MouseUp(NEWKEY) | |
1502 | end) | |
1503 | Mouse.KeyDown:connect(function(NEWKEY) | |
1504 | KeyDown(NEWKEY) | |
1505 | end) | |
1506 | Mouse.KeyUp:connect(function(NEWKEY) | |
1507 | KeyUp(NEWKEY) | |
1508 | end) | |
1509 | function unanchor() | |
1510 | if UNANCHOR == true then | |
1511 | g = Character:GetChildren() | |
1512 | for i = 1, #g do | |
1513 | if g[i].ClassName == "Part" then | |
1514 | g[i].Anchored = false | |
1515 | end | |
1516 | end | |
1517 | end | |
1518 | end | |
1519 | Humanoid.Changed:connect(function(Jump) | |
1520 | if Jump == "Jump" and Disable_Jump == true then | |
1521 | Humanoid.Jump = false | |
1522 | end | |
1523 | end) | |
1524 | while true do | |
1525 | Swait() | |
1526 | script.Parent = WEAPONGUI | |
1527 | ANIMATE.Parent = nil | |
1528 | for _, v in next, Humanoid:GetPlayingAnimationTracks() do | |
1529 | v:Stop() | |
1530 | end | |
1531 | SINE = SINE + CHANGE * 2 | |
1532 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1533 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1534 | if VALUE1 == false then | |
1535 | if GYRO ~= nil then | |
1536 | GYRO:remove() | |
1537 | end | |
1538 | if FLIGHTFORCE ~= nil then | |
1539 | FLIGHTFORCE:remove() | |
1540 | end | |
1541 | if ATTACK == false then | |
1542 | Grasp.C1 = Clerp(Grasp.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1543 | if TORSOVELOCITY < 1 then | |
1544 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 0.75 / Animation_Speed) | |
1545 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(35)), 0.75 / Animation_Speed) | |
1546 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(5 - 5 * COS(SINE / 12)), RAD(-35), RAD(12 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1547 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1548 | elseif TORSOVELOCITY > 1 then | |
1549 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 - 0.1 * SIN(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1550 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1551 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1552 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(-35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1553 | end | |
1554 | end | |
1555 | elseif VALUE1 == true then | |
1556 | if VALUE2 == false and ATTACK == false then | |
1557 | if GYRO ~= nil then | |
1558 | GYRO.MaxTorque = VT(0, 40000, 0) | |
1559 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
1560 | end | |
1561 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 0.75 / Animation_Speed) | |
1562 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(35)), 0.75 / Animation_Speed) | |
1563 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(5 - 5 * COS(SINE / 12)), RAD(-35), RAD(12 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1564 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1565 | elseif VALUE2 == true and ATTACK == false then | |
1566 | if GYRO ~= nil then | |
1567 | GYRO.MaxTorque = VT(40000, 40000, 40000) | |
1568 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
1569 | end | |
1570 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(75), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1571 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-40), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1572 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-35), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1573 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(-35), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
1574 | end | |
1575 | end | |
1576 | if FORCEWINGS == true or ATTACK == false then | |
1577 | LWELD.C0 = Clerp(LWELD.C0, CF(-1, 1.5, 0.7 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(12 * COS(SINE / 12)), RAD(45), RAD(0)), 0.75 / Animation_Speed) | |
1578 | RWELD.C0 = Clerp(RWELD.C0, CF(1, 1.5, 0.7 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(12 * COS(SINE / 12)), RAD(-45), RAD(0)), 0.75 / Animation_Speed) | |
1579 | end | |
1580 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.7, -0.4) * ANGLES(RAD(-25), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1581 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.7, -0.4) * ANGLES(RAD(-15), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1582 | unanchor() | |
1583 | Humanoid.MaxHealth = "inf" | |
1584 | Humanoid.Health = "inf" | |
1585 | if Rooted == false then | |
1586 | Disable_Jump = false | |
1587 | Humanoid.WalkSpeed = Speed | |
1588 | elseif Rooted == true then | |
1589 | Disable_Jump = true | |
1590 | Humanoid.WalkSpeed = 0 | |
1591 | end | |
1592 | sick.SoundId = "rbxassetid://2050608658" | |
1593 | sick.Looped = true | |
1594 | sick.Pitch = 1 | |
1595 | sick.Volume = 3 | |
1596 | sick.Parent = Torso | |
1597 | sick:Resume() | |
1598 | if INTRO == false then | |
1599 | INTRO = true | |
1600 | coroutine.resume(coroutine.create(function() | |
1601 | Intro() | |
1602 | end)) | |
1603 | end | |
1604 | for _, c in pairs(Character:GetChildren()) do | |
1605 | if c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then | |
1606 | c:remove() | |
1607 | elseif c.ClassName == "Accessory" and c.Handle:FindFirstChild("HairAttachment") == nil then | |
1608 | c:remove() | |
1609 | end | |
1610 | end | |
1611 | Humanoid.Name = "Galacta " .. Player.Name | |
1612 | end | |
1613 | ||
1614 | ||
1615 | local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(234,0,255),Color3.fromRGB(0,13,255),Color3.fromRGB(0,238,255),Color3.fromRGB(0,255,0),Color3.fromRGB(255,255,0),Color3.fromRGB(255,255,0)} | |
1616 | while wait(0.5) do | |
1617 | if Int == #Colours then Int = 0 end | |
1618 | Int = Int+1 | |
1619 | TweenService:Create(Shield,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
1620 | end |