SHOW:
|
|
- or go back to the newest paste.
1 | -------------------|| | |
2 | --------------------\\ | |
3 | --||||||||||]]]]]]]]]\\ | |
4 | ---------------------\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | |
5 | --EDIT BY InfiniteOneWithdank NAME OF SCRIPT: VOID SPAWN CREATOR OF THE VOID IN OTHER WORDS ANYONE WHO APPOSE THY IS DEAD|]]>> | |
6 | - | ---------------------///////////////////////////////////////////////////////////////////////////////////////////////////////// |
6 | + | -------------------///////////////////////////////////////////////////////////////////////////////////////////////////////// |
7 | --||||||||||]]]]]]]]]// | |
8 | --------------------// | |
9 | -------------------|| | |
10 | - | local Player = game:GetService("Players").Galaxy_Master8712 |
10 | + | local Player = game:GetService("Players").silver22352 |
11 | local Mouse,mouse,UserInputService,ContextActionService | |
12 | do | |
13 | script.Parent = Player.Character | |
14 | local CAS = {Actions={}} | |
15 | local Event = Instance.new("RemoteEvent") | |
16 | Event.Name = "UserInput_Event" | |
17 | Event.Parent = Player.Character | |
18 | local fakeEvent = function() | |
19 | local t = {_fakeEvent=true} | |
20 | t.Connect = function(self,f)self.Function=f end | |
21 | t.connect = t.Connect | |
22 | return t | |
23 | end | |
24 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
25 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
26 | function CAS:BindAction(name,fun,touch,...) | |
27 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
28 | end | |
29 | function CAS:UnbindAction(name) | |
30 | CAS.Actions[name] = nil | |
31 | end | |
32 | local function te(self,ev,...) | |
33 | local t = m[ev] | |
34 | if t and t._fakeEvent and t.Function then | |
35 | t.Function(...) | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
46 | if io.UserInputState == Enum.UserInputState.Begin then | |
47 | m:TrigEvent("Button1Down") | |
48 | else | |
49 | m:TrigEvent("Button1Up") | |
50 | end | |
51 | else | |
52 | for n,t in pairs(CAS.Actions) do | |
53 | for _,k in pairs(t.Keys) do | |
54 | if k==io.KeyCode then | |
55 | t.Function(t.Name,io.UserInputState,io) | |
56 | end | |
57 | end | |
58 | end | |
59 | if io.UserInputState == Enum.UserInputState.Begin then | |
60 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent("InputBegan",io,false) | |
62 | else | |
63 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
64 | UIS:TrigEvent("InputEnded",io,false) | |
65 | end | |
66 | end | |
67 | end) | |
68 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
69 | end | |
70 | ||
71 | print("Edit By InfiniteOneWithdank, Shackluster/PityPolygon Made The Original Base Of This Script") | |
72 | ||
73 | wait(0.2) | |
74 | - | Player = game:GetService("Players").Galaxy_Master8712 |
74 | + | Player = game:GetService("Players").silver22352 |
75 | PlayerGui = Player.PlayerGui | |
76 | Cam = workspace.CurrentCamera | |
77 | Backpack = Player.Backpack | |
78 | Character = Player.Character | |
79 | Humanoid = Character.Humanoid | |
80 | RootPart = Character.HumanoidRootPart | |
81 | Torso = Character.Torso | |
82 | Head = Character.Head | |
83 | RightArm = Character["Right Arm"] | |
84 | LeftArm = Character["Left Arm"] | |
85 | RightLeg = Character["Right Leg"] | |
86 | LeftLeg = Character["Left Leg"] | |
87 | RootJoint = RootPart.RootJoint | |
88 | Neck = Torso.Neck | |
89 | RightShoulder = Torso["Right Shoulder"] | |
90 | LeftShoulder = Torso["Left Shoulder"] | |
91 | RightHip = Torso["Right Hip"] | |
92 | LeftHip = Torso["Left Hip"] | |
93 | - | local p = game:GetService("Players").Galaxy_Master8712 |
93 | + | local p = game:GetService("Players").silver22352 |
94 | - | local plr = game:GetService("Players").Galaxy_Master8712 |
94 | + | local plr = game:GetService("Players").silver22352 |
95 | - | local player = game:GetService("Players").Galaxy_Master8712 |
95 | + | local player = game:GetService("Players").silver22352 |
96 | local char = p.Character | |
97 | local larm = char:WaitForChild("Left Arm") | |
98 | local rarm = char:WaitForChild("Right Arm") | |
99 | local lleg = char:WaitForChild("Left Leg") | |
100 | local rleg = char:WaitForChild("Right Leg") | |
101 | local hed = char:WaitForChild("Head") | |
102 | local torso = char:WaitForChild("Torso") | |
103 | local root = char:WaitForChild("HumanoidRootPart") | |
104 | local hum = char:FindFirstChildOfClass("Humanoid") | |
105 | local debris = game:GetService("Debris") | |
106 | local run = game:GetService("RunService") | |
107 | local rs = run.RenderStepped | |
108 | local cam = workspace.CurrentCamera | |
109 | local DAMAGEMULTIPLIER = 1 | |
110 | ||
111 | IT = Instance.new | |
112 | CF = CFrame.new | |
113 | VT = Vector3.new | |
114 | RAD = math.rad | |
115 | C3 = Color3.new | |
116 | UD2 = UDim2.new | |
117 | BRICKC = BrickColor.new | |
118 | ANGLES = CFrame.Angles | |
119 | EULER = CFrame.fromEulerAnglesXYZ | |
120 | COS = math.cos | |
121 | ACOS = math.acos | |
122 | SIN = math.sin | |
123 | ASIN = math.asin | |
124 | ABS = math.abs | |
125 | MRANDOM = math.random | |
126 | FLOOR = math.floor | |
127 | ||
128 | ----------------------------------- | |
129 | --||///////__Sp_a_wn__\\\\\\\\||-- | |
130 | --><Values? | |
131 | Animation_Speed = 1.5 | |
132 | local FORCERESET = false | |
133 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
134 | local SIZE = 1.4 | |
135 | local Speed = 16 | |
136 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
137 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
138 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
139 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
140 | local DAMAGEMULTIPLIER = 1 | |
141 | local ANIM = "Idle" | |
142 | local ATTACK = false | |
143 | local EQUIPPED = false | |
144 | local HOLD = false | |
145 | local COMBO = 1 | |
146 | local Rooted = false | |
147 | local SINE = 0 | |
148 | local KEYHOLD = false | |
149 | local CHANGE = 2 / Animation_Speed | |
150 | local WALKINGANIM = false | |
151 | local VALUE1 = false | |
152 | local VALUE2 = false | |
153 | local ROBLOXIDLEANIMATION = IT("Animation") | |
154 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
155 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
156 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
157 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
158 | WEAPONGUI.Name = "Weapon GUI" | |
159 | local Effects = IT("Folder", Character) | |
160 | Effects.Name = "Effects" | |
161 | local ANIMATOR = Humanoid.Animator | |
162 | local ANIMATE = Character.Animate | |
163 | local UNANCHOR = true | |
164 | local Weapon = IT("Model") | |
165 | Weapon.Name = "Adds" | |
166 | local WHITELIST = {} | |
167 | local HASBEENBLOCKED = false | |
168 | local CRITCHANCENUMBER = 0 | |
169 | Player_Size = 1 | |
170 | local TT = Instance.new("Part") | |
171 | TT.Parent = Weapon | |
172 | TT.Transparency = 1 | |
173 | TT.Size = Vector3.new(1, 1, 1) | |
174 | TT.CFrame = char.Torso.CFrame | |
175 | TT.CanCollide = false | |
176 | TT.Color = Color3.new(150,0,150) | |
177 | TT.TopSurface = "Smooth" | |
178 | TT.BottomSurface = "Smooth" | |
179 | ||
180 | local sick = IT("Sound",RootPart) | |
181 | ||
182 | --><2nd Values | |
183 | ||
184 | Enable_Stats = false --Enables or disables stats. | |
185 | Put_Stats_In_Character = false --Places stats in Character. | |
186 | ||
187 | if Character:FindFirstChild("Stats") ~= nil then | |
188 | Character:FindFirstChild("Stats").Parent = nil | |
189 | end | |
190 | ||
191 | local Stats = IT("Folder", nil) | |
192 | Stats.Name = "Stats" | |
193 | local ChangeStat = IT("Folder", Stats) | |
194 | ChangeStat.Name = "ChangeStat" | |
195 | local Defense = IT("NumberValue", Stats) | |
196 | Defense.Name = "Defense" | |
197 | Defense.Value = 1 | |
198 | local Movement = IT("NumberValue", Stats) | |
199 | Movement.Name = "Movement" | |
200 | Movement.Value = 1 | |
201 | local Damage = IT("NumberValue", Stats) | |
202 | Damage.Name = "Damage" | |
203 | Damage.Value = 1 | |
204 | local Mana = IT("NumberValue", Stats) | |
205 | Mana.Name = "Mana" | |
206 | Mana.Value = 0 | |
207 | local SecondaryMana = IT("NumberValue", Stats) | |
208 | SecondaryMana.Name = "SecondaryMana" | |
209 | SecondaryMana.Value = 0 | |
210 | local CanCrit = IT("BoolValue", Stats) | |
211 | CanCrit.Name = "CanCrit" | |
212 | CanCrit.Value = false | |
213 | local CritChance = IT("NumberValue", Stats) | |
214 | CritChance.Name = "CritChance" | |
215 | CritChance.Value = 20 | |
216 | local CanPenetrateArmor = IT("BoolValue", Stats) | |
217 | CanPenetrateArmor.Name = "CanPenetrateArmor" | |
218 | CanPenetrateArmor.Value = false | |
219 | local AntiTeamKill = IT("BoolValue", Stats) | |
220 | AntiTeamKill.Name = "AntiTeamKill" | |
221 | AntiTeamKill.Value = false | |
222 | local Rooted = IT("BoolValue", Stats) | |
223 | Rooted.Name = "Rooted" | |
224 | Rooted.Value = false | |
225 | local Block = IT("BoolValue", Stats) | |
226 | Block.Name = "Block" | |
227 | Block.Value = false | |
228 | local RecentEnemy = IT("ObjectValue", Stats) | |
229 | RecentEnemy.Name = "RecentEnemy" | |
230 | RecentEnemy.Value = nil | |
231 | local StaggerHit = IT("BoolValue", Stats) | |
232 | StaggerHit.Name = "StaggerHit" | |
233 | StaggerHit.Value = false | |
234 | local Stagger = IT("BoolValue", Stats) | |
235 | Stagger.Name = "Stagger" | |
236 | Stagger.Value = false | |
237 | local Stun = IT("BoolValue", Stats) | |
238 | Stun.Name = "Stun" | |
239 | Stun.Value = false | |
240 | local StunValue = IT("NumberValue", Stats) | |
241 | StunValue.Name = "StunValue" | |
242 | StunValue.Value = 0 | |
243 | ||
244 | if Enable_Stats == true and Put_Stats_In_Character == true then | |
245 | Stats.Parent = Character | |
246 | end | |
247 | ||
248 | Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort. | |
249 | Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort. | |
250 | Enable_Stagger = false --Enables or disables staggering. | |
251 | ||
252 | local BLCF = nil | |
253 | local SCFR = nil | |
254 | ||
255 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
256 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
257 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
258 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
259 | ||
260 | ----------------------------------- | |
261 | ||
262 | ||
263 | ----------------------------------- | |
264 | ---------------------------------> | |
265 | ----------------------------------- | |
266 | ||
267 | ArtificialHB = Instance.new("BindableEvent", script) | |
268 | ArtificialHB.Name = "ArtificialHB" | |
269 | ||
270 | script:WaitForChild("ArtificialHB") | |
271 | ||
272 | frame = Frame_Speed | |
273 | tf = 0 | |
274 | allowframeloss = false | |
275 | tossremainder = false | |
276 | lastframe = tick() | |
277 | script.ArtificialHB:Fire() | |
278 | ||
279 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
280 | tf = tf + s | |
281 | if tf >= frame then | |
282 | if allowframeloss then | |
283 | script.ArtificialHB:Fire() | |
284 | lastframe = tick() | |
285 | else | |
286 | for i = 1, math.floor(tf / frame) do | |
287 | script.ArtificialHB:Fire() | |
288 | end | |
289 | lastframe = tick() | |
290 | end | |
291 | if tossremainder then | |
292 | tf = 0 | |
293 | else | |
294 | tf = tf - frame * math.floor(tf / frame) | |
295 | end | |
296 | end | |
297 | end) | |
298 | ||
299 | ----------------------------------- | |
300 | ||
301 | --><Some Functions | |
302 | ||
303 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
304 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
305 | end | |
306 | ||
307 | function MagicSphere1(SIZE,WAIT,CFRAME,COLOR,GROW) | |
308 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Eye", VT(1,1,1), true) | |
309 | wave.Color = COLOR | |
310 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0)) | |
311 | wave.CFrame = CFRAME | |
312 | coroutine.resume(coroutine.create(function(PART) | |
313 | for i = 1, WAIT do | |
314 | Swait() | |
315 | mesh.Scale = mesh.Scale + GROW | |
316 | wave.Transparency = wave.Transparency + (1/WAIT) | |
317 | if wave.Transparency > 0.99 then | |
318 | wave:remove() | |
319 | end | |
320 | end | |
321 | end)) | |
322 | end | |
323 | ||
324 | function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW) | |
325 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
326 | local mesh = nil | |
327 | if KIND == "Base" then | |
328 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
329 | elseif KIND == "Thin" then | |
330 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
331 | elseif KIND == "Round" then | |
332 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
333 | end | |
334 | wave.CFrame = CFRAME | |
335 | coroutine.resume(coroutine.create(function(PART) | |
336 | for i = 1, WAIT do | |
337 | Swait() | |
338 | mesh.Scale = mesh.Scale + GROW/10 | |
339 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
340 | if wave.Transparency > 0.99 then | |
341 | wave:remove() | |
342 | end | |
343 | end | |
344 | end)) | |
345 | end | |
346 | ||
347 | function chatfunc(text) | |
348 | local chat = coroutine.wrap(function() | |
349 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
350 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
351 | end | |
352 | local Bill = Instance.new("BillboardGui",Character) | |
353 | Bill.Size = UDim2.new(0,100,0,40) | |
354 | Bill.StudsOffset = Vector3.new(0,2,0) | |
355 | Bill.Adornee = Character.Head | |
356 | Bill.Name = "TalkingBillBoard" | |
357 | local Hehe = Instance.new("TextLabel",Bill) | |
358 | Hehe.BackgroundTransparency = 1 | |
359 | Hehe.BorderSizePixel = 0 | |
360 | Hehe.Text = "" | |
361 | Hehe.Font = "Antique" | |
362 | Hehe.TextSize = 40 | |
363 | Hehe.TextStrokeTransparency = 0 | |
364 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
365 | coroutine.resume(coroutine.create(function() | |
366 | while Hehe ~= nil do | |
367 | Swait() | |
368 | Hehe.Position = UDim2.new(math.random(-.2,.2),math.random(-1,1),.05,math.random(-1,1)) | |
369 | Hehe.Rotation = math.random(-5,5) | |
370 | Hehe.TextColor3 = Color3.new(.7,0,.7) | |
371 | Hehe.TextStrokeColor3 = Color3.new(.7,0,.7) | |
372 | end | |
373 | end)) | |
374 | for i = 1,string.len(text),1 do | |
375 | Swait() | |
376 | Hehe.Text = string.sub(text,1,i) | |
377 | end | |
378 | Swait(90)--Re[math.random(1, 93)] | |
379 | for i = 0, 1, .025 do | |
380 | Swait() | |
381 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
382 | Hehe.TextStrokeTransparency = i | |
383 | Hehe.TextTransparency = i | |
384 | end | |
385 | Bill:Destroy() | |
386 | end) | |
387 | chat() | |
388 | end | |
389 | ||
390 | function onChatted(msg) | |
391 | chatfunc(msg) | |
392 | end | |
393 | ||
394 | Player.Chatted:connect(onChatted) | |
395 | ||
396 | function PositiveAngle(NUMBER) | |
397 | if NUMBER >= 0 then | |
398 | NUMBER = 0 | |
399 | end | |
400 | return NUMBER | |
401 | end | |
402 | ||
403 | function NegativeAngle(NUMBER) | |
404 | if NUMBER <= 0 then | |
405 | NUMBER = 0 | |
406 | end | |
407 | return NUMBER | |
408 | end | |
409 | ||
410 | function Swait(NUMBER) | |
411 | if NUMBER == 0 or NUMBER == nil then | |
412 | ArtificialHB.Event:wait() | |
413 | else | |
414 | for i = 1, NUMBER do | |
415 | ArtificialHB.Event:wait() | |
416 | end | |
417 | end | |
418 | end | |
419 | ||
420 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
421 | local NEWMESH = IT(MESH) | |
422 | if MESH == "SpecialMesh" then | |
423 | NEWMESH.MeshType = MESHTYPE | |
424 | if MESHID ~= "nil" and MESHID ~= "" then | |
425 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
426 | end | |
427 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
428 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
429 | end | |
430 | end | |
431 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
432 | NEWMESH.Scale = SCALE | |
433 | NEWMESH.Parent = PARENT | |
434 | return NEWMESH | |
435 | end | |
436 | ||
437 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
438 | local NEWPART = IT("Part") | |
439 | NEWPART.formFactor = FORMFACTOR | |
440 | NEWPART.Reflectance = REFLECTANCE | |
441 | NEWPART.Transparency = TRANSPARENCY | |
442 | NEWPART.CanCollide = false | |
443 | NEWPART.Locked = true | |
444 | NEWPART.Anchored = true | |
445 | if ANCHOR == false then | |
446 | NEWPART.Anchored = false | |
447 | end | |
448 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
449 | NEWPART.Name = NAME | |
450 | NEWPART.Size = SIZE | |
451 | NEWPART.Position = Torso.Position | |
452 | NEWPART.Material = MATERIAL | |
453 | NEWPART:BreakJoints() | |
454 | NEWPART.Parent = PARENT | |
455 | return NEWPART | |
456 | end | |
457 | ||
458 | local function weldBetween(a, b) | |
459 | local weldd = IT("Weld") | |
460 | weldd.Part0 = a | |
461 | weldd.Part1 = b | |
462 | weldd.C0 = CF() | |
463 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
464 | weldd.Parent = a | |
465 | return weldd | |
466 | end | |
467 | ||
468 | ||
469 | function QuaternionFromCFrame(cf) | |
470 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
471 | local trace = m00 + m11 + m22 | |
472 | if trace > 0 then | |
473 | local s = math.sqrt(1 + trace) | |
474 | local recip = 0.5 / s | |
475 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
476 | else | |
477 | local i = 0 | |
478 | if m11 > m00 then | |
479 | i = 1 | |
480 | end | |
481 | if m22 > (i == 0 and m00 or m11) then | |
482 | i = 2 | |
483 | end | |
484 | if i == 0 then | |
485 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
486 | local recip = 0.5 / s | |
487 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
488 | elseif i == 1 then | |
489 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
490 | local recip = 0.5 / s | |
491 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
492 | elseif i == 2 then | |
493 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
494 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
495 | end | |
496 | end | |
497 | end | |
498 | ||
499 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
500 | local xs, ys, zs = x + x, y + y, z + z | |
501 | local wx, wy, wz = w * xs, w * ys, w * zs | |
502 | local xx = x * xs | |
503 | local xy = x * ys | |
504 | local xz = x * zs | |
505 | local yy = y * ys | |
506 | local yz = y * zs | |
507 | local zz = z * zs | |
508 | 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)) | |
509 | end | |
510 | ||
511 | function QuaternionSlerp(a, b, t) | |
512 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
513 | local startInterp, finishInterp; | |
514 | if cosTheta >= 0.0001 then | |
515 | if (1 - cosTheta) > 0.0001 then | |
516 | local theta = ACOS(cosTheta) | |
517 | local invSinTheta = 1 / SIN(theta) | |
518 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
519 | finishInterp = SIN(t * theta) * invSinTheta | |
520 | else | |
521 | startInterp = 1 - t | |
522 | finishInterp = t | |
523 | end | |
524 | else | |
525 | if (1 + cosTheta) > 0.0001 then | |
526 | local theta = ACOS(-cosTheta) | |
527 | local invSinTheta = 1 / SIN(theta) | |
528 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
529 | finishInterp = SIN(t * theta) * invSinTheta | |
530 | else | |
531 | startInterp = t - 1 | |
532 | finishInterp = t | |
533 | end | |
534 | end | |
535 | 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 | |
536 | end | |
537 | ||
538 | function Clerp(a, b, t) | |
539 | local qa = {QuaternionFromCFrame(a)} | |
540 | local qb = {QuaternionFromCFrame(b)} | |
541 | local ax, ay, az = a.x, a.y, a.z | |
542 | local bx, by, bz = b.x, b.y, b.z | |
543 | local _t = 1 - t | |
544 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
545 | end | |
546 | ||
547 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
548 | local frame = IT("Frame") | |
549 | frame.BackgroundTransparency = TRANSPARENCY | |
550 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
551 | frame.Position = POSITION | |
552 | frame.Size = SIZE | |
553 | frame.BackgroundColor3 = COLOR | |
554 | frame.BorderColor3 = BORDERCOLOR | |
555 | frame.Name = NAME | |
556 | frame.Parent = PARENT | |
557 | return frame | |
558 | end | |
559 | ||
560 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
561 | local label = IT("TextLabel") | |
562 | label.BackgroundTransparency = 1 | |
563 | label.Size = UD2(1, 0, 1, 0) | |
564 | label.Position = UD2(0, 0, 0, 0) | |
565 | label.TextColor3 = TEXTCOLOR | |
566 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
567 | label.TextTransparency = TRANSPARENCY | |
568 | label.FontSize = TEXTFONTSIZE | |
569 | label.Font = TEXTFONT | |
570 | label.BorderSizePixel = BORDERSIZEPIXEL | |
571 | label.TextScaled = false | |
572 | label.Text = TEXT | |
573 | label.Name = NAME | |
574 | label.Parent = PARENT | |
575 | return label | |
576 | end | |
577 | ||
578 | function NoOutlines(PART) | |
579 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
580 | end | |
581 | ||
582 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
583 | local NEWWELD = IT(TYPE) | |
584 | NEWWELD.Part0 = PART0 | |
585 | NEWWELD.Part1 = PART1 | |
586 | NEWWELD.C0 = C0 | |
587 | NEWWELD.C1 = C1 | |
588 | NEWWELD.Parent = PARENT | |
589 | return NEWWELD | |
590 | end | |
591 | ||
592 | local S = IT("Sound") | |
593 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
594 | local NEWSOUND = nil | |
595 | coroutine.resume(coroutine.create(function() | |
596 | NEWSOUND = S:Clone() | |
597 | NEWSOUND.Parent = PARENT | |
598 | NEWSOUND.Volume = VOLUME | |
599 | NEWSOUND.Pitch = PITCH | |
600 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
601 | NEWSOUND:play() | |
602 | if DOESLOOP == true then | |
603 | NEWSOUND.Looped = true | |
604 | else | |
605 | repeat wait(1) until NEWSOUND.Playing == false | |
606 | NEWSOUND:remove() | |
607 | end | |
608 | end)) | |
609 | return NEWSOUND | |
610 | end | |
611 | ||
612 | function CFrameFromTopBack(at, top, back) | |
613 | local right = top:Cross(back) | |
614 | 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) | |
615 | end | |
616 | ||
617 | function turnto(position) | |
618 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
619 | end | |
620 | ||
621 | local EyeSizes={ | |
622 | NumberSequenceKeypoint.new(0,1,0), | |
623 | NumberSequenceKeypoint.new(1,0,0) | |
624 | } | |
625 | local EyeTrans={ | |
626 | NumberSequenceKeypoint.new(0,0.8,0), | |
627 | NumberSequenceKeypoint.new(1,1,0) | |
628 | } | |
629 | local PE=Instance.new("ParticleEmitter",nil) | |
630 | PE.LightEmission=.8 | |
631 | PE.Color = ColorSequence.new(BRICKC("Royal purple").Color) | |
632 | PE.Size=NumberSequence.new(EyeSizes) | |
633 | PE.Transparency=NumberSequence.new(EyeTrans) | |
634 | PE.Lifetime=NumberRange.new(0.35,1.5) | |
635 | PE.Rotation=NumberRange.new(0,360) | |
636 | PE.Rate=999 | |
637 | PE.VelocitySpread = 10000 | |
638 | PE.Acceleration = Vector3.new(0,0,0) | |
639 | PE.Drag = 5 | |
640 | PE.Speed = NumberRange.new(0,0,0) | |
641 | PE.Texture="http://www.roblox.com/asset/?id=1351966707" | |
642 | PE.ZOffset = -0 | |
643 | PE.Name = "PE" | |
644 | PE.Enabled = false | |
645 | ||
646 | function particles(art) | |
647 | local PARTICLES = PE:Clone() | |
648 | PARTICLES.Parent = art | |
649 | end | |
650 | ||
651 | ||
652 | --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}) | |
653 | function WACKYEFFECT(Table) | |
654 | local TYPE = (Table.EffectType or "Sphere") | |
655 | local SIZE = (Table.Size or VT(1,1,1)) | |
656 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
657 | local TRANSPARENCY = (Table.Transparency or 0) | |
658 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
659 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
660 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
661 | local ROTATION1 = (Table.RotationX or 0) | |
662 | local ROTATION2 = (Table.RotationY or 0) | |
663 | local ROTATION3 = (Table.RotationZ or 0) | |
664 | local MATERIAL = (Table.Material or "Neon") | |
665 | local COLOR = (Table.Color or C3(1,1,1)) | |
666 | local TIME = (Table.Time or 45) | |
667 | local SOUNDID = (Table.SoundID or nil) | |
668 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
669 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
670 | coroutine.resume(coroutine.create(function() | |
671 | local PLAYSSOUND = false | |
672 | local SOUND = nil | |
673 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
674 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
675 | PLAYSSOUND = true | |
676 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
677 | end | |
678 | EFFECT.Color = COLOR | |
679 | local MSH = nil | |
680 | if TYPE == "Sphere" then | |
681 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
682 | elseif TYPE == "Block" then | |
683 | MSH = IT("BlockMesh",EFFECT) | |
684 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
685 | elseif TYPE == "Wave" then | |
686 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
687 | elseif TYPE == "Ring" then | |
688 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
689 | elseif TYPE == "Slash" then | |
690 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
691 | elseif TYPE == "Round Slash" then | |
692 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
693 | elseif TYPE == "Swirl" then | |
694 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
695 | elseif TYPE == "Skull" then | |
696 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
697 | elseif TYPE == "Crystal" then | |
698 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
699 | end | |
700 | if MSH ~= nil then | |
701 | local MOVESPEED = nil | |
702 | if MOVEDIRECTION ~= nil then | |
703 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
704 | end | |
705 | local GROWTH = SIZE - ENDSIZE | |
706 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
707 | if TYPE == "Block" then | |
708 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
709 | else | |
710 | EFFECT.CFrame = CFRAME | |
711 | end | |
712 | for LOOP = 1, TIME+1 do | |
713 | Swait() | |
714 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
715 | if TYPE == "Wave" then | |
716 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
717 | end | |
718 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
719 | if TYPE == "Block" then | |
720 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
721 | else | |
722 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
723 | end | |
724 | if MOVEDIRECTION ~= nil then | |
725 | local ORI = EFFECT.Orientation | |
726 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
727 | EFFECT.Orientation = ORI | |
728 | end | |
729 | end | |
730 | if PLAYSSOUND == false then | |
731 | EFFECT:remove() | |
732 | else | |
733 | SOUND.Stopped:Connect(function() | |
734 | EFFECT:remove() | |
735 | end) | |
736 | end | |
737 | else | |
738 | if PLAYSSOUND == false then | |
739 | EFFECT:remove() | |
740 | else | |
741 | repeat Swait() until SOUND.Playing == false | |
742 | EFFECT:remove() | |
743 | end | |
744 | end | |
745 | end)) | |
746 | end | |
747 | ||
748 | function MakeForm(PART,TYPE) | |
749 | if TYPE == "Cyl" then | |
750 | local MSH = IT("CylinderMesh",PART) | |
751 | elseif TYPE == "Ball" then | |
752 | local MSH = IT("SpecialMesh",PART) | |
753 | MSH.MeshType = "Sphere" | |
754 | elseif TYPE == "Wedge" then | |
755 | local MSH = IT("SpecialMesh",PART) | |
756 | MSH.MeshType = "Wedge" | |
757 | end | |
758 | end | |
759 | ||
760 | Debris = game:GetService("Debris") | |
761 | ||
762 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
763 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
764 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
765 | end | |
766 | ||
767 | function turnto(position) | |
768 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
769 | end | |
770 | ||
771 | function SpawnTrail(FROM,TO,BIG) | |
772 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Dark Indigo", "Trail", VT(0,0,0)) | |
773 | MakeForm(TRAIL,"Cyl") | |
774 | local DIST = (FROM - TO).Magnitude | |
775 | if BIG == true then | |
776 | TRAIL.Size = VT(0.5,DIST,0.5) | |
777 | else | |
778 | TRAIL.Size = VT(0.25,DIST,0.25) | |
779 | end | |
780 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
781 | coroutine.resume(coroutine.create(function() | |
782 | for i = 1, 5 do | |
783 | Swait() | |
784 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
785 | end | |
786 | TRAIL:remove() | |
787 | end)) | |
788 | end | |
789 | ||
790 | local Particle = IT("ParticleEmitter",nil) | |
791 | Particle.Enabled = false | |
792 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
793 | Particle.LightEmission = 0.5 | |
794 | Particle.Rate = 150 | |
795 | Particle.ZOffset = 1 | |
796 | Particle.Rotation = NumberRange.new(-180, 180) | |
797 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
798 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
799 | Particle.Color = ColorSequence.new(C3(1,0,1),C3(.4,0,.3)) | |
800 | ||
801 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
802 | function ParticleEmitter(Table) | |
803 | local PRTCL = Particle:Clone() | |
804 | local Speed = Table.Speed or 5 | |
805 | local Drag = Table.Drag or 0 | |
806 | local Size1 = Table.Size1 or 1 | |
807 | local Size2 = Table.Size2 or 5 | |
808 | local Lifetime1 = Table.Lifetime1 or 1 | |
809 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
810 | local Parent = Table.Parent or Torso | |
811 | local Emit = Table.Emit or 100 | |
812 | local Offset = Table.Offset or 360 | |
813 | local Acel = Table.Acel or VT(0,0,0) | |
814 | local Enabled = Table.Enabled or false | |
815 | PRTCL.Parent = Parent | |
816 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
817 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
818 | PRTCL.Speed = NumberRange.new(Speed) | |
819 | PRTCL.VelocitySpread = Offset | |
820 | PRTCL.Drag = Drag | |
821 | PRTCL.Acceleration = Acel | |
822 | if Enabled == false then | |
823 | PRTCL:Emit(Emit) | |
824 | Debris:AddItem(PRTCL,Lifetime2) | |
825 | else | |
826 | PRTCL.Enabled = true | |
827 | end | |
828 | return PRTCL | |
829 | end | |
830 | ||
831 | --><Misc And Some Stuff | |
832 | ||
833 | local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0)) | |
834 | local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "93180631", "93180676", VT(1, 1, 1), VT(0, 3.1 * Player_Size, 0)) | |
835 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Torso, HandlePart, CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
836 | ||
837 | local HitboxPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Hitbox", VT(0, 0, 0)) | |
838 | local HitboxWeld = CreateWeldOrSnapOrMotor("Weld", HitboxPart, HandlePart, HitboxPart, CF(0 * Player_Size, 4 * Player_Size, 0 * Player_Size), CF(0, 0, 0)) | |
839 | ||
840 | ||
841 | for i = 1, 35 do | |
842 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false) | |
843 | FACE.Color = C3(0,0,0) | |
844 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
845 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
846 | end | |
847 | ||
848 | local BODY = {} | |
849 | ||
850 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Royal purple", "Eye", VT(0.6,0.1,1)/2,false) | |
851 | MakeForm(Eye,"Ball") | |
852 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
853 | ||
854 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Royal purple", "Eye", VT(0.3,0.3,0.3),false) | |
855 | 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)) | |
856 | local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Royal purple", "Eye", VT(0.5,0.5,0.29),false) | |
857 | 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)) | |
858 | ||
859 | function swait(num) | |
860 | if num == 0 or num == nil then | |
861 | ArtificialHB.Event:wait() | |
862 | else | |
863 | for i = 0, num do | |
864 | ArtificialHB.Event:wait() | |
865 | end | |
866 | end return true | |
867 | end | |
868 | ||
869 | spawn(function() | |
870 | local bb=Instance.new("BillboardGui", Head )bb.AlwaysOnTop=true bb.Size=UDim2.new(1,0,1,0)bb.StudsOffset=Vector3.new(0,4.5,0) | |
871 | local t=Instance.new("TextLabel",bb)t.Size=UDim2.new(1,0,1,0)t.Text="Void Spawn"t.TextColor3=Color3.new(1,0,1)t.TextStrokeTransparency=0 | |
872 | t.BackgroundTransparency=1 t.TextSize=40 t.Font="Bodoni" | |
873 | while swait()do | |
874 | bb.StudsOffset=Vector3.new(math.random(-30,30)/30,4.5+ math.random(-40,40)/30,math.random(-100,100)/30) | |
875 | end | |
876 | end) | |
877 | ||
878 | local BODY = {} | |
879 | for _, c in pairs(Character:GetDescendants()) do | |
880 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
881 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
882 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
883 | end | |
884 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
885 | elseif c:IsA("JointInstance") then | |
886 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
887 | end | |
888 | end | |
889 | function refit() | |
890 | Character.Parent = workspace | |
891 | for e = 1, #BODY do | |
892 | if BODY[e] ~= nil then | |
893 | local STUFF = BODY[e] | |
894 | local PART = STUFF[1] | |
895 | local PARENT = STUFF[2] | |
896 | local MATERIAL = STUFF[3] | |
897 | local COLOR = STUFF[4] | |
898 | local TRANSPARENCY = STUFF[5] | |
899 | --local SIZE = STUFF[6] | |
900 | local NAME = STUFF[7] | |
901 | if PART.ClassName == "Part" and PART ~= RootPart then | |
902 | PART.Material = MATERIAL | |
903 | PART.Transparency = TRANSPARENCY | |
904 | PART.Name = NAME | |
905 | end | |
906 | if PART.Parent ~= PARENT then | |
907 | Humanoid:remove() | |
908 | PART.Parent = PARENT | |
909 | Humanoid = IT("Humanoid",Character) | |
910 | end | |
911 | end | |
912 | end | |
913 | end | |
914 | ||
915 | local SKILLTEXTCOLOR = C3(.4,0,.4) | |
916 | local SKILLFONT = "Code" | |
917 | local SKILLTEXTSIZE = 6 | |
918 | ||
919 | local Voids = Instance.new("Part") | |
920 | Voids.Parent = Weapon | |
921 | Voids.Transparency = 1 | |
922 | Voids.Size = Vector3.new(4, 4.9, 2.5) | |
923 | Voids.CFrame = char.Torso.CFrame | |
924 | Voids.CanCollide = false | |
925 | Voids.Color = Color3.new(1,0,.5) | |
926 | Voids.TopSurface = "Smooth" | |
927 | Voids.BottomSurface = "Smooth" | |
928 | ||
929 | VoidWeld = Instance.new("Weld") | |
930 | VoidWeld.Name = "Voidspawn_Weld_Particle" | |
931 | VoidWeld.Part0 = char.Torso | |
932 | VoidWeld.Part1 = Voids | |
933 | VoidWeld.Parent = char.Torso | |
934 | VoidWeld.C0 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
935 | ||
936 | local FZcharge3 = Instance.new("ParticleEmitter",Voids) | |
937 | FZcharge3.Texture = "rbxassetid://153700391" | |
938 | FZcharge3.Color = ColorSequence.new(Color3.new(255, 0, 255)) | |
939 | coroutine.resume(coroutine.create(function() | |
940 | while true do | |
941 | Swait() | |
942 | FZcharge3.Color = ColorSequence.new(Color3.new(1,0,1)) | |
943 | end | |
944 | end)) | |
945 | FZcharge3.EmissionDirection = "Top" | |
946 | FZcharge3.Speed = NumberRange.new(0) | |
947 | FZcharge3.Size = NumberSequence.new(0.6,0) | |
948 | FZcharge3.Enabled = true | |
949 | FZcharge3.Drag = 1.2 | |
950 | FZcharge3.LockedToPart = true | |
951 | FZcharge3.Lifetime = NumberRange.new(0.2) | |
952 | FZcharge3.Rate = 55 | |
953 | FZcharge3.LightEmission = 0.3 | |
954 | FZcharge3.Rotation = NumberRange.new(-360,360) | |
955 | FZcharge3.VelocitySpread = 0.2 | |
956 | FZcharge3.ZOffset = 2.5 | |
957 | ||
958 | Humanoid.Died:connect(function() | |
959 | refit() | |
960 | end) | |
961 | ||
962 | cors = {} | |
963 | mas = Instance.new("Model",game:GetService("Lighting")) | |
964 | ParticleEmitter1 = Instance.new("ParticleEmitter") | |
965 | ParticleEmitter1.Name = "Death" | |
966 | ParticleEmitter1.Texture = "rbxassetid://249481494" | |
967 | ParticleEmitter1.Color = ColorSequence.new(Color3.fromRGB(0, 0, 255)) | |
968 | ParticleEmitter1.EmissionDirection = "Top" | |
969 | ParticleEmitter1.Parent = mas | |
970 | ParticleEmitter1.Enabled = false | |
971 | ParticleEmitter1.Speed = NumberRange.new(8) | |
972 | ParticleEmitter1.Size = NumberSequence.new(8,0) | |
973 | ParticleEmitter1.Transparency = NumberSequence.new(0,1) | |
974 | ParticleEmitter1.Drag = 1.2 | |
975 | ParticleEmitter1.LockedToPart = true | |
976 | ParticleEmitter1.Lifetime = NumberRange.new(0, 1) | |
977 | ParticleEmitter1.Rate = 195 | |
978 | ParticleEmitter1.RotSpeed = NumberRange.new(-56, 56) | |
979 | ParticleEmitter1.LightEmission = 0 | |
980 | ParticleEmitter1.Rotation = NumberRange.new(-360,360) | |
981 | ParticleEmitter1.VelocitySpread = 100.2 | |
982 | ParticleEmitter1.ZOffset = 2.5 | |
983 | ||
984 | for i,v in pairs(mas:GetChildren()) do | |
985 | v.Parent = script | |
986 | pcall(function() v:MakeJoints() end) | |
987 | end | |
988 | mas:Destroy() | |
989 | for i,v in pairs(cors) do | |
990 | spawn(function() | |
991 | pcall(v) | |
992 | end) | |
993 | end | |
994 | ||
995 | ||
996 | local DParticles = script.Death | |
997 | DParticles:remove() | |
998 | DParticles.Name = "ArchangelDeathParticles" | |
999 | ||
1000 | --><ALL SKILL TEXTS | |
1001 | ||
1002 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1003 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1004 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1005 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1006 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1007 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1008 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
1009 | local SKILL8FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 8 Frame") | |
1010 | local SKILL9FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.50, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 9 Frame") | |
1011 | ||
1012 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Sear", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") | |
1013 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Void Rise", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
1014 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Void Erase", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
1015 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Void Burn", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
1016 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[F] End it", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
1017 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] Oh god", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
1018 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[E] Teleport", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
1019 | local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[R] Snap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8") | |
1020 | local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[M] The Rift", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9") | |
1021 | ||
1022 | --><Attack Stuffs B | |
1023 | ||
1024 | function Voided(Char) | |
1025 | local NewCharacter = IT("Model",Effects) | |
1026 | NewCharacter.Name = "ow im ded ;-;" | |
1027 | for _, c in pairs(Char:GetDescendants()) do | |
1028 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1029 | if c.Parent == Char then | |
1030 | ||
1031 | end | |
1032 | c:BreakJoints() | |
1033 | c.Material = "Neon" | |
1034 | c.Color = C3(1,0,1) | |
1035 | c.CanCollide = true | |
1036 | c.Transparency = 0.3 | |
1037 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1038 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1039 | end | |
1040 | if c.Name == "Head" then | |
1041 | c:ClearAllChildren() | |
1042 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1043 | end | |
1044 | if c.ClassName == "MeshPart" then | |
1045 | c.TextureID = "" | |
1046 | end | |
1047 | if c:FindFirstChildOfClass("BodyPosition") then | |
1048 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1049 | end | |
1050 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1051 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1052 | end | |
1053 | c.Parent = NewCharacter | |
1054 | c.Name = "DeadPart" | |
1055 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1056 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1057 | end | |
1058 | end | |
1059 | Char:remove() | |
1060 | Debris:AddItem(NewCharacter,5) | |
1061 | end | |
1062 | INSTAKILL = true | |
1063 | function VoidAgony(v) | |
1064 | v:BreakJoints() | |
1065 | for _, c in pairs(v:GetChildren()) do | |
1066 | if c:IsA("BasePart") then | |
1067 | if c.Transparency < 1 then | |
1068 | if c:FindFirstChildOfClass("Decal") then | |
1069 | c:FindFirstChildOfClass("Decal"):remove() | |
1070 | end | |
1071 | particles(c) | |
1072 | c.PE.Enabled = true | |
1073 | c.Parent = Effects | |
1074 | c.CanCollide = false | |
1075 | c.Material = "Neon" | |
1076 | c.Color = C3(1,0,1) | |
1077 | c.Transparency = 1 | |
1078 | local grav = Instance.new("BodyPosition",c) | |
1079 | grav.P = 20000 | |
1080 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1081 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1082 | grav.Name = "GravityForce" | |
1083 | coroutine.resume(coroutine.create(function() | |
1084 | for i = 1, 20 do | |
1085 | Swait() | |
1086 | c.Transparency = c.Transparency + 1/20 | |
1087 | end | |
1088 | c.PE.Enabled = false | |
1089 | Debris:AddItem(c,2) | |
1090 | end)) | |
1091 | end | |
1092 | end | |
1093 | end | |
1094 | end | |
1095 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1096 | local CHILDREN = workspace:GetDescendants() | |
1097 | for index, CHILD in pairs(CHILDREN) do | |
1098 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1099 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1100 | if HUM then | |
1101 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1102 | if TORSO then | |
1103 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1104 | if BRUTAL == true then | |
1105 | Voided(CHILD) | |
1106 | else | |
1107 | CHILD:BreakJoints() | |
1108 | end | |
1109 | end | |
1110 | end | |
1111 | end | |
1112 | end | |
1113 | end | |
1114 | end | |
1115 | function ApplyAoE2(POSITION, RANGE, MINDMG, MAXDMG, FLING, ow) | |
1116 | local CHILDREN = workspace:GetDescendants() | |
1117 | for index, CHILD in pairs(CHILDREN) do | |
1118 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1119 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1120 | if HUM then | |
1121 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1122 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1123 | if ow == true then | |
1124 | Voided(CHILD) | |
1125 | else | |
1126 | print("that doesnt hurt haha") | |
1127 | end | |
1128 | if FLING > 0 then | |
1129 | for _, c in pairs(CHILD:GetChildren()) do | |
1130 | if c:IsA("BasePart") then | |
1131 | local bv = Instance.new("BodyVelocity") | |
1132 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1133 | bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING | |
1134 | bv.Parent = c | |
1135 | Debris:AddItem(bv, 0.05) | |
1136 | end | |
1137 | end | |
1138 | end | |
1139 | end | |
1140 | end | |
1141 | end | |
1142 | end | |
1143 | end | |
1144 | function ApplyAoE3(POSITION,RANGE) | |
1145 | local CHILDREN = workspace:GetDescendants() | |
1146 | for index, CHILD in pairs(CHILDREN) do | |
1147 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1148 | local LISTED = false | |
1149 | for LIST = 1, #WHITELIST do | |
1150 | if WHITELIST[LIST] ~= nil then | |
1151 | if CHILD.Name == WHITELIST[LIST] then | |
1152 | LISTED = true | |
1153 | end | |
1154 | end | |
1155 | end | |
1156 | if LISTED == false then | |
1157 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1158 | if HUM then | |
1159 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1160 | if TORSO then | |
1161 | if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then | |
1162 | VoidAgony(CHILD) | |
1163 | end | |
1164 | end | |
1165 | end | |
1166 | end | |
1167 | end | |
1168 | end | |
1169 | end | |
1170 | function ApplyAoE4(POSITION,RANGE,MINDMG,MAXDMG,FLING,VOIDED) | |
1171 | local CHILDREN = workspace:GetDescendants() | |
1172 | for index, CHILD in pairs(CHILDREN) do | |
1173 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1174 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1175 | if HUM then | |
1176 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1177 | if TORSO then | |
1178 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1179 | if CHILD.Parent == Effects and CHILD:FindFirstChild("RealBody") then | |
1180 | local BODY = CHILD.RealBody.Value | |
1181 | if BODY then | |
1182 | local HUM = BODY:FindFirstChildOfClass("Humanoid") | |
1183 | if HUM then | |
1184 | if INSTAKILL == true or (HUM.MaxHealth == math.huge and MAXDMG > 0) then | |
1185 | BODY:BreakJoints() | |
1186 | else | |
1187 | local TORSO = BODY:FindFirstChild("Torso") or BODY:FindFirstChild("UpperTorso") | |
1188 | if TORSO then | |
1189 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
1190 | local DMG = MRANDOM(MINDMG,MAXDMG)/2 | |
1191 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,85,1), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Neon", Color = C3(0.3,0,0), SoundID = HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1192 | print("yo ur happppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppy? maybe so.") | |
1193 | end | |
1194 | end | |
1195 | end | |
1196 | end | |
1197 | else | |
1198 | if VOIDED == true or (HUM.MaxHealth == math.huge and MAXDMG > 0) then | |
1199 | VoidAgony(CHILD) | |
1200 | else | |
1201 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1202 | print("yo ur gay") | |
1203 | end | |
1204 | if FLING > 0 then | |
1205 | for _, c in pairs(CHILD:GetChildren()) do | |
1206 | if c:IsA("BasePart") then | |
1207 | local bv = Instance.new("BodyVelocity") | |
1208 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1209 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1210 | bv.Parent = c | |
1211 | Debris:AddItem(bv,0.05) | |
1212 | end | |
1213 | end | |
1214 | end | |
1215 | end | |
1216 | end | |
1217 | end | |
1218 | end | |
1219 | end | |
1220 | end | |
1221 | end | |
1222 | function ApplyAoE5(POSITION, RANGE) | |
1223 | local PARTS = {} | |
1224 | for index, CHILD in pairs(workspace:GetDescendants()) do | |
1225 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1226 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1227 | if HUM then | |
1228 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1229 | if TORSO and HUM.Health > 0 and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1230 | CHILD:BreakJoints() | |
1231 | for index, PART in pairs(CHILD:GetChildren()) do | |
1232 | if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then | |
1233 | local P = DParticles:Clone() | |
1234 | P.Parent = PART | |
1235 | P.Enabled = true | |
1236 | P.Color = ColorSequence.new(PART.Color, C3(1, 1, 1)) | |
1237 | PART.Anchored = true | |
1238 | table.insert(PARTS, {PART, P}) | |
1239 | end | |
1240 | end | |
1241 | end | |
1242 | end | |
1243 | elseif CHILD:IsA("BasePart") and CHILD.Parent.Parent ~= Character and CHILD.Parent:FindFirstChildOfClass("Humanoid") == nil and CHILD:FindFirstChild("ewdfrfgrwefd") == nil and CHILD.Size.Magnitude < RANGE * 2 and CHILD.Size.Magnitude < 200 and RANGE > (CHILD.Position - POSITION).Magnitude then | |
1244 | local FOLDER = IT("Folder", CHILD) | |
1245 | FOLDER.Name = "ewdfrfgrwefd" | |
1246 | local P = DParticles:Clone() | |
1247 | P.Parent = CHILD | |
1248 | P.Enabled = true | |
1249 | CHILD:BreakJoints() | |
1250 | CHILD.CanCollide = false | |
1251 | CHILD.Anchored = true | |
1252 | P.Rate = math.ceil(CHILD.Size.Magnitude / 2) | |
1253 | P.Color = ColorSequence.new(CHILD.Color, C3(1, 1, 1)) | |
1254 | table.insert(PARTS, {CHILD, P}) | |
1255 | end | |
1256 | end | |
1257 | coroutine.resume(coroutine.create(function() | |
1258 | if #PARTS > 0 then | |
1259 | for i = 1, 85 do | |
1260 | Swait() | |
1261 | for E = 1, #PARTS do | |
1262 | local F = PARTS[E] | |
1263 | local A = F[1] | |
1264 | local B = F[2] | |
1265 | A.Transparency = A.Transparency + 0.011764705882352941 | |
1266 | B.Rate = math.ceil(B.Rate * 1.2) | |
1267 | for index, E in pairs(A:GetChildren()) do | |
1268 | if E:IsA("Decal") or E:IsA("Texture") then | |
1269 | E.Transparency = E.Transparency + 0.011764705882352941 | |
1270 | elseif E:IsA("JointInstance") then | |
1271 | E:remove() | |
1272 | elseif E:IsA("Light") or E:IsA("ParticleEmitter") and E ~= B and E.Name ~= "ArchangelDeathParticles" or E:IsA("Fire") or E:IsA("Sparkles") or E:IsA("Smoke") then | |
1273 | E.Enabled = false | |
1274 | end | |
1275 | end | |
1276 | end | |
1277 | end | |
1278 | for E = 1, #PARTS do | |
1279 | local F = PARTS[E] | |
1280 | local A = F[1] | |
1281 | local B = F[2] | |
1282 | B.Enabled = false | |
1283 | Debris:AddItem(A, 3) | |
1284 | end | |
1285 | end | |
1286 | end)) | |
1287 | end | |
1288 | function CreateWave3(inair,size,doesrotate,rotatedirection,waitt,part,offset,color) | |
1289 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
1290 | local mesh = IT("SpecialMesh",wave) | |
1291 | mesh.MeshType = "FileMesh" | |
1292 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1293 | mesh.Scale = VT(size,size,size) | |
1294 | mesh.Offset = VT(0,0,-size/8) | |
1295 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
1296 | coroutine.resume(coroutine.create(function(PART) | |
1297 | for i = 1, waitt do | |
1298 | Swait() | |
1299 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
1300 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
1301 | if doesrotate == true then | |
1302 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
1303 | end | |
1304 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
1305 | if wave.Transparency > 0.99 then | |
1306 | wave:remove() | |
1307 | end | |
1308 | end | |
1309 | end)) | |
1310 | end | |
1311 | ||
1312 | local PE3=Instance.new("ParticleEmitter",nil) | |
1313 | PE3.LightEmission=.8 | |
1314 | PE3.Color = ColorSequence.new(BRICKC("Bright Green").Color) | |
1315 | coroutine.resume(coroutine.create(function() | |
1316 | while true do | |
1317 | Swait() | |
1318 | PE.Color = ColorSequence.new(Color3.new(1,0,0)) | |
1319 | end | |
1320 | end)) | |
1321 | PE3.Size=NumberSequence.new(EyeSizes) | |
1322 | PE3.Transparency=NumberSequence.new(EyeTrans) | |
1323 | PE3.Lifetime=NumberRange.new(0.35,1.5) | |
1324 | PE3.Rotation=NumberRange.new(0,360) | |
1325 | PE3.Rate=999 | |
1326 | PE3.VelocitySpread = 10000 | |
1327 | PE3.Acceleration = Vector3.new(0,0,0) | |
1328 | PE3.Drag = 5 | |
1329 | PE3.Speed = NumberRange.new(0,0,0) | |
1330 | PE3.Texture="http://www.roblox.com/asset/?id=1509406387" | |
1331 | PE3.ZOffset = -0 | |
1332 | PE3.Name = "PE" | |
1333 | PE3.Enabled = false | |
1334 | ||
1335 | function particles2(art) | |
1336 | local PARTICLES = PE3:Clone() | |
1337 | PARTICLES.Parent = art | |
1338 | end | |
1339 | ||
1340 | function Dustify(v) | |
1341 | v:BreakJoints() | |
1342 | for _, c in pairs(v:GetChildren()) do | |
1343 | if c:IsA("BasePart") then | |
1344 | if c.Transparency < 1 then | |
1345 | if c:FindFirstChildOfClass("Decal") then | |
1346 | c:FindFirstChildOfClass("Decal"):remove() | |
1347 | end | |
1348 | particles2(c) | |
1349 | c.PE.Enabled = true | |
1350 | c.Parent = Effects | |
1351 | c.CanCollide = false | |
1352 | c.Material = "Neon" | |
1353 | c.Color = C3(0,1,0) | |
1354 | c.Transparency = 1 | |
1355 | local grav = Instance.new("BodyPosition",c) | |
1356 | grav.P = 20000 | |
1357 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1358 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1359 | grav.Name = "GravityForce" | |
1360 | coroutine.resume(coroutine.create(function() | |
1361 | for i = 1, 20 do | |
1362 | Swait() | |
1363 | c.Transparency = c.Transparency + 1/20 | |
1364 | end | |
1365 | c.PE.Enabled = false | |
1366 | Debris:AddItem(c,3) | |
1367 | end)) | |
1368 | end | |
1369 | end | |
1370 | end | |
1371 | end | |
1372 | ||
1373 | ||
1374 | --Credits TO IgnorantRojo For THE_END() | |
1375 | ||
1376 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1377 | if SinglePlayer then | |
1378 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1379 | end | |
1380 | local List = {} | |
1381 | for i, v in pairs(workspace:GetChildren()) do | |
1382 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1383 | table.insert(List, v) | |
1384 | end | |
1385 | end | |
1386 | return List | |
1387 | end | |
1388 | ||
1389 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
1390 | if SinglePlayer then | |
1391 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1392 | end | |
1393 | local List = {} | |
1394 | for i, v in pairs(workspace:GetChildren()) do | |
1395 | if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1396 | table.insert(List, v) | |
1397 | end | |
1398 | end | |
1399 | return List | |
1400 | end | |
1401 | ||
1402 | local lightning = Instance.new("ParticleEmitter",Torso) | |
1403 | lightning.Texture = "http://www.roblox.com/asset/?id=348321827" | |
1404 | lightning.LightEmission = 0 | |
1405 | lightning.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
1406 | lightning.LockedToPart = true | |
1407 | lightning.Rate = 20 | |
1408 | lightning.Lifetime = NumberRange.new(0.1,0.10) | |
1409 | lightning.Rotation = NumberRange.new(0,360) | |
1410 | lightning.Size = NumberSequence.new(3,3,3) | |
1411 | lightning.Transparency = NumberSequence.new(0,0) | |
1412 | lightning.Speed = NumberRange.new(0,0) | |
1413 | lightning.RotSpeed = NumberRange.new(0,0) | |
1414 | lightning.ZOffset = 5.5 | |
1415 | lightning.Parent = Character.Torso | |
1416 | lightning.Enabled = false | |
1417 | ||
1418 | local eeeffecto = Instance.new("ParticleEmitter",Torso) | |
1419 | eeeffecto.Texture = "http://www.roblox.com/asset/?id=305943367" | |
1420 | eeeffecto.LightEmission = 0 | |
1421 | eeeffecto.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
1422 | eeeffecto.LockedToPart = true | |
1423 | eeeffecto.Rate = 10.5 | |
1424 | eeeffecto.Lifetime = NumberRange.new(0.1,0.1) | |
1425 | eeeffecto.Rotation = NumberRange.new(0,0) | |
1426 | eeeffecto.Size = NumberSequence.new(9,9,9) | |
1427 | eeeffecto.Transparency = NumberSequence.new(0,0) | |
1428 | eeeffecto.Speed = NumberRange.new(0,0) | |
1429 | eeeffecto.RotSpeed = NumberRange.new(0,0) | |
1430 | eeeffecto.Parent = Character.Torso | |
1431 | eeeffecto.Enabled = false | |
1432 | ||
1433 | RW = Torso["Right Shoulder"] | |
1434 | LW = Torso["Left Shoulder"] | |
1435 | LH=Torso["Left Hip"] | |
1436 | RH=Torso["Right Hip"] | |
1437 | Euler = CFrame.fromEulerAnglesXYZ | |
1438 | Rad = math.rad | |
1439 | IT = Instance.new | |
1440 | BrickC = BrickColor.new | |
1441 | Cos = math.cos | |
1442 | Acos = math.acos | |
1443 | Sin = math.sin | |
1444 | Asin = math.asin | |
1445 | Abs = math.abs | |
1446 | Mrandom = math.random | |
1447 | Floor = math.floor | |
1448 | radian = math.rad | |
1449 | Rad = math.rad | |
1450 | Sin = math.sin | |
1451 | cos = math.cos | |
1452 | random = math.random | |
1453 | Vec3 = Vector3.new | |
1454 | Inst = Instance.new | |
1455 | cFrame = CFrame.new | |
1456 | vt = Vector3.new | |
1457 | bc = BrickColor.new | |
1458 | br = BrickColor.random | |
1459 | it = Instance.new | |
1460 | cf = CFrame.new | |
1461 | local cn = CFrame.new | |
1462 | - | local plr = game:service'Players'.Galaxy_Master8712 |
1462 | + | local plr = game:service'Players'.silver22352 |
1463 | local char = plr.Character | |
1464 | local hum = char.Humanoid | |
1465 | local hed = char.Head | |
1466 | local root = char.HumanoidRootPart | |
1467 | local rootj = root.RootJoint | |
1468 | local tors = char.Torso | |
1469 | local ra = char["Right Arm"] | |
1470 | local la = char["Left Arm"] | |
1471 | local rl = char["Right Leg"] | |
1472 | local ll = char["Left Leg"] | |
1473 | local neck = tors["Neck"] | |
1474 | ||
1475 | RootCF=Euler(-1.57,0,3.14) | |
1476 | ||
1477 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1478 | if SinglePlayer then | |
1479 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1480 | end | |
1481 | local List = {} | |
1482 | for i, v in pairs(workspace:GetChildren()) do | |
1483 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1484 | table.insert(List, v) | |
1485 | end | |
1486 | end | |
1487 | return List | |
1488 | end | |
1489 | ||
1490 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
1491 | if SinglePlayer then | |
1492 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1493 | end | |
1494 | local List = {} | |
1495 | for i, v in pairs(workspace:GetChildren()) do | |
1496 | if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1497 | table.insert(List, v) | |
1498 | end | |
1499 | end | |
1500 | return List | |
1501 | end | |
1502 | ||
1503 | local lightning = Instance.new("ParticleEmitter",Torso) | |
1504 | lightning.Texture = "http://www.roblox.com/asset/?id=348321827" | |
1505 | lightning.LightEmission = 0 | |
1506 | lightning.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
1507 | lightning.LockedToPart = true | |
1508 | lightning.Rate = 20 | |
1509 | lightning.Lifetime = NumberRange.new(0.1,0.10) | |
1510 | lightning.Rotation = NumberRange.new(0,360) | |
1511 | lightning.Size = NumberSequence.new(3,3,3) | |
1512 | lightning.Transparency = NumberSequence.new(0,0) | |
1513 | lightning.Speed = NumberRange.new(0,0) | |
1514 | lightning.RotSpeed = NumberRange.new(0,0) | |
1515 | lightning.ZOffset = 5.5 | |
1516 | lightning.Parent = Character.Torso | |
1517 | lightning.Enabled = false | |
1518 | ||
1519 | local eeeffecto = Instance.new("ParticleEmitter",Torso) | |
1520 | eeeffecto.Texture = "http://www.roblox.com/asset/?id=305943367" | |
1521 | eeeffecto.LightEmission = 0 | |
1522 | eeeffecto.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
1523 | eeeffecto.LockedToPart = true | |
1524 | eeeffecto.Rate = 10.5 | |
1525 | eeeffecto.Lifetime = NumberRange.new(0.1,0.1) | |
1526 | eeeffecto.Rotation = NumberRange.new(0,0) | |
1527 | eeeffecto.Size = NumberSequence.new(9,9,9) | |
1528 | eeeffecto.Transparency = NumberSequence.new(0,0) | |
1529 | eeeffecto.Speed = NumberRange.new(0,0) | |
1530 | eeeffecto.RotSpeed = NumberRange.new(0,0) | |
1531 | eeeffecto.Parent = Character.Torso | |
1532 | eeeffecto.Enabled = false | |
1533 | ||
1534 | function clerp(a,b,t) | |
1535 | local qa = {QuaternionFromCFrame(a)} | |
1536 | local qb = {QuaternionFromCFrame(b)} | |
1537 | local ax, ay, az = a.x, a.y, a.z | |
1538 | local bx, by, bz = b.x, b.y, b.z | |
1539 | local _t = 1-t | |
1540 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1541 | end | |
1542 | ||
1543 | local sine = 0 | |
1544 | ||
1545 | ||
1546 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
1547 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, Color3.new(1,0,1), "Effect", VT(0,0,0)) | |
1548 | local mesh = IT("SpecialMesh",wave) | |
1549 | mesh.MeshType = "FileMesh" | |
1550 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1551 | mesh.Scale = SIZE | |
1552 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
1553 | wave.CFrame = CFRAME | |
1554 | coroutine.resume(coroutine.create(function(PART) | |
1555 | for i = 1, WAIT do | |
1556 | Swait() | |
1557 | mesh.Scale = mesh.Scale + GROW | |
1558 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
1559 | if DOESROT == true then | |
1560 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
1561 | end | |
1562 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
1563 | if wave.Transparency > 0.99 then | |
1564 | wave:remove() | |
1565 | end | |
1566 | end | |
1567 | end)) | |
1568 | end | |
1569 | ||
1570 | function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
1571 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
1572 | local mesh = IT("SpecialMesh",wave) | |
1573 | mesh.MeshType = "FileMesh" | |
1574 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1575 | mesh.Scale = SIZE | |
1576 | mesh.Offset = VT(0,0,0) | |
1577 | wave.CFrame = CFRAME | |
1578 | coroutine.resume(coroutine.create(function(PART) | |
1579 | for i = 1, WAIT do | |
1580 | Swait() | |
1581 | mesh.Scale = mesh.Scale + GROW | |
1582 | if DOESROT == true then | |
1583 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
1584 | end | |
1585 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
1586 | if wave.Transparency > 0.99 then | |
1587 | wave:remove() | |
1588 | end | |
1589 | end | |
1590 | end)) | |
1591 | end | |
1592 | ||
1593 | function THE_END() | |
1594 | ATTACK = true | |
1595 | ROOTED = false | |
1596 | hum.WalkSpeed = 0 | |
1597 | lightning.Enabled = true | |
1598 | eeeffecto.Enabled = true | |
1599 | CreateSound("1548599511", Torso, 200, 1) | |
1600 | --chatter("this is....",C3(1,0,1),"Inverted","Bodoni",1) | |
1601 | for i = 0, 6, 0.1 do | |
1602 | swait() | |
1603 | CreateWave3(0,3.5,true,0.2,150,RootPart,-2,"Royal purple") | |
1604 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Royal purple") | |
1605 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = LeftArm.CFrame*CF(0,-1.45,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1606 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-1.45,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1607 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(120), Rad(0 + 5 * Sin(sine / 20)), Rad(55)), 0.1) | |
1608 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(120), Rad(0 - 5 * Sin(sine / 20)), Rad(-55)), 0.1) | |
1609 | end | |
1610 | CreateSound("137463716", Torso, 65, 1) | |
1611 | CreateWave3(0,3.5,true,0.2,150,RootPart,-2,"Royal purple") | |
1612 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Royal purple") | |
1613 | for i = 0, 6, 0.1 do | |
1614 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(85), Rad(Mrandom(-15, 15)), Rad(-45 - 4.5 * Sin(sine / 20))), 0.3) | |
1615 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, -0.6* Player_Size) * angles(Rad(85), Rad(Mrandom(-15, 15)), Rad(45 + 4.5 * Sin(sine / 20))), 0.3) | |
1616 | end | |
1617 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(12,12,12), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1618 | CreateSound("137463716", Torso, 65, 1) | |
1619 | for i = 0,4,0.1 do | |
1620 | swait() | |
1621 | CreateWave3(0,3.5,true,0.2,150,RootPart,-2,"Royal purple") | |
1622 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Royal purple") | |
1623 | Slice("Thin", 0.1, 5, RightArm.CFrame * CF(0, -3, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(128,0,128), VT(12, 0, 12)) | |
1624 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(12,12,12), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1625 | RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1) | |
1626 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1) | |
1627 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1) | |
1628 | Torso.Neck.C0=clerp(Torso.Neck.C0,NECKC0*angles(math.rad(20),math.rad(0),math.rad(-30)),.1) | |
1629 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1) | |
1630 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1) | |
1631 | end | |
1632 | --chatter("the end u punys",C3(1,0,1),"Inverted","Bodoni",1) | |
1633 | CreateSound("1548599962", Torso, 200, 1) | |
1634 | for i = 0,2,0.1 do | |
1635 | swait() | |
1636 | Slice("Thin", 0.1, 5, RightArm.CFrame * CF(0, -3, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(128,0,128), VT(12, 0, 12)) | |
1637 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(12,12,12), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1638 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8) | |
1639 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8) | |
1640 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8) | |
1641 | Torso.Neck.C0=clerp(Torso.Neck.C0,NECKC0*angles(math.rad(20),math.rad(0),math.rad(-50)),.8) | |
1642 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8) | |
1643 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8) | |
1644 | end | |
1645 | CreateSound("1137548130", Torso, 35, 1) | |
1646 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(50,50,50)) | |
1647 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Magenta",VT(100,100,100)) | |
1648 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Royal purple",VT(25,25,25)) | |
1649 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(550,550,550), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
1650 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
1651 | if v:FindFirstChild('Head') then | |
1652 | Voided(v) | |
1653 | end | |
1654 | end | |
1655 | lightning.Enabled = false | |
1656 | eeeffecto.Enabled = false | |
1657 | ATTACK = false | |
1658 | ROOTED = false | |
1659 | end | |
1660 | ||
1661 | function VoidJump() | |
1662 | Speed = 0 | |
1663 | ATTACK = true | |
1664 | Rooted = true | |
1665 | for i=0, 2, 0.1 / Animation_Speed do | |
1666 | Swait() | |
1667 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1668 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1669 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1670 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1671 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1672 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1673 | end | |
1674 | CreateSound("0", Torso, 5, MRANDOM(7, 12) / 10) | |
1675 | CreateWave3(0,3.5,true,0.2,150,RootPart,-2,"Royal purple") | |
1676 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Royal purple") | |
1677 | ApplyAoE2(Torso.Position, 150, 0, 0, 0, true) | |
1678 | local bv = Instance.new("BodyVelocity") | |
1679 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1680 | bv.velocity = Vector3.new(0,300,0) | |
1681 | bv.Parent = Torso | |
1682 | bv.Name = "DASH" | |
1683 | ATTACK = false | |
1684 | Rooted = false | |
1685 | game:GetService("Debris"):AddItem(bv, 0.5) | |
1686 | coroutine.resume(coroutine.create(function() | |
1687 | Swait(50) | |
1688 | HASJUMPED = false | |
1689 | Speed = 20 | |
1690 | end)) | |
1691 | end | |
1692 | ||
1693 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
1694 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
1695 | local mesh = IT("SpecialMesh",wave) | |
1696 | mesh.MeshType = "Sphere" | |
1697 | mesh.Scale = SIZE | |
1698 | mesh.Offset = VT(0,0,0) | |
1699 | wave.CFrame = CFRAME | |
1700 | coroutine.resume(coroutine.create(function(PART) | |
1701 | for i = 1, WAIT do | |
1702 | Swait() | |
1703 | mesh.Scale = mesh.Scale + GROW | |
1704 | wave.Transparency = wave.Transparency + (1/WAIT) | |
1705 | if wave.Transparency > 0.99 then | |
1706 | wave:remove() | |
1707 | end | |
1708 | end | |
1709 | end)) | |
1710 | end | |
1711 | ||
1712 | function VoidBurn() | |
1713 | ATTACK = true | |
1714 | Rooted = true | |
1715 | local MAKERING = true | |
1716 | local RINGGROW = false | |
1717 | coroutine.resume(coroutine.create(function() | |
1718 | repeat | |
1719 | Swait() | |
1720 | if ATTACK == false then | |
1721 | break | |
1722 | end | |
1723 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed) | |
1724 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 1 / Animation_Speed) | |
1725 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1726 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.5 + 0.05 * SIN(SINE / 12), -0.3) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1727 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1728 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1729 | until MAKERING == false | |
1730 | repeat | |
1731 | Swait() | |
1732 | if ATTACK == false then | |
1733 | break | |
1734 | end | |
1735 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.03 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-35)), 1 / Animation_Speed) | |
1736 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(35)), 1 / Animation_Speed) | |
1737 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1738 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3, 0.5 + 0.05 * SIN(SINE / 12), -0.3) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1739 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1740 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-12), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1741 | until RINGGROW == true | |
1742 | end)) | |
1743 | local FIRERING = IT("Model",Effects) | |
1744 | FIRERING.Name = "RingOfFire" | |
1745 | local MAIN = CreatePart(3, FIRERING, "Neon", 0, 1, "Really black", "Center", VT(0,0,0)) | |
1746 | FIRERING.PrimaryPart = MAIN | |
1747 | local RINGS = {} | |
1748 | local EMITTERS = {} | |
1749 | for i = 1, 45 do | |
1750 | local PRT = CreatePart(3, FIRERING, "Neon", 0, 1, "Lavender", "RingPart", VT(1,1,1)) | |
1751 | PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,0) | |
1752 | table.insert(RINGS,PRT) | |
1753 | local PRTCL = ParticleEmitter({Transparency1 = 1, Transparency2 = 0,Speed = 0.2, Acel = VT(8,18,6), RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 1, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 0.8, Parent = PRT, Emit = 100, Offset = 360, Enabled = true, Color1 = C3(0,0,0), Color2 = C3(0.5,0,0), Texture = "1523916715"}) | |
1754 | PRTCL.LockedToPart = true | |
1755 | PRTCL.Rate = 35 | |
1756 | table.insert(EMITTERS,PRTCL) | |
1757 | end | |
1758 | FIRERING:SetPrimaryPartCFrame(RootPart.CFrame*CF(0,3,-3)*ANGLES(RAD(-75),RAD(0),RAD(0))) | |
1759 | wait(0.5) | |
1760 | MAKERING = false | |
1761 | CreateSound(278641993, MAIN, 5, 1.2, false) | |
1762 | for e = 1, 45 do | |
1763 | Swait() | |
1764 | FIRERING:SetPrimaryPartCFrame(RootPart.CFrame*CF(0,3,-3)*ANGLES(RAD(-75),RAD(0),RAD(0))) | |
1765 | for i = 1, #RINGS do | |
1766 | RINGS[i].CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,e/10) | |
1767 | end | |
1768 | end | |
1769 | RINGGROW = true | |
1770 | wait(0.2) | |
1771 | for i = 1, 15 do | |
1772 | wait(0.08) | |
1773 | coroutine.resume(coroutine.create(function() | |
1774 | local POS = Mouse.Hit.p | |
1775 | local MISSILE = CreatePart(3, Effects, "Neon", 0, 1, "Royal purple", "Missile", VT(0.5,1,0.5)) | |
1776 | MISSILE.Color = C3(0.7,0,0.7) | |
1777 | CreateSound(84005018, MISSILE, 0.2, 1.2, false) | |
1778 | MakeForm(MISSILE,"Ball") | |
1779 | MISSILE.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(1,5)) | |
1780 | for i = 1, 10 do | |
1781 | Swait() | |
1782 | MISSILE.Transparency = MISSILE.Transparency - 1/15 | |
1783 | MISSILE.CFrame = MISSILE.CFrame * CF(0,0.7,0) | |
1784 | end | |
1785 | for i = 1, 5 do | |
1786 | Swait() | |
1787 | MISSILE.Transparency = MISSILE.Transparency - 1/15 | |
1788 | MISSILE.CFrame = MISSILE.CFrame * CF(0,0.5,0) | |
1789 | end | |
1790 | MISSILE.Size = VT(0.2,0.2,1.5) | |
1791 | MISSILE.CFrame = CF(MISSILE.Position,POS) | |
1792 | for i = 1, 150 do | |
1793 | Swait() | |
1794 | MISSILE.CFrame = MISSILE.CFrame*CF(0,0,-3) | |
1795 | local HIT = Raycast(MISSILE.Position, MISSILE.CFrame.lookVector, 4, Character) | |
1796 | if HIT ~= nil then | |
1797 | WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = MISSILE.Size, Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = MISSILE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = MISSILE.Color, SoundID = nil, SoundPitch = 1.3, SoundVolume = 3}) | |
1798 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = MISSILE.Size, Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = MISSILE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = MISSILE.Color, SoundID = nil, SoundPitch = 1.3, SoundVolume = 3}) | |
1799 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = MISSILE.Size, Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = MISSILE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = MISSILE.Color, SoundID = 165970126, SoundPitch = MRANDOM(7,15)/10, SoundVolume = MRANDOM(15,30)/10}) | |
1800 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,50,0), Size2 = VT(15+i,45,15+i), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,2.2*SIZE,0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1801 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,25,0), Size2 = VT(25+i,0,25+i), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,2.2*SIZE,0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1802 | for i = 1, 5 do | |
1803 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(35,2,35), Transparency = 0.8, Transparency2 = 1, CFrame = MISSILE.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(1,0,1), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1804 | end | |
1805 | ApplyAoE4(MISSILE.Position,15,15,25,35,true) | |
1806 | break | |
1807 | end | |
1808 | end | |
1809 | MISSILE:remove() | |
1810 | end)) | |
1811 | end | |
1812 | ATTACK = false | |
1813 | Rooted = false | |
1814 | end | |
1815 | ||
1816 | function kaboom() | |
1817 | local BOOM = Instance.new("Part",workspace) | |
1818 | BOOM.Shape = "Ball" | |
1819 | BOOM.CFrame = Torso.CFrame*CFrame.new(0,0,-6.5) | |
1820 | BOOM.Size = Vector3.new(25,25,25) | |
1821 | BOOM.Anchored = true | |
1822 | BOOM.Material = "Neon" | |
1823 | BOOM.Color = Color3.new(1,1,1) | |
1824 | BOOM.BrickColor = BrickColor.new("Really black") | |
1825 | BOOM.Touched:Connect(function(TouchedPart) | |
1826 | TouchedPart.Parent = BOOM | |
1827 | TouchedPart.Anchored = true | |
1828 | TouchedPart.Color = Color3.new(0,0,0) | |
1829 | for i = 1, 8 do | |
1830 | wait(0.01) | |
1831 | TouchedPart.Transparency = TouchedPart.Transparency + 1/8 | |
1832 | end | |
1833 | TouchedPart:Destroy() | |
1834 | end) | |
1835 | for i = 1, 200 do | |
1836 | wait(0.01) | |
1837 | BOOM.Size = BOOM.Size + Vector3.new(15,15,15) | |
1838 | BOOM.Transparency = BOOM.Transparency + 1/200 | |
1839 | end | |
1840 | BOOM:Remove() | |
1841 | end | |
1842 | ||
1843 | function VoidGround() | |
1844 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1845 | if HITFLOOR ~= nil then | |
1846 | ATTACK = true | |
1847 | Rooted = true | |
1848 | chatfunc("if u step on the purple u die") | |
1849 | WACKYEFFECT({Time = 60, EffectType = "Ring", Size = VT(0,0.55,0), Size2 = VT(20,0.55,20), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame.p, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.4,0,.4), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1850 | for i=0, 2, 0.1 / Animation_Speed do | |
1851 | Swait() | |
1852 | MagicSphere(VT(0,2,0),60,RootPart.CFrame*CF(0,-3,0),"Royal purple",VT(4,0,4)) | |
1853 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1854 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(-15), RAD(0)), 0.15 / Animation_Speed) | |
1855 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1856 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1857 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1858 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1859 | end | |
1860 | CreateSound("401056199", Character, 2, 0.9) | |
1861 | coroutine.resume(coroutine.create(function() | |
1862 | wait() | |
1863 | for i=0, 1, 0.1 / Animation_Speed do | |
1864 | Swait() | |
1865 | ApplyAoE3(RootPart.CFrame*CF(0,-3,0).p,110) | |
1866 | MagicSphere(VT(65,2,65),15,RootPart.CFrame*CF(0,-3,0),"Royal purple",VT(15,500,15)) | |
1867 | end | |
1868 | end)) | |
1869 | for i=0, 1, 0.1 / Animation_Speed do | |
1870 | Swait() | |
1871 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
1872 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
1873 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(185), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed) | |
1874 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.8 / Animation_Speed) | |
1875 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
1876 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.8 / Animation_Speed) | |
1877 | end | |
1878 | ATTACK = false | |
1879 | Rooted = false | |
1880 | end | |
1881 | end | |
1882 | ||
1883 | function TheRift() | |
1884 | ATTACK = true | |
1885 | Rooted = true | |
1886 | local CHARGE = false | |
1887 | local BLASTS = {468991944, 468991990} | |
1888 | coroutine.resume(coroutine.create(function() | |
1889 | repeat | |
1890 | Swait() | |
1891 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
1892 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
1893 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
1894 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
1895 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
1896 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
1897 | until CHARGE == true | |
1898 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
1899 | Swait() | |
1900 | WACKYEFFECT({ | |
1901 | Time = 15, | |
1902 | EffectType = "Sphere", | |
1903 | Size = VT(120, 120, 120), | |
1904 | Size2 = VT(0, 0, 0), | |
1905 | Transparency = 1, | |
1906 | Transparency2 = 0.7, | |
1907 | CFrame = CF(RootPart.Position), | |
1908 | MoveToPos = nil, | |
1909 | RotationX = 0, | |
1910 | RotationY = 0, | |
1911 | RotationZ = 0, | |
1912 | Material = "Neon", | |
1913 | Color = C3(123, 0, 123), | |
1914 | SoundID = nil, | |
1915 | SoundPitch = nil, | |
1916 | SoundVolume = nil | |
1917 | }) | |
1918 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1919 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1920 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-50 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1921 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(50 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1922 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1923 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1924 | end | |
1925 | coroutine.resume(coroutine.create(function() | |
1926 | local POS = RootPart.Position | |
1927 | wait(0.2) | |
1928 | for i = 1, 5 do | |
1929 | WACKYEFFECT({ | |
1930 | Time = 65, | |
1931 | EffectType = "Sphere", | |
1932 | Size = VT(4, 4, 4), | |
1933 | Size2 = VT(0, 0, 1000), | |
1934 | Transparency = 1, | |
1935 | Transparency2 = 0, | |
1936 | CFrame = CF(POS), | |
1937 | MoveToPos = nil, | |
1938 | RotationX = MRANDOM(-2, 2), | |
1939 | RotationY = MRANDOM(-12, 12), | |
1940 | RotationZ = MRANDOM(-2, 2), | |
1941 | Material = "Neon", | |
1942 | Color = C3(123, 0, 123), | |
1943 | SoundID = nil, | |
1944 | SoundPitch = nil, | |
1945 | SoundVolume = nil | |
1946 | }) | |
1947 | end | |
1948 | wait(1) | |
1949 | ApplyAoE2(POS, 450) | |
1950 | WACKYEFFECT({ | |
1951 | Time = 85, | |
1952 | EffectType = "Sphere", | |
1953 | Size = VT(240, 240, 240), | |
1954 | Size2 = VT(700, 700, 700), | |
1955 | Transparency = 0, | |
1956 | Transparency2 = 1, | |
1957 | CFrame = CF(POS), | |
1958 | MoveToPos = nil, | |
1959 | RotationX = 0, | |
1960 | RotationY = 0, | |
1961 | RotationZ = 0, | |
1962 | Material = "Neon", | |
1963 | Color = C3(123, 0, 123), | |
1964 | SoundID = nil, | |
1965 | SoundPitch = 1, | |
1966 | SoundVolume = 10 | |
1967 | }) | |
1968 | for i = 1, 20 do | |
1969 | WACKYEFFECT({ | |
1970 | Time = 85, | |
1971 | EffectType = "Sphere", | |
1972 | Size = VT(240, 240, 240), | |
1973 | Size2 = VT(240, 240, 288) + VT(i * 3, i * 3, i * 3), | |
1974 | Transparency = 0.8, | |
1975 | Transparency2 = 1, | |
1976 | CFrame = CF(POS), | |
1977 | MoveToPos = nil, | |
1978 | RotationX = 0, | |
1979 | RotationY = 0, | |
1980 | RotationZ = 0, | |
1981 | Material = "Neon", | |
1982 | Color = C3(123, 0, 123), | |
1983 | SoundID = nil, | |
1984 | SoundPitch = 1, | |
1985 | SoundVolume = 10 | |
1986 | }) | |
1987 | WACKYEFFECT({ | |
1988 | Time = 100, | |
1989 | EffectType = "Wave", | |
1990 | Size = VT(50, 4, 50), | |
1991 | Size2 = VT(800, 0, 800) * 1.2, | |
1992 | Transparency = 0, | |
1993 | Transparency2 = 1, | |
1994 | CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
1995 | MoveToPos = nil, | |
1996 | RotationX = 0, | |
1997 | RotationY = 0, | |
1998 | RotationZ = 0, | |
1999 | Material = "Neon", | |
2000 | Color = C3(123, 0, 123), | |
2001 | SoundID = nil, | |
2002 | SoundPitch = nil, | |
2003 | SoundVolume = nil | |
2004 | }) | |
2005 | end | |
2006 | local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2007 | for i = 1, 5 do | |
2008 | CreateSound(438666077, Effects, 15, 1 - i / 15, false) | |
2009 | WACKYEFFECT({ | |
2010 | Time = 120, | |
2011 | EffectType = "Wave", | |
2012 | Size = VT(300, 2, 300), | |
2013 | Size2 = VT(600 + i * 340, 0, 600 + i * 340) * 1.2, | |
2014 | Transparency = 0, | |
2015 | Transparency2 = 1, | |
2016 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
2017 | MoveToPos = nil, | |
2018 | RotationX = 0, | |
2019 | RotationY = 0, | |
2020 | RotationZ = 0, | |
2021 | Material = "Neon", | |
2022 | Color = C3(123, 0, 123), | |
2023 | SoundID = nil, | |
2024 | SoundPitch = nil, | |
2025 | SoundVolume = nil | |
2026 | }) | |
2027 | end | |
2028 | for i = 1, 5 do | |
2029 | WACKYEFFECT({ | |
2030 | Time = 65, | |
2031 | EffectType = "Sphere", | |
2032 | Size = VT(4, 4, 4), | |
2033 | Size2 = VT(0, 0, 1000), | |
2034 | Transparency = 1, | |
2035 | Transparency2 = 0, | |
2036 | CFrame = CF(POS), | |
2037 | MoveToPos = nil, | |
2038 | RotationX = MRANDOM(-2, 2), | |
2039 | RotationY = MRANDOM(-12, 12), | |
2040 | RotationZ = MRANDOM(-2, 2), | |
2041 | Material = "Neon", | |
2042 | Color = C3(123, 0, 123), | |
2043 | SoundID = nil, | |
2044 | SoundPitch = nil, | |
2045 | SoundVolume = nil | |
2046 | }) | |
2047 | end | |
2048 | wait(1) | |
2049 | ApplyAoE2(POS, 450) | |
2050 | WACKYEFFECT({ | |
2051 | Time = 85, | |
2052 | EffectType = "Sphere", | |
2053 | Size = VT(240, 240, 240), | |
2054 | Size2 = VT(700, 700, 700), | |
2055 | Transparency = 0, | |
2056 | Transparency2 = 1, | |
2057 | CFrame = CF(POS), | |
2058 | MoveToPos = nil, | |
2059 | RotationX = 0, | |
2060 | RotationY = 0, | |
2061 | RotationZ = 0, | |
2062 | Material = "Neon", | |
2063 | Color = C3(123, 0, 123), | |
2064 | SoundID = nil, | |
2065 | SoundPitch = 1, | |
2066 | SoundVolume = 10 | |
2067 | }) | |
2068 | for i = 1, 20 do | |
2069 | WACKYEFFECT({ | |
2070 | Time = 85, | |
2071 | EffectType = "Sphere", | |
2072 | Size = VT(240, 240, 240), | |
2073 | Size2 = VT(240, 240, 288) + VT(i * 3, i * 3, i * 3), | |
2074 | Transparency = 0.8, | |
2075 | Transparency2 = 1, | |
2076 | CFrame = CF(POS), | |
2077 | MoveToPos = nil, | |
2078 | RotationX = 0, | |
2079 | RotationY = 0, | |
2080 | RotationZ = 0, | |
2081 | Material = "Neon", | |
2082 | Color = C3(123, 0, 123), | |
2083 | SoundID = nil, | |
2084 | SoundPitch = 1, | |
2085 | SoundVolume = 10 | |
2086 | }) | |
2087 | WACKYEFFECT({ | |
2088 | Time = 100, | |
2089 | EffectType = "Wave", | |
2090 | Size = VT(50, 4, 50), | |
2091 | Size2 = VT(800, 0, 800) * 1.2, | |
2092 | Transparency = 0, | |
2093 | Transparency2 = 1, | |
2094 | CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2095 | MoveToPos = nil, | |
2096 | RotationX = 0, | |
2097 | RotationY = 0, | |
2098 | RotationZ = 0, | |
2099 | Material = "Neon", | |
2100 | Color = C3(123, 0, 123), | |
2101 | SoundID = nil, | |
2102 | SoundPitch = nil, | |
2103 | SoundVolume = nil | |
2104 | }) | |
2105 | end | |
2106 | local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2107 | for i = 1, 5 do | |
2108 | CreateSound(438666077, Effects, 15, 1 - i / 15, false) | |
2109 | WACKYEFFECT({ | |
2110 | Time = 120, | |
2111 | EffectType = "Wave", | |
2112 | Size = VT(300, 2, 300), | |
2113 | Size2 = VT(600 + i * 340, 0, 600 + i * 340) * 1.2, | |
2114 | Transparency = 0, | |
2115 | Transparency2 = 1, | |
2116 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
2117 | MoveToPos = nil, | |
2118 | RotationX = 0, | |
2119 | RotationY = 0, | |
2120 | RotationZ = 0, | |
2121 | Material = "Neon", | |
2122 | Color = C3(123, 0, 123), | |
2123 | SoundID = nil, | |
2124 | SoundPitch = nil, | |
2125 | SoundVolume = nil | |
2126 | }) | |
2127 | end | |
2128 | for i = 1, 5 do | |
2129 | WACKYEFFECT({ | |
2130 | Time = 65, | |
2131 | EffectType = "Sphere", | |
2132 | Size = VT(4, 4, 4), | |
2133 | Size2 = VT(0, 0, 1000), | |
2134 | Transparency = 1, | |
2135 | Transparency2 = 0, | |
2136 | CFrame = CF(POS), | |
2137 | MoveToPos = nil, | |
2138 | RotationX = MRANDOM(-2, 2), | |
2139 | RotationY = MRANDOM(-12, 12), | |
2140 | RotationZ = MRANDOM(-2, 2), | |
2141 | Material = "Neon", | |
2142 | Color = C3(123, 0, 123), | |
2143 | SoundID = nil, | |
2144 | SoundPitch = nil, | |
2145 | SoundVolume = nil | |
2146 | }) | |
2147 | end | |
2148 | wait(1) | |
2149 | ApplyAoE2(POS, 450) | |
2150 | WACKYEFFECT({ | |
2151 | Time = 85, | |
2152 | EffectType = "Sphere", | |
2153 | Size = VT(240, 240, 240), | |
2154 | Size2 = VT(700, 700, 700), | |
2155 | Transparency = 0, | |
2156 | Transparency2 = 1, | |
2157 | CFrame = CF(POS), | |
2158 | MoveToPos = nil, | |
2159 | RotationX = 0, | |
2160 | RotationY = 0, | |
2161 | RotationZ = 0, | |
2162 | Material = "Neon", | |
2163 | Color = C3(123, 0, 123), | |
2164 | SoundID = nil, | |
2165 | SoundPitch = 1, | |
2166 | SoundVolume = 10 | |
2167 | }) | |
2168 | for i = 1, 20 do | |
2169 | WACKYEFFECT({ | |
2170 | Time = 85, | |
2171 | EffectType = "Sphere", | |
2172 | Size = VT(240, 240, 240), | |
2173 | Size2 = VT(240, 240, 288) + VT(i * 3, i * 3, i * 3), | |
2174 | Transparency = 0.8, | |
2175 | Transparency2 = 1, | |
2176 | CFrame = CF(POS), | |
2177 | MoveToPos = nil, | |
2178 | RotationX = 0, | |
2179 | RotationY = 0, | |
2180 | RotationZ = 0, | |
2181 | Material = "Neon", | |
2182 | Color = C3(123, 0, 123), | |
2183 | SoundID = nil, | |
2184 | SoundPitch = 1, | |
2185 | SoundVolume = 10 | |
2186 | }) | |
2187 | WACKYEFFECT({ | |
2188 | Time = 100, | |
2189 | EffectType = "Wave", | |
2190 | Size = VT(50, 4, 50), | |
2191 | Size2 = VT(800, 0, 800) * 1.2, | |
2192 | Transparency = 0, | |
2193 | Transparency2 = 1, | |
2194 | CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2195 | MoveToPos = nil, | |
2196 | RotationX = 0, | |
2197 | RotationY = 0, | |
2198 | RotationZ = 0, | |
2199 | Material = "Neon", | |
2200 | Color = C3(123, 0, 123), | |
2201 | SoundID = nil, | |
2202 | SoundPitch = nil, | |
2203 | SoundVolume = nil | |
2204 | }) | |
2205 | end | |
2206 | local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2207 | for i = 1, 5 do | |
2208 | CreateSound(438666077, Effects, 15, 1 - i / 15, false) | |
2209 | WACKYEFFECT({ | |
2210 | Time = 120, | |
2211 | EffectType = "Wave", | |
2212 | Size = VT(300, 2, 300), | |
2213 | Size2 = VT(600 + i * 340, 0, 600 + i * 340) * 1.2, | |
2214 | Transparency = 0, | |
2215 | Transparency2 = 1, | |
2216 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
2217 | MoveToPos = nil, | |
2218 | RotationX = 0, | |
2219 | RotationY = 0, | |
2220 | RotationZ = 0, | |
2221 | Material = "Neon", | |
2222 | Color = C3(123, 0, 123), | |
2223 | SoundID = nil, | |
2224 | SoundPitch = nil, | |
2225 | SoundVolume = nil | |
2226 | }) | |
2227 | end | |
2228 | end)) | |
2229 | for i = 0, 1, 0.1 / Animation_Speed do | |
2230 | Swait() | |
2231 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2232 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2233 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2234 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2235 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2236 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2237 | end | |
2238 | ATTACK = false | |
2239 | Rooted = false | |
2240 | end)) | |
2241 | for i = 1, 30 do | |
2242 | wait(0.01) | |
2243 | local POS = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(10, 150)) | |
2244 | local HITFLOOR, HITPOS = Raycast(POS.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2245 | if HITFLOOR then | |
2246 | ApplyAoE5(HITPOS, 65) | |
2247 | local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0)) | |
2248 | WACKYEFFECT({ | |
2249 | Time = 25, | |
2250 | EffectType = "Sphere", | |
2251 | Size = VT(44, 44, 44), | |
2252 | Size2 = VT(170, 170, 170), | |
2253 | Transparency = 0, | |
2254 | Transparency2 = 1, | |
2255 | CFrame = CF(HITPOS), | |
2256 | MoveToPos = nil, | |
2257 | RotationX = 0, | |
2258 | RotationY = 0, | |
2259 | RotationZ = 0, | |
2260 | Material = "Neon", | |
2261 | Color = C3(123, 0, 123), | |
2262 | SoundID = BLASTS[MRANDOM(1, #BLASTS)], | |
2263 | SoundPitch = MRANDOM(9, 12) / 10, | |
2264 | SoundVolume = 10 | |
2265 | }) | |
2266 | for e = 1, 3 do | |
2267 | WACKYEFFECT({ | |
2268 | EffectType = "Wave", | |
2269 | Size = VT(50, 0, 50), | |
2270 | Size2 = VT(80, 0, 80) + VT(e * 6, e / 5, e * 6), | |
2271 | Transparency = 0, | |
2272 | Transparency2 = 1, | |
2273 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
2274 | MoveToPos = nil, | |
2275 | RotationX = 0, | |
2276 | RotationY = 3, | |
2277 | RotationZ = 0, | |
2278 | Material = "Neon", | |
2279 | Color = C3(123, 0, 123), | |
2280 | SoundID = nil, | |
2281 | SoundPitch = nil, | |
2282 | SoundVolume = nil | |
2283 | }) | |
2284 | WACKYEFFECT({ | |
2285 | Time = 35, | |
2286 | EffectType = "Sphere", | |
2287 | Size = VT(44, 90, 44), | |
2288 | Size2 = VT(50, 90 + e * 150, 50), | |
2289 | Transparency = 0, | |
2290 | Transparency2 = 1, | |
2291 | CFrame = CF(HITPOS) * TURN, | |
2292 | MoveToPos = nil, | |
2293 | RotationX = 0, | |
2294 | RotationY = 0, | |
2295 | RotationZ = 0, | |
2296 | Material = "Neon", | |
2297 | Color = C3(123, 0, 123), | |
2298 | SoundID = nil, | |
2299 | SoundPitch = MRANDOM(9, 12) / 10, | |
2300 | SoundVolume = 10 | |
2301 | }) | |
2302 | WACKYEFFECT({ | |
2303 | Time = 25, | |
2304 | EffectType = "Sphere", | |
2305 | Size = VT(44, 44, 44), | |
2306 | Size2 = VT(170, 170, 170), | |
2307 | Transparency = 0, | |
2308 | Transparency2 = 1, | |
2309 | CFrame = CF(HITPOS), | |
2310 | MoveToPos = nil, | |
2311 | RotationX = 0, | |
2312 | RotationY = 0, | |
2313 | RotationZ = 0, | |
2314 | Material = "Neon", | |
2315 | Color = C3(123, 0, 123), | |
2316 | SoundID = BLASTS[MRANDOM(1, #BLASTS)], | |
2317 | SoundPitch = MRANDOM(9, 12) / 10, | |
2318 | SoundVolume = 10 | |
2319 | }) | |
2320 | for e = 1, 3 do | |
2321 | WACKYEFFECT({ | |
2322 | EffectType = "Wave", | |
2323 | Size = VT(50, 0, 50), | |
2324 | Size2 = VT(80, 0, 80) + VT(e * 6, e / 5, e * 6), | |
2325 | Transparency = 0, | |
2326 | Transparency2 = 1, | |
2327 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
2328 | MoveToPos = nil, | |
2329 | RotationX = 0, | |
2330 | RotationY = 3, | |
2331 | RotationZ = 0, | |
2332 | Material = "Neon", | |
2333 | Color = C3(123, 0, 123), | |
2334 | SoundID = nil, | |
2335 | SoundPitch = nil, | |
2336 | SoundVolume = nil | |
2337 | }) | |
2338 | WACKYEFFECT({ | |
2339 | Time = 35, | |
2340 | EffectType = "Sphere", | |
2341 | Size = VT(44, 90, 44), | |
2342 | Size2 = VT(50, 90 + e * 150, 50), | |
2343 | Transparency = 0, | |
2344 | Transparency2 = 1, | |
2345 | CFrame = CF(HITPOS) * TURN, | |
2346 | MoveToPos = nil, | |
2347 | RotationX = 0, | |
2348 | RotationY = 0, | |
2349 | RotationZ = 0, | |
2350 | Material = "Neon", | |
2351 | Color = C3(123, 0, 123), | |
2352 | SoundID = nil, | |
2353 | SoundPitch = MRANDOM(9, 12) / 10, | |
2354 | SoundVolume = 10 | |
2355 | }) | |
2356 | end | |
2357 | end | |
2358 | end | |
2359 | end | |
2360 | CHARGE = true | |
2361 | end | |
2362 | ||
2363 | function TP() | |
2364 | ATTACK = true | |
2365 | Rooted = true | |
2366 | coroutine.resume(coroutine.create(function() | |
2367 | Swait(38) | |
2368 | WACKYEFFECT({Time = 50, EffectType = "Crystal", Size = VT(30,30,30)*SIZE, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,1), SoundID = 289556450, SoundPitch = 0.96, SoundVolume = 10}) | |
2369 | end)) | |
2370 | for i = 1, 45 do | |
2371 | Swait() | |
2372 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2373 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2374 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2375 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2376 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2377 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2378 | end | |
2379 | local ORIGIN = RootPart.Position | |
2380 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,4,0),ORIGIN) | |
2381 | RootPart.Anchored = false | |
2382 | ATTACK = false | |
2383 | Rooted = false | |
2384 | end | |
2385 | ||
2386 | function VoidsSsnap() | |
2387 | ATTACK = true | |
2388 | Rooted = true | |
2389 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2390 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2391 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2392 | if TORSO then | |
2393 | local GYRO = IT("BodyGyro", RootPart) | |
2394 | GYRO.D = 750 | |
2395 | GYRO.P = 2000 | |
2396 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2397 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
2398 | Swait() | |
2399 | WACKYEFFECT({ | |
2400 | Time = 5, | |
2401 | EffectType = "Round Slash", | |
2402 | Size = VT(0, 0, 0), | |
2403 | Size2 = VT(0.01, 0, 0.01), | |
2404 | Transparency = 0.5, | |
2405 | Transparency2 = 1, | |
2406 | CFrame = CF(TT.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2407 | MoveToPos = nil, | |
2408 | RotationX = MRANDOM(-50, 50) / 10, | |
2409 | RotationY = MRANDOM(-50, 50) / 10, | |
2410 | RotationZ = MRANDOM(-50, 50) / 10, | |
2411 | Material = "Neon", | |
2412 | Color = C3(1, 0, 0), | |
2413 | SoundID = nil, | |
2414 | SoundPitch = nil, | |
2415 | SoundVolume = nil | |
2416 | }) | |
2417 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
2418 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2419 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2420 | 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) | |
2421 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2422 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2423 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
2424 | if ANIM == "Idle" then | |
2425 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2426 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2427 | elseif ANIM == "Walk" then | |
2428 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2429 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2430 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2431 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2432 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2433 | end | |
2434 | end | |
2435 | GYRO:remove() | |
2436 | for i = 0.4, 15 do | |
2437 | WACKYEFFECT({ | |
2438 | Time = MRANDOM(15, 85), | |
2439 | EffectType = "Sphere", | |
2440 | Size = VT(0, 0, 0), | |
2441 | Size2 = VT(0.3, 0, 0.3), | |
2442 | Transparency = 0.5, | |
2443 | Transparency2 = 1, | |
2444 | CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2445 | MoveToPos = nil, | |
2446 | RotationX = MRANDOM(-50, 50) / 10, | |
2447 | RotationY = MRANDOM(-50, 50) / 10, | |
2448 | RotationZ = MRANDOM(-50, 50) / 10, | |
2449 | Material = "Neon", | |
2450 | Color = C3(255, 0, 255), | |
2451 | SoundID = nil, | |
2452 | SoundPitch = nil, | |
2453 | SoundVolume = nil | |
2454 | }) | |
2455 | end | |
2456 | local bv = Instance.new("BodyVelocity") | |
2457 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2458 | bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5 | |
2459 | bv.Parent = TORSO | |
2460 | Debris:AddItem(bv, 0.05) | |
2461 | CreateSound("539792706", TORSO, 10, 1) | |
2462 | Dustify(HUM.Parent) | |
2463 | CreateSound("2231214507", Torso, 10, 1) | |
2464 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
2465 | Swait() | |
2466 | WACKYEFFECT({ | |
2467 | Time = 5, | |
2468 | EffectType = "Sphere", | |
2469 | Size = VT(0, 0, 0), | |
2470 | Size2 = VT(0.01, 0, 0.01), | |
2471 | Transparency = 0.5, | |
2472 | Transparency2 = 1, | |
2473 | CFrame = CF(TT.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2474 | MoveToPos = nil, | |
2475 | RotationX = MRANDOM(-50, 50) / 10, | |
2476 | RotationY = MRANDOM(-50, 50) / 10, | |
2477 | RotationZ = MRANDOM(-50, 50) / 10, | |
2478 | Material = "Neon", | |
2479 | Color = C3(255, 0, 255), | |
2480 | SoundID = nil, | |
2481 | SoundPitch = nil, | |
2482 | SoundVolume = nil | |
2483 | }) | |
2484 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
2485 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2486 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2487 | 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) | |
2488 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2489 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2490 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2491 | if ANIM == "Idle" then | |
2492 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2493 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2494 | elseif ANIM == "Walk" then | |
2495 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2496 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2497 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2498 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2499 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2500 | end | |
2501 | end | |
2502 | end | |
2503 | end | |
2504 | ATTACK = false | |
2505 | Rooted = false | |
2506 | end | |
2507 | ||
2508 | function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
2509 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
2510 | EFFECTPART.Anchored = true | |
2511 | EFFECTPART.CFrame = CFRAME | |
2512 | local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
2513 | game:GetService("Debris"):AddItem(EFFECTPART, 50) | |
2514 | coroutine.resume(coroutine.create(function(PART, MESH) | |
2515 | for i = 0, 1, delay do | |
2516 | Swait() | |
2517 | PART.CFrame = PART.CFrame * ROTATION | |
2518 | PART.Transparency = i | |
2519 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
2520 | end | |
2521 | PART.Parent = nil | |
2522 | end), EFFECTPART, EFFECTMESH) | |
2523 | end | |
2524 | ||
2525 | function NewEffect(cframe,name,colour,meshid,texture,scale) | |
2526 | local part = Instance.new("Part") | |
2527 | part.Size = Vector3.new(1,1,1) | |
2528 | part.CFrame = cframe | |
2529 | part.Name = "Part" | |
2530 | part.BrickColor = colour | |
2531 | part.Parent = Effects | |
2532 | part.Anchored = true | |
2533 | part.CanCollide = false | |
2534 | local emesh = Instance.new("SpecialMesh") | |
2535 | emesh.MeshId = meshid | |
2536 | emesh.TextureId = texture | |
2537 | emesh.Parent = part | |
2538 | emesh.Scale = scale | |
2539 | end | |
2540 | ||
2541 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
2542 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
2543 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
2544 | local BODYGYRO = IT("BodyGyro", STATPART) | |
2545 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
2546 | BODYPOSITION.P = 2000 | |
2547 | BODYPOSITION.D = 100 | |
2548 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
2549 | if LABELTYPE == "Normal" then | |
2550 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
2551 | elseif LABELTYPE == "Debuff" then | |
2552 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
2553 | elseif LABELTYPE == "Interruption" then | |
2554 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
2555 | end | |
2556 | game:GetService("Debris"):AddItem(STATPART ,5) | |
2557 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
2558 | BILLBOARDGUI.Adornee = STATPART | |
2559 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
2560 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
2561 | BILLBOARDGUI.AlwaysOnTop = false | |
2562 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
2563 | TEXTLABEL.BackgroundTransparency = 1 | |
2564 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
2565 | TEXTLABEL.Text = TEXT | |
2566 | TEXTLABEL.Font = "SourceSans" | |
2567 | TEXTLABEL.FontSize="Size42" | |
2568 | TEXTLABEL.TextColor3 = COLOR | |
2569 | TEXTLABEL.TextStrokeTransparency = 0 | |
2570 | TEXTLABEL.TextScaled = true | |
2571 | TEXTLABEL.TextWrapped = true | |
2572 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
2573 | wait(0.2) | |
2574 | for i=1, 5 do | |
2575 | wait() | |
2576 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
2577 | end | |
2578 | wait(1.2) | |
2579 | for i=1, 5 do | |
2580 | wait() | |
2581 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
2582 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
2583 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
2584 | end | |
2585 | THEPART.Parent = nil | |
2586 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
2587 | end | |
2588 | ||
2589 | function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT) | |
2590 | if LOCATION:FindFirstChild("Stats") ~= nil then | |
2591 | if LOCATION.Stats:FindFirstChild("Block") ~= nil then | |
2592 | if LOCATION.Stats:FindFirstChild("Block").Value == true then | |
2593 | return | |
2594 | end | |
2595 | end | |
2596 | if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then | |
2597 | local NewStatChange = IT("NumberValue") | |
2598 | NewStatChange.Value = AMOUNT | |
2599 | if STAT == "Defense" then | |
2600 | NewStatChange.Name = "ChangeDefense" | |
2601 | elseif STAT == "Damage" then | |
2602 | NewStatChange.Name = "ChangeDamage" | |
2603 | elseif STAT == "Movement" then | |
2604 | NewStatChange.Name = "ChangeMovement" | |
2605 | end | |
2606 | if SHOWTHESTAT == true then | |
2607 | if AMOUNT < 0 then | |
2608 | StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "-"..STAT, C3(1, 1, 1)) | |
2609 | elseif AMOUNT > 0 then | |
2610 | StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "+"..STAT, C3(1, 1, 1)) | |
2611 | end | |
2612 | end | |
2613 | if DURATION ~= nil and DURATION ~= 0 then | |
2614 | local StatDuration = IT("NumberValue") | |
2615 | StatDuration.Name = "Duration" | |
2616 | StatDuration.Value = DURATION | |
2617 | StatDuration.Parent = NewStatChange | |
2618 | end | |
2619 | NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat") | |
2620 | end | |
2621 | end | |
2622 | end | |
2623 | ||
2624 | vt=Vector3.new | |
2625 | cf=CFrame.new | |
2626 | euler=CFrame.fromEulerAnglesXYZ | |
2627 | angles=CFrame.Angles | |
2628 | ||
2629 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
2630 | local fp=Instance.new("Part") | |
2631 | fp.formFactor=formfactor | |
2632 | fp.Parent=parent | |
2633 | fp.Reflectance=reflectance | |
2634 | fp.Transparency=transparency | |
2635 | fp.CanCollide=false | |
2636 | fp.Locked=true | |
2637 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
2638 | fp.Name=name | |
2639 | fp.Size=size | |
2640 | fp.Position=Character.Torso.Position | |
2641 | fp.Material=material | |
2642 | fp:BreakJoints() | |
2643 | return fp | |
2644 | end | |
2645 | ||
2646 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
2647 | local mesh=Instance.new(Mesh) | |
2648 | mesh.Parent=part | |
2649 | if Mesh=="SpecialMesh" then | |
2650 | mesh.MeshType=meshtype | |
2651 | mesh.MeshId=meshid | |
2652 | end | |
2653 | mesh.Offset=offset | |
2654 | mesh.Scale=scale | |
2655 | return mesh | |
2656 | end | |
2657 | ||
2658 | function BreakEffect(brickcolor,cframe,x1,y1,z1,Color) | |
2659 | local prt=part("Custom",workspace,"Neon",0,0,Color,"Effect",vt(0.5,0.5,0.5)) | |
2660 | prt.Anchored=true | |
2661 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2662 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2663 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
2664 | CF=Part.CFrame | |
2665 | Numbb=0 | |
2666 | randnumb=math.random()-math.random() | |
2667 | for i=0,1,0.05 do | |
2668 | wait() | |
2669 | CF=CF*cf(0,1,0) | |
2670 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
2671 | Part.CFrame=CF*euler(Numbb,0,0) | |
2672 | Part.Transparency=i | |
2673 | Numbb=Numbb+randnumb | |
2674 | end | |
2675 | Part.Parent=nil | |
2676 | end),prt) | |
2677 | end | |
2678 | ||
2679 | --Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
2680 | function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT) | |
2681 | if HIT.Parent == nil then | |
2682 | return | |
2683 | end | |
2684 | local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid") | |
2685 | for _, v in pairs(HIT.Parent:GetChildren()) do | |
2686 | if v:IsA("Humanoid") then | |
2687 | HITHUMANOID = v | |
2688 | end | |
2689 | end | |
2690 | if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then | |
2691 | StaggerHit.Value = true | |
2692 | if Play_Hitbox_Hit_Sound == true then | |
2693 | if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then | |
2694 | CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH) | |
2695 | end | |
2696 | end | |
2697 | return | |
2698 | end | |
2699 | if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then | |
2700 | HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid") | |
2701 | end | |
2702 | if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then | |
2703 | HIT = HIT.Parent.Parent:FindFirstChild("Head") | |
2704 | end | |
2705 | if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then | |
2706 | if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then | |
2707 | if HIT.Parent.DebounceHit.Value == true then | |
2708 | return | |
2709 | end | |
2710 | end | |
2711 | if AntiTeamKill.Value == true then | |
2712 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then | |
2713 | if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then | |
2714 | return | |
2715 | end | |
2716 | end | |
2717 | end | |
2718 | if HITEVENWHENDEAD == false then | |
2719 | if HIT.Parent:FindFirstChild("Humanoid") ~= nil then | |
2720 | if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then | |
2721 | return | |
2722 | end | |
2723 | end | |
2724 | end | |
2725 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2726 | if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then | |
2727 | HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN | |
2728 | end | |
2729 | end | |
2730 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2731 | if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then | |
2732 | if STAGGER == true and Enable_Stagger == true then | |
2733 | HIT.Parent.Stats:FindFirstChild("Stagger").Value = true | |
2734 | end | |
2735 | end | |
2736 | end | |
2737 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2738 | if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then | |
2739 | if HIT.Parent.Stats:FindFirstChild("Block").Value == true then | |
2740 | HASBEENBLOCKED = true | |
2741 | if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then | |
2742 | StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255)) | |
2743 | if RANGED ~= true then | |
2744 | if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then | |
2745 | CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH) | |
2746 | end | |
2747 | end | |
2748 | local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block")) | |
2749 | BlockDebounce.Name = "BlockDebounce" | |
2750 | BlockDebounce.Value = true | |
2751 | if RANGED ~= true then | |
2752 | game:GetService("Debris"):AddItem(BlockDebounce, 0.5) | |
2753 | else | |
2754 | game:GetService("Debris"):AddItem(BlockDebounce, 0.1) | |
2755 | end | |
2756 | end | |
2757 | if RANGED ~= true and Enable_Stagger == true then | |
2758 | HIT.Parent.Stats:FindFirstChild("Block").Value = false | |
2759 | Stagger.Value = true | |
2760 | end | |
2761 | return | |
2762 | end | |
2763 | end | |
2764 | end | |
2765 | if DECREASETHESTAT ~= nil then | |
2766 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2767 | IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT) | |
2768 | end | |
2769 | end | |
2770 | local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value | |
2771 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2772 | if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then | |
2773 | if CanPenetrateArmor.Value == true then | |
2774 | DAMAGE = DAMAGE | |
2775 | else | |
2776 | DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value | |
2777 | end | |
2778 | elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then | |
2779 | DAMAGE = DAMAGE | |
2780 | end | |
2781 | end | |
2782 | if CanCrit.Value == true then | |
2783 | CRITCHANCENUMBER = MRANDOM(1, CritChance.Value) | |
2784 | if CRITCHANCENUMBER == 1 then | |
2785 | DAMAGE = DAMAGE * 2 | |
2786 | end | |
2787 | end | |
2788 | DAMAGE = math.floor(DAMAGE) | |
2789 | if DAMAGE <= 3 and HASBEENBLOCKED == false then | |
2790 | if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then | |
2791 | StaggerHit.Value = true | |
2792 | end | |
2793 | if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then | |
2794 | end | |
2795 | elseif DAMAGE > 3 and DAMAGE < 100 and HASBEENBLOCKED == false then | |
2796 | if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then | |
2797 | end | |
2798 | end | |
2799 | if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then | |
2800 | HITHUMANOID.MaxHealth = 100 | |
2801 | HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE | |
2802 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
2803 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0)) | |
2804 | else | |
2805 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 220/255, 0)) | |
2806 | end | |
2807 | elseif DAMAGE >= 20 and DAMAGE < 100 and HASBEENBLOCKED == false then | |
2808 | HITHUMANOID.MaxHealth = 100 | |
2809 | HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE | |
2810 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
2811 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0)) | |
2812 | else | |
2813 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 0, 0)) | |
2814 | end | |
2815 | elseif DAMAGE == 100 then | |
2816 | local part = Instance.new("Part") | |
2817 | part.Anchored = true | |
2818 | part.CanCollide = false | |
2819 | part.Transparency = 1 | |
2820 | part.CFrame = HIT.CFrame | |
2821 | part.Parent = Effects | |
2822 | game:GetService("Debris"):AddItem(part, 5) | |
2823 | for i = 1, 15 do | |
2824 | BreakEffect(BrickColor.new("Black"),part.CFrame,0.5,math.random(5,20),0.5,BrickColor.new("Really red")) | |
2825 | end | |
2826 | CreateSound("215395073", part, 1, 1) | |
2827 | StatLabel("Normal", part.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Erased", C3(225/255, 0/255, 0/255)) | |
2828 | HIT.Parent:remove() | |
2829 | elseif DAMAGE == 0 then | |
2830 | CreateSound("260433557", HIT, 1, 1) | |
2831 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Jammed", C3(0/255, 0/255, 0/255)) | |
2832 | h = HIT.Parent:GetChildren() | |
2833 | for i = 1, #h do | |
2834 | if h[i].ClassName == "Part" then | |
2835 | h[i].Anchored = true | |
2836 | elseif h[i].ClassName == "Script" then | |
2837 | h[i]:Destroy() | |
2838 | end | |
2839 | end | |
2840 | elseif DAMAGE == 1 then | |
2841 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Vitalized", C3(0/255, 255/255, 0/255)) | |
2842 | HITHUMANOID.MaxHealth = "inf" | |
2843 | HITHUMANOID.Health = "inf" | |
2844 | for i = 1, 5 do | |
2845 | BreakEffect(BrickColor.new("Black"),HIT.CFrame,0.5,math.random(5,20),0.5,BrickColor.new("Lime green")) | |
2846 | end | |
2847 | elseif DAMAGE == 2 then | |
2848 | if game.Players:FindFirstChild(HIT.Parent.Name) then | |
2849 | local granted = script:Clone() | |
2850 | HITHUMANOID.MaxHealth = "inf" | |
2851 | HITHUMANOID.Health = "inf" | |
2852 | g = Instance.new("Folder") | |
2853 | g.Parent = HIT.Parent | |
2854 | g.Name = "Granted" | |
2855 | granted.Parent = HIT.Parent.Torso | |
2856 | granted.Disabled = false | |
2857 | CreateSound("3264923", HIT, 1, 1) | |
2858 | CreateSound("814168787", HIT, 1, 1) | |
2859 | end | |
2860 | end | |
2861 | if TYPE == "Normal" then | |
2862 | local vp = IT("BodyVelocity") | |
2863 | vp.P=500 | |
2864 | vp.maxForce = VT(math.huge, 0, math.huge) | |
2865 | if KNOCKBACKTYPE == 1 then | |
2866 | vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05 | |
2867 | elseif KNOCKBACKTYPE == 2 then | |
2868 | vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK | |
2869 | end | |
2870 | if KNOCKBACK > 0 and HASBEENBLOCKED == false then | |
2871 | vp.Parent = HIT--.Parent.Torso | |
2872 | end | |
2873 | game:GetService("Debris"):AddItem(vp, 0.5) | |
2874 | end | |
2875 | HASBEENBLOCKED = false | |
2876 | RecentEnemy.Value = HIT.Parent | |
2877 | local DebounceHit = IT("BoolValue", HIT.Parent) | |
2878 | DebounceHit.Name = "DebounceHit" | |
2879 | DebounceHit.Value = true | |
2880 | game:GetService("Debris"):AddItem(DebounceHit, DELAY) | |
2881 | end | |
2882 | end | |
2883 | ||
2884 | --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
2885 | function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT) | |
2886 | for _, c in pairs(workspace:GetChildren()) do | |
2887 | local HUMANOID = c:FindFirstChild("Humanoid") | |
2888 | local HEAD = nil | |
2889 | if HUMANOID ~= nil then | |
2890 | for _, d in pairs(c:GetChildren()) do | |
2891 | if d.ClassName == "Model" and RANGED ~= true then | |
2892 | HEAD = d:FindFirstChild("Hitbox") | |
2893 | if HEAD ~= nil then | |
2894 | local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude | |
2895 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
2896 | if Play_Hitbox_Hit_Sound == true then | |
2897 | local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
2898 | HitRefpart.Anchored = true | |
2899 | HitRefpart.CFrame = CF(HEAD.Position) | |
2900 | CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH) | |
2901 | end | |
2902 | if Enable_Stagger_Hit == true then | |
2903 | StaggerHit.Value = true | |
2904 | end | |
2905 | end | |
2906 | end | |
2907 | elseif d:IsA"BasePart" then | |
2908 | HEAD = d | |
2909 | if HEAD ~= nil then | |
2910 | local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude | |
2911 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
2912 | DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT) | |
2913 | end | |
2914 | end | |
2915 | end | |
2916 | end | |
2917 | end | |
2918 | end | |
2919 | end | |
2920 | ||
2921 | function VoidErase() | |
2922 | ATTACK = true | |
2923 | for i=0, 1, 0.1 / Animation_Speed do | |
2924 | Swait() | |
2925 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2926 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2927 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2928 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2929 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2930 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2931 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2932 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2933 | break | |
2934 | end | |
2935 | end | |
2936 | CreateSound("971126018",Head, 1.2, MRANDOM(7, 9) / 10) | |
2937 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
2938 | Swait() | |
2939 | local Pos = HitboxPart | |
2940 | local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0) | |
2941 | local Color = "Really black" | |
2942 | local Material = "Neon" | |
2943 | local TheDelay = 0.01 | |
2944 | local Height = 6.2 * Player_Size | |
2945 | BLCF = Offset | |
2946 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2947 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2948 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2949 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2950 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2951 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2952 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2953 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2954 | break | |
2955 | end | |
2956 | local FIREEFFECTCOLORS = {"Royal purple", "Really black"} | |
2957 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 30, false, 100, 100,-5, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false) | |
2958 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2959 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065) | |
2960 | --MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1) | |
2961 | end | |
2962 | BLCF = nil | |
2963 | SCFR = nil | |
2964 | ATTACK = false | |
2965 | end | |
2966 | ||
2967 | function yeetus() | |
2968 | print("This aint done yet boi") | |
2969 | end | |
2970 | ||
2971 | local okiy = math.random(1,1) | |
2972 | if okiy == 1 then | |
2973 | chatfunc("hi") | |
2974 | end | |
2975 | ||
2976 | --><Assign Things To Keys | |
2977 | ||
2978 | function MouseDown(Mouse) | |
2979 | if ATTACK == false then | |
2980 | end | |
2981 | end | |
2982 | ||
2983 | function MouseUp(Mouse) | |
2984 | HOLD = false | |
2985 | end | |
2986 | ||
2987 | function KeyDown(Key) | |
2988 | KEYHOLD = true | |
2989 | if Key == "z" and ATTACK == false then | |
2990 | VoidJump() | |
2991 | end | |
2992 | if Key == "x" and ATTACK == false then | |
2993 | VoidGround() | |
2994 | end | |
2995 | if Key == "c" and ATTACK == false then | |
2996 | VoidErase() | |
2997 | end | |
2998 | if Key == "e" and ATTACK == false then | |
2999 | TP() | |
3000 | end | |
3001 | if Key == "r" and ATTACK == false then | |
3002 | VoidsSsnap() | |
3003 | end | |
3004 | if Key == "v" and ATTACK == false then | |
3005 | VoidBurn() | |
3006 | end | |
3007 | if Key == "m" and ATTACK == false then | |
3008 | TheRift() | |
3009 | end | |
3010 | if Key == "f" and ATTACK == false then | |
3011 | THE_END() | |
3012 | end | |
3013 | if Key == "q" and ATTACK == false then | |
3014 | kaboom() | |
3015 | end | |
3016 | end | |
3017 | function KeyUp(Key) | |
3018 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
3019 | KEYHOLD = false | |
3020 | end | |
3021 | end | |
3022 | ||
3023 | Mouse.Button1Down:connect(function(NEWKEY) | |
3024 | MouseDown(NEWKEY) | |
3025 | end) | |
3026 | Mouse.Button1Up:connect(function(NEWKEY) | |
3027 | MouseUp(NEWKEY) | |
3028 | end) | |
3029 | Mouse.KeyDown:connect(function(NEWKEY) | |
3030 | KeyDown(NEWKEY) | |
3031 | end) | |
3032 | Mouse.KeyUp:connect(function(NEWKEY) | |
3033 | KeyUp(NEWKEY) | |
3034 | end) | |
3035 | ||
3036 | --><:Thonkering: | |
3037 | function unanchor() | |
3038 | if UNANCHOR == true then | |
3039 | g = Character:GetChildren() | |
3040 | for i = 1, #g do | |
3041 | if g[i].ClassName == "Part" then | |
3042 | g[i].Anchored = false | |
3043 | end | |
3044 | end | |
3045 | end | |
3046 | end | |
3047 | ||
3048 | ||
3049 | --><Wrap The Script | |
3050 | Humanoid.Changed:connect(function(Jump) | |
3051 | if Jump == "Jump" and (Disable_Jump == true) then | |
3052 | Humanoid.Jump = false | |
3053 | end | |
3054 | end) | |
3055 | ||
3056 | while true do | |
3057 | Swait() | |
3058 | script.Parent = WEAPONGUI | |
3059 | ANIMATE.Parent = nil | |
3060 | if Humanoid then | |
3061 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3062 | IDLEANIMATION:Play() | |
3063 | end | |
3064 | SINE = SINE + CHANGE | |
3065 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3066 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3067 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
3068 | EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
3069 | EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed) | |
3070 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 24) | |
3071 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
3072 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3073 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3074 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) | |
3075 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) | |
3076 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
3077 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3078 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3079 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3080 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3081 | end | |
3082 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3083 | ANIM = "Jump" | |
3084 | if ATTACK == false then | |
3085 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3086 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3087 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3088 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3089 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3090 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3091 | end | |
3092 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3093 | ANIM = "Fall" | |
3094 | if ATTACK == false then | |
3095 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3096 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3097 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3098 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3099 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3100 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3101 | end | |
3102 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3103 | ANIM = "Idle" | |
3104 | if ATTACK == false then | |
3105 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3106 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3107 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3108 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3109 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3110 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3111 | end | |
3112 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3113 | ANIM = "Walk" | |
3114 | if ATTACK == false then | |
3115 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
3116 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
3117 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed) | |
3118 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.8 / Animation_Speed) | |
3119 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
3120 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
3121 | end | |
3122 | end | |
3123 | SKILL1TEXT.Rotation = math.random(-3,3) | |
3124 | SKILL2TEXT.Rotation = math.random(-3,3) | |
3125 | SKILL3TEXT.Rotation = math.random(-3,3) | |
3126 | SKILL4TEXT.Rotation = math.random(-3,3) | |
3127 | SKILL5TEXT.Rotation = math.random(-3,3) | |
3128 | SKILL6TEXT.Rotation = math.random(-3,3) | |
3129 | SKILL7TEXT.Rotation = math.random(-3,3) | |
3130 | SKILL8TEXT.Rotation = math.random(-3,3) | |
3131 | SKILL9TEXT.Rotation = math.random(-3,3) | |
3132 | SKILL1TEXT.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
3133 | SKILL2TEXT.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
3134 | SKILL3TEXT.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
3135 | SKILL4TEXT.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
3136 | SKILL5TEXT.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
3137 | SKILL6TEXT.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
3138 | SKILL7TEXT.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
3139 | SKILL8TEXT.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
3140 | SKILL9TEXT.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
3141 | unanchor() | |
3142 | Humanoid.MaxHealth = "inf" | |
3143 | Humanoid.Health = "inf" | |
3144 | if Rooted == false then | |
3145 | Disable_Jump = false | |
3146 | Humanoid.WalkSpeed = Speed | |
3147 | elseif Rooted == true then | |
3148 | Disable_Jump = true | |
3149 | Humanoid.WalkSpeed = 0 | |
3150 | end | |
3151 | - | if ATTACK == false and Player.Name == "Galaxy_Master8712" then |
3151 | + | if ATTACK == false and Player.Name == "silver22352" then |
3152 | local thanoschin = Slice("Thin",1,15,CF(Torso.Position) * CF(MRANDOM(-1,1),MRANDOM(-6,6),MRANDOM(-1,1)) * ANGLES(RAD(-10,10),RAD(MRANDOM(-180,180)),RAD(-10,10)),SKILLTEXTCOLOR,VT(-0.2,0,-0.2)) | |
3153 | end | |
3154 | MagicSphere1(VT(1,1,1)/5,35,CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),Color3.new(1,0,1),VT(0,0,0)) | |
3155 | refit() | |
3156 | sick.SoundId = "rbxassetid://1464474710" | |
3157 | sick.Looped = true | |
3158 | sick.Pitch = 1 | |
3159 | sick.Volume = 3 | |
3160 | sick.Playing = true | |
3161 | if sick.Parent ~= RootPart then | |
3162 | sick = IT("Sound",RootPart) | |
3163 | end | |
3164 | local d = Character:FindFirstChild("FZcharge3") | |
3165 | if d then | |
3166 | d.Color = ColorSequence.new(Color3.new(1,0,1)) | |
3167 | end | |
3168 | end | |
3169 | ||
3170 | ----------------------------------- | |
3171 | ||
3172 | -------------------|| | |
3173 | --------------------\\ | |
3174 | --||||||||||]]]]]]]]]\\ | |
3175 | ---------------------\\\\\\\\\\\\\\\\\\\\ | |
3176 | --END OF EDIT BY InfiniteOneWithdank|]]>> | |
3177 | ---------------------//////////////////// | |
3178 | --||||||||||]]]]]]]]]// | |
3179 | --------------------// | |
3180 | -------------------|| |