SHOW:
|
|
- or go back to the newest paste.
1 | - | script.Name = "Burning Hope xd!11" |
1 | + | print("Making ServerScript") |
2 | local Remote = NS([[ | |
3 | - | --|| EDITED BY INFINITEONEWITHDANK CREATED BY SHACKLUSTER |
3 | + | |
4 | - | --\\====================================================//-- |
4 | + | |
5 | Player = owner | |
6 | - | print("Load Finished") |
6 | + | |
7 | - | print("Edited By InfiniteOneWithdank Hello User") |
7 | + | |
8 | - | print("=====| 100 Percent Done Version |=====") |
8 | + | |
9 | - | print(">=Updates") |
9 | + | |
10 | - | print("!=Big Changes") |
10 | + | |
11 | - | print("*=Small Changes") |
11 | + | Mouse = Player:GetMouse() |
12 | - | print("!Made Bullets Colorful in fact almost all effects are colorful now") |
12 | + | |
13 | - | print(">Gun is now a rainbow color") |
13 | + | |
14 | - | print("*Changed Fire Size by 1") |
14 | + | |
15 | - | print("*Changed Taunts/Voices A Bit") |
15 | + | |
16 | - | print(">Added Wave Emote when u click") |
16 | + | |
17 | - | print(">Added in intro text") |
17 | + | |
18 | - | print(">Added New Smexy moves") |
18 | + | |
19 | - | warn("Make Them All Suffer For Their Sins") |
19 | + | |
20 | - | warn("In Fact Make them Burn") |
20 | + | |
21 | RightShoulder = Torso["Right Shoulder"] | |
22 | LeftShoulder = Torso["Left Shoulder"] | |
23 | - | script:ClearAllChildren() |
23 | + | |
24 | LeftHip = Torso["Left Hip"] | |
25 | local TIME = 0 | |
26 | - | Player = game:GetService("Players").Saiyan_Savages |
26 | + | |
27 | ||
28 | IT = Instance.new | |
29 | CF = CFrame.new | |
30 | VT = Vector3.new | |
31 | RAD = math.rad | |
32 | C3 = Color3.new | |
33 | UD2 = UDim2.new | |
34 | BRICKC = BrickColor.new | |
35 | ANGLES = CFrame.Angles | |
36 | EULER = CFrame.fromEulerAnglesXYZ | |
37 | COS = math.cos | |
38 | ACOS = math.acos | |
39 | SIN = math.sin | |
40 | ASIN = math.asin | |
41 | ABS = math.abs | |
42 | MRANDOM = math.random | |
43 | FLOOR = math.floor | |
44 | local RWINGS = {} | |
45 | local LWINGS = {} | |
46 | local GunPoint | |
47 | Player_Size = 1 | |
48 | ||
49 | -- Thingy To Make Song Work | |
50 | ||
51 | p = game.Players.LocalPlayer | |
52 | char = p.Character | |
53 | ||
54 | ---------------------------[[[ LOOPED SONG ]]]-------------------------- | |
55 | local s = Instance.new("Sound",char) | |
56 | s.Name = "BGMusic" | |
57 | s.SoundId = "rbxassetid://184555855" | |
58 | s.Pitch = 1 | |
59 | s.Volume = 40 | |
60 | s.Looped = true | |
61 | s.archivable = false | |
62 | s.Parent = char.Head | |
63 | wait(0.1) | |
64 | s:play() | |
65 | ||
66 | -- Rest of Script | |
67 | -- Want To Use This For Scripts With No Songs? Go Ahead Copy This InfiniteOneWithdank created the looped song thing that is in here anyways. | |
68 | ||
69 | --//=================================\\ | |
70 | --|| PARTICLES N STUFF | |
71 | - | p = game.Players.Saiyan_Savages |
71 | + | |
72 | ||
73 | local particleemitter = Instance.new('ParticleEmitter', LeftArm) | |
74 | particleemitter.VelocitySpread = 350 | |
75 | particleemitter.Lifetime = NumberRange.new(1) | |
76 | particleemitter.Speed = NumberRange.new(0) | |
77 | cringememe= {} | |
78 | for i=0, 19 do | |
79 | cringememe[#cringememe + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
80 | end | |
81 | particleemitter.Size = NumberSequence.new(cringememe) | |
82 | particleemitter.Rate = 20 | |
83 | particleemitter.LockedToPart = true | |
84 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
85 | particleemitter.LightEmission = 1 | |
86 | particleemitter.Texture = "rbxassetid://38727848" | |
87 | particleemitter.Color = ColorSequence.new(BrickColor.new("Really black").Color) | |
88 | ||
89 | local particleemitter = Instance.new('ParticleEmitter', Torso) | |
90 | particleemitter.VelocitySpread = 250 | |
91 | particleemitter.Lifetime = NumberRange.new(3) | |
92 | particleemitter.Speed = NumberRange.new(1.5) | |
93 | youAreATHOT = {} | |
94 | for i=0, 19 do | |
95 | youAreATHOT[#youAreATHOT + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
96 | end | |
97 | particleemitter.Size = NumberSequence.new(youAreATHOT) | |
98 | particleemitter.Rate = 10 | |
99 | particleemitter.LockedToPart = false | |
100 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
101 | particleemitter.LightEmission = 1 | |
102 | particleemitter.Texture = "rbxassetid://253188763" | |
103 | particleemitter.Color = ColorSequence.new(BrickColor.new("Lime green").Color) | |
104 | ||
105 | local particleemitter = Instance.new('ParticleEmitter', RightArm) | |
106 | particleemitter.VelocitySpread = 350 | |
107 | particleemitter.Lifetime = NumberRange.new(1) | |
108 | particleemitter.Speed = NumberRange.new(0) | |
109 | cringememe2= {} | |
110 | for i=0, 19 do | |
111 | cringememe2[#cringememe2 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
112 | end | |
113 | particleemitter.Size = NumberSequence.new(cringememe2) | |
114 | particleemitter.Rate = 20 | |
115 | particleemitter.LockedToPart = true | |
116 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
117 | particleemitter.LightEmission = 1 | |
118 | particleemitter.Texture = "rbxassetid://38727848" | |
119 | particleemitter.Color = ColorSequence.new(BrickColor.new("Really black").Color) | |
120 | ||
121 | local particleemitter = Instance.new('ParticleEmitter', RightLeg) | |
122 | particleemitter.VelocitySpread = 350 | |
123 | particleemitter.Lifetime = NumberRange.new(1) | |
124 | particleemitter.Speed = NumberRange.new(0) | |
125 | cringememe3= {} | |
126 | for i=0, 19 do | |
127 | cringememe3[#cringememe3 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
128 | end | |
129 | particleemitter.Size = NumberSequence.new(cringememe3) | |
130 | particleemitter.Rate = 30 | |
131 | particleemitter.LockedToPart = true | |
132 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
133 | particleemitter.LightEmission = 1 | |
134 | particleemitter.Texture = "rbxassetid://38727848" | |
135 | particleemitter.Color = ColorSequence.new(BrickColor.new("Really black").Color) | |
136 | ||
137 | local particleemitter = Instance.new('ParticleEmitter', LeftLeg) | |
138 | particleemitter.VelocitySpread = 350 | |
139 | particleemitter.Lifetime = NumberRange.new(1) | |
140 | particleemitter.Speed = NumberRange.new(0) | |
141 | cringememe4= {} | |
142 | for i=0, 19 do | |
143 | cringememe4[#cringememe4 + 1] = NumberSequenceKeypoint.new(i/19, math.random(1, 1)) | |
144 | end | |
145 | particleemitter.Size = NumberSequence.new(cringememe4) | |
146 | particleemitter.Rate = 30 | |
147 | particleemitter.LockedToPart = true | |
148 | particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)}) | |
149 | particleemitter.LightEmission = 1 | |
150 | particleemitter.Texture = "rbxassetid://38727848" | |
151 | particleemitter.Color = ColorSequence.new(BrickColor.new("Really black").Color) | |
152 | ||
153 | --//=================================\\ | |
154 | --|| USEFUL VALUES | |
155 | --\\=================================// | |
156 | ||
157 | Animation_Speed = 1.5 | |
158 | local FORCERESET = false | |
159 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
160 | local Speed = 16 | |
161 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
162 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
163 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
164 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
165 | local DAMAGEMULTIPLIER = 1 | |
166 | local ANIM = "Idle" | |
167 | local ATTACK = false | |
168 | local EQUIPPED = false | |
169 | local HOLD = false | |
170 | local COMBO = 1 | |
171 | local Rooted = false | |
172 | local SINE = 0 | |
173 | local KEYHOLD = false | |
174 | local CHANGE = 2 / Animation_Speed | |
175 | local WALKINGANIM = false | |
176 | local VALUE1 = false | |
177 | local VALUE2 = false | |
178 | local ROBLOXIDLEANIMATION = IT("Animation") | |
179 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
180 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
181 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
182 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
183 | WEAPONGUI.Name = "BanishV3Gui" | |
184 | local Weapon = IT("Model") | |
185 | Weapon.Name = "Adds" | |
186 | local Effects = IT("Folder", Weapon) | |
187 | Effects.Name = "Effects" | |
188 | local ANIMATOR = Humanoid.Animator | |
189 | local ANIMATE = Character:FindFirstChild("Animate") | |
190 | local UNANCHOR = true | |
191 | local TOBANISH = {} | |
192 | script.Parent = PlayerGui | |
193 | ||
194 | function StatLabel(CFRAME, TEXT, COLOR) | |
195 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
196 | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) | |
197 | local BODYGYRO = IT("BodyGyro", STATPART) | |
198 | game:GetService("Debris"):AddItem(STATPART ,5) | |
199 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
200 | BILLBOARDGUI.Adornee = STATPART | |
201 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
202 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
203 | BILLBOARDGUI.AlwaysOnTop = false | |
204 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
205 | TEXTLABEL.BackgroundTransparency = 1 | |
206 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
207 | TEXTLABEL.Text = TEXT | |
208 | TEXTLABEL.Font = SKILLFONT | |
209 | TEXTLABEL.FontSize="Size42" | |
210 | TEXTLABEL.TextColor3 = COLOR | |
211 | TEXTLABEL.TextStrokeTransparency = 0 | |
212 | TEXTLABEL.TextScaled = true | |
213 | TEXTLABEL.TextWrapped = true | |
214 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
215 | for i = 1, 50 do | |
216 | Swait() | |
217 | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) | |
218 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) | |
219 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
220 | end | |
221 | THEPART.Parent = nil | |
222 | end),STATPART, TEXTLABEL) | |
223 | end | |
224 | ||
225 | --//=================================\\ | |
226 | --\\=================================// | |
227 | ||
228 | ||
229 | --//=================================\\ | |
230 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
231 | --\\=================================// | |
232 | ||
233 | ArtificialHB = Instance.new("BindableEvent", script) | |
234 | ArtificialHB.Name = "ArtificialHB" | |
235 | ||
236 | script:WaitForChild("ArtificialHB") | |
237 | ||
238 | frame = Frame_Speed | |
239 | tf = 0 | |
240 | allowframeloss = false | |
241 | tossremainder = false | |
242 | lastframe = tick() | |
243 | script.ArtificialHB:Fire() | |
244 | ||
245 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
246 | tf = tf + s | |
247 | if tf >= frame then | |
248 | if allowframeloss then | |
249 | script.ArtificialHB:Fire() | |
250 | lastframe = tick() | |
251 | else | |
252 | for i = 1, math.floor(tf / frame) do | |
253 | script.ArtificialHB:Fire() | |
254 | end | |
255 | lastframe = tick() | |
256 | end | |
257 | if tossremainder then | |
258 | tf = 0 | |
259 | else | |
260 | tf = tf - frame * math.floor(tf / frame) | |
261 | end | |
262 | end | |
263 | end) | |
264 | ||
265 | --//=================================\\ | |
266 | --\\=================================// | |
267 | ||
268 | --//=================================\\ | |
269 | --|| SOME TAG EDIT | |
270 | --\\=================================// | |
271 | ||
272 | m = game.Players.LocalPlayer | |
273 | char = m.Character | |
274 | local txt = Instance.new("BillboardGui", char) | |
275 | txt.Adornee = char.Head | |
276 | txt.Name = "_status" | |
277 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
278 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
279 | local text = Instance.new("TextLabel", txt) | |
280 | text.Size = UDim2.new(10, 0, 7, 0) | |
281 | text.FontSize = "Size24" | |
282 | text.TextScaled = true | |
283 | text.TextTransparency = 0 | |
284 | text.BackgroundTransparency = 1 | |
285 | text.TextTransparency = 0 | |
286 | text.TextStrokeTransparency = 0 | |
287 | text.Font = "Bodoni" | |
288 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
289 | v = Instance.new("Part") | |
290 | v.Name = "ColorBrick" | |
291 | v.Parent = m.Character | |
292 | v.FormFactor = "Symmetric" | |
293 | v.Anchored = true | |
294 | v.CanCollide = false | |
295 | v.BottomSurface = "Smooth" | |
296 | v.TopSurface = "Smooth" | |
297 | v.Size = Vector3.new(10, 5, 3) | |
298 | v.Transparency = 1 | |
299 | v.CFrame = char.Torso.CFrame | |
300 | v.BrickColor = BrickColor.new("Really black") | |
301 | v.Transparency = 1 | |
302 | v.Shape = "Block" | |
303 | spawn(function() | |
304 | local TweenService = game:GetService("TweenService") | |
305 | local Colours = {Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,0,0),Color3.fromRGB(0,0,0),Color3.fromRGB(0,0,0),Color3.fromRGB(0,0,0)} | |
306 | local Int = 0 | |
307 | while wait(0.5) do | |
308 | if Int == #Colours then Int = 0 end | |
309 | Int = Int+1 | |
310 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
311 | end | |
312 | end) | |
313 | text.Text = "I was TESTED on. Like I Was Not HUMAN" | |
314 | wait(3) | |
315 | text.Text = "I Was... Called A mistake, But I Learned How To Take..." | |
316 | wait(3) | |
317 | text.Text = "I Finally Get My Revenge" | |
318 | wait(4) | |
319 | text.Text = "Project 0" | |
320 | ||
321 | --//=================================\\ | |
322 | --\\=================================// | |
323 | ||
324 | --//=================================\\ | |
325 | --|| SOME FUNCTIONS | |
326 | --\\=================================// | |
327 | ||
328 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
329 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
330 | end | |
331 | ||
332 | function PositiveAngle(NUMBER) | |
333 | if NUMBER >= 0 then | |
334 | NUMBER = 0 | |
335 | end | |
336 | return NUMBER | |
337 | end | |
338 | ||
339 | function NegativeAngle(NUMBER) | |
340 | if NUMBER <= 0 then | |
341 | NUMBER = 0 | |
342 | end | |
343 | return NUMBER | |
344 | end | |
345 | ||
346 | function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW) | |
347 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
348 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
349 | wave.CFrame = CFRAME | |
350 | coroutine.resume(coroutine.create(function(PART) | |
351 | for i = 1, WAIT do | |
352 | Swait() | |
353 | mesh.Scale = mesh.Scale + GROW | |
354 | mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8)) | |
355 | if DOESROT == true then | |
356 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
357 | end | |
358 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
359 | if wave.Transparency > 0.99 then | |
360 | wave:remove() | |
361 | end | |
362 | end | |
363 | end)) | |
364 | end | |
365 | ||
366 | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) | |
367 | for _, c in pairs(PARENT:GetChildren()) do | |
368 | if c.ClassName == "Model" then | |
369 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then | |
370 | local HUMANOID = c:FindFirstChildOfClass("Humanoid") | |
371 | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") | |
372 | if DIST > (TORSO.Position - FROM).Magnitude then | |
373 | table.insert(TABLE, c) | |
374 | end | |
375 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
376 | elseif c.ClassName == "Folder" then | |
377 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
378 | end | |
379 | end | |
380 | end | |
381 | end | |
382 | ||
383 | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
384 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
385 | local mesh | |
386 | if KIND == "Base" then | |
387 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) | |
388 | elseif KIND == "Thin" then | |
389 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
390 | elseif KIND == "Round" then | |
391 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
392 | end | |
393 | wave.CFrame = CFRAME | |
394 | coroutine.resume(coroutine.create(function(PART) | |
395 | for i = 1, WAIT do | |
396 | Swait() | |
397 | mesh.Scale = mesh.Scale + GROW / 10 | |
398 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
399 | if wave.Transparency > 0.99 then | |
400 | wave:remove() | |
401 | end | |
402 | end | |
403 | end)) | |
404 | end | |
405 | ||
406 | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) | |
407 | - | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1339914843", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) |
407 | + | |
408 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
409 | - | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1339914843", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) |
409 | + | |
410 | coroutine.resume(coroutine.create(function(PART) | |
411 | - | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1339914843", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) |
411 | + | |
412 | Swait() | |
413 | mesh.Scale = mesh.Scale + GROW | |
414 | wave.Transparency = wave.Transparency + 1 / WAIT | |
415 | if wave.Transparency > 0.99 then | |
416 | wave:remove() | |
417 | end | |
418 | end | |
419 | end)) | |
420 | end | |
421 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
422 | local TORSO = Torso | |
423 | local HUM = Humanoid | |
424 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
425 | coroutine.wrap(function() | |
426 | VT = Vector3.new | |
427 | MRANDOM = math.random | |
428 | local A = TIME | |
429 | local B = INTENSITY | |
430 | local C = true | |
431 | local HUMANOID = Humanoid | |
432 | local TIMER = A or 35 | |
433 | local SHAKE = B or 5 | |
434 | local FADE = C or true | |
435 | if HUMANOID then | |
436 | local FADER = SHAKE / TIMER | |
437 | for i = 1, TIMER do | |
438 | wait() | |
439 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
440 | end | |
441 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
442 | end | |
443 | ||
444 | end)() | |
445 | end | |
446 | end | |
447 | ||
448 | function Effect(data) | |
449 | local FX = data.Effect or 'ResizeAndFade' | |
450 | local Parent = data.Parent or Effects | |
451 | local Color = data.Color or C3.N(0,0,0) | |
452 | local Size = data.Size or V3.N(1,1,1) | |
453 | local MoveDir = data.MoveDirection or nil | |
454 | local MeshData = data.Mesh or nil | |
455 | local SndData = data.Sound or nil | |
456 | local Frames = data.Frames or 45 | |
457 | local Manual = data.Manual or nil | |
458 | local Material = data.Material or nil | |
459 | local CFra = data.CFrame or Torso.CFrame | |
460 | local Settings = data.FXSettings or {} | |
461 | local Snd,Prt,Msh; | |
462 | local Shape = data.Shape or Enum.PartType.Block | |
463 | coroutine.resume(coroutine.create(function() | |
464 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
465 | Prt = Manual | |
466 | else | |
467 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
468 | Prt.Shape = Shape | |
469 | end | |
470 | if(typeof(MeshData) == 'table')then | |
471 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
472 | elseif(typeof(MeshData) == 'Instance')then | |
473 | Msh = MeshData:Clone() | |
474 | Msh.Parent = Prt | |
475 | elseif(Shape == Enum.PartType.Block)then | |
476 | Msh = Mesh(Prt,Enum.MeshType.Brick) | |
477 | end | |
478 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
479 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
480 | end | |
481 | if(Snd)then | |
482 | repeat wait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
483 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
484 | end | |
485 | local MoveSpeed = nil; | |
486 | if(MoveDir)then | |
487 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
488 | end | |
489 | local Inc = M.RNG()-M.RNG() | |
490 | local Thingie = 0 | |
491 | local Thingie2 = M.RNG(50,100)/100 | |
492 | if(FX ~= 'Arc')then | |
493 | for i = 1, Frames do | |
494 | if(swait and typeof(swait) == 'function')then | |
495 | swait() | |
496 | else | |
497 | wait() | |
498 | end | |
499 | if(FX == 'ResizeAndFade')then | |
500 | if(not Settings.EndSize)then | |
501 | Settings.EndSize = V3.N(0,0,0) | |
502 | end | |
503 | local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize+Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize)) | |
504 | if(Settings.EndIsIncrement)then | |
505 | Prt.Size = Prt.Size + Settings.EndSize | |
506 | else | |
507 | Prt.Size = Prt.Size - grow/Frames | |
508 | end | |
509 | Prt.Transparency = (i/Frames) | |
510 | elseif(FX == 'Fade')then | |
511 | Prt.Transparency = (i/Frames) | |
512 | end | |
513 | ||
514 | if(Settings.RandomizeCFrame)then | |
515 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
516 | end | |
517 | if(MoveDir and MoveSpeed)then | |
518 | local Orientation = Prt.Orientation | |
519 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
520 | Prt.Orientation = Orientation | |
521 | end | |
522 | end | |
523 | Prt:destroy() | |
524 | else | |
525 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
526 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
527 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
528 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
529 | assert(start ~= nil,"You need to specify a start point!") | |
530 | assert(endP ~= nil,"You need to specify an end point!") | |
531 | for i = 0, 1, Settings.Speed or 0.01 do | |
532 | if(swait and typeof(swait) == 'function')then | |
533 | swait() | |
534 | else | |
535 | wait() | |
536 | end | |
537 | if(Settings.Home)then | |
538 | endP = Settings.Home.CFrame | |
539 | end | |
540 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, i) | |
541 | end | |
542 | if(Settings.RemoveOnGoal)then | |
543 | Prt:destroy() | |
544 | end | |
545 | end | |
546 | end)) | |
547 | return Prt,Msh,Snd | |
548 | end | |
549 | ||
550 | function RightWing() | |
551 | for i = 1, 2 do | |
552 | local PART | |
553 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
554 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(-15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-30 * i)), CF(0, 0, 0)) | |
555 | table.insert(RWINGS, WingWeld) | |
556 | PART = Wing | |
557 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "LargeWing", VT(1, 1.7, 1), false) | |
558 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(25), RAD(0)), CF(0, -0.8, 0)) | |
559 | PART = Wing | |
560 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
561 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
562 | local Wing1 = CreatePart(3, Weapon, "Marble", 0, 0, "Really black", "WingPart", VT(1, 0.2, 0.51), false) | |
563 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
564 | PART = Wing | |
565 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
566 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) | |
567 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.8, 0.15, 0.15), false) | |
568 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
569 | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "WingPart", VT(0.25, 0.2, 0.25), false) | |
570 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
571 | PART = Wing | |
572 | table.insert(RWINGS, WingWeld) | |
573 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(0.4, 0.5, 0.4), false) | |
574 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) | |
575 | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Lime green", "WingPart", VT(0.45, 0.2, 0.45), false) | |
576 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
577 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(1, 0.15, 0.15), false) | |
578 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
579 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(1, 0.1, 0.1), false) | |
580 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0, 0)) | |
581 | PART = Wing | |
582 | table.insert(RWINGS, WingWeld) | |
583 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(0.2, 0.5, 0.2), false) | |
584 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
585 | PART = Wing | |
586 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(0.5, 0.5, 0.5), false) | |
587 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(15), RAD(15)), CF(0, 0, 0)) | |
588 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(1, 0.3, 0.3), false) | |
589 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
590 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(1, 0.2, 0.2), false) | |
591 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0.15, 0)) | |
592 | PART = Wing | |
593 | table.insert(RWINGS, WingWeld) | |
594 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(1, 1, 1), false) | |
595 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) | |
596 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.3, 0.3, 0.3), false) | |
597 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
598 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.7, 0.7, 0.7), false) | |
599 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
600 | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "WingPart", VT(0.45, 0.45, 0.45), false) | |
601 | table.insert(EYES, Wing1) | |
602 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(-35)), CF(0, 0, 0)) | |
603 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(1, 0.1, 0.1), false) | |
604 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
605 | PART = Wing | |
606 | table.insert(RWINGS, WingWeld) | |
607 | end | |
608 | BODY = {} | |
609 | for _, c in pairs(Character:GetDescendants()) do | |
610 | if c:IsA("BasePart") then | |
611 | table.insert(BODY, { | |
612 | c, | |
613 | c.Parent, | |
614 | c.Material, | |
615 | c.Color | |
616 | }) | |
617 | elseif c:IsA("JointInstance") then | |
618 | table.insert(BODY, { | |
619 | c, | |
620 | c.Parent, | |
621 | nil, | |
622 | nil | |
623 | }) | |
624 | end | |
625 | end | |
626 | end | |
627 | function LeftWing() | |
628 | for i = 1, 2 do | |
629 | local PART | |
630 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(0.5, 0.5, 0.5), false) | |
631 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(-0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(30 * i)), CF(0, 0, 0)) | |
632 | table.insert(LWINGS, WingWeld) | |
633 | PART = Wing | |
634 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "LargeWing", VT(1, 1.7, 1), false) | |
635 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(-25), RAD(0)), CF(0, -0.8, 0)) | |
636 | PART = Wing | |
637 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(0.5, 0.5, 0.5), false) | |
638 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
639 | local Wing1 = CreatePart(3, Weapon, "Marble", 0, 0, "Lime green", "WingPart", VT(1, 0.2, 0.51), false) | |
640 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
641 | PART = Wing | |
642 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
643 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) | |
644 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.8, 0.15, 0.15), false) | |
645 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
646 | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Lime green", "WingPart", VT(0.25, 0.2, 0.25), false) | |
647 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
648 | PART = Wing | |
649 | table.insert(LWINGS, WingWeld) | |
650 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.4, 0.5, 0.4), false) | |
651 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
652 | local Wing1 = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", "WingPart", VT(0.45, 0.2, 0.45), false) | |
653 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
654 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.15, 0.15), false) | |
655 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
656 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Dark stone grey", "WingPart", VT(1, 0.1, 0.1), false) | |
657 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0, 0)) | |
658 | PART = Wing | |
659 | table.insert(LWINGS, WingWeld) | |
660 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
661 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
662 | PART = Wing | |
663 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(0.5, 0.5, 0.5), false) | |
664 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(-15), RAD(-15)), CF(0, 0, 0)) | |
665 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(1, 0.3, 0.3), false) | |
666 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
667 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(1, 0.2, 0.2), false) | |
668 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0.15, 0)) | |
669 | PART = Wing | |
670 | table.insert(LWINGS, WingWeld) | |
671 | local Wing = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(1, 1, 1), false) | |
672 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
673 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(0.3, 0.3, 0.3), false) | |
674 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
675 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Really black", "WingPart", VT(0.7, 0.7, 0.7), false) | |
676 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
677 | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "WingPart", VT(0.45, 0.45, 0.45), false) | |
678 | table.insert(EYES, Wing1) | |
679 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(35)), CF(0, 0, 0)) | |
680 | local Wing1 = CreatePart(3, Weapon, "Granite", 0, 0, "Lime green", "WingPart", VT(1, 0.1, 0.1), false) | |
681 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
682 | PART = Wing | |
683 | table.insert(LWINGS, WingWeld) | |
684 | end | |
685 | BODY = {} | |
686 | for _, c in pairs(Character:GetDescendants()) do | |
687 | if c:IsA("BasePart") then | |
688 | table.insert(BODY, { | |
689 | c, | |
690 | c.Parent, | |
691 | c.Material, | |
692 | c.Color | |
693 | }) | |
694 | elseif c:IsA("JointInstance") then | |
695 | table.insert(BODY, { | |
696 | c, | |
697 | c.Parent, | |
698 | nil, | |
699 | nil | |
700 | }) | |
701 | end | |
702 | end | |
703 | end | |
704 | ||
705 | function Swait(NUMBER) | |
706 | if NUMBER == 0 or NUMBER == nil then | |
707 | ArtificialHB.Event:wait() | |
708 | else | |
709 | for i = 1, NUMBER do | |
710 | ArtificialHB.Event:wait() | |
711 | end | |
712 | end | |
713 | end | |
714 | ||
715 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
716 | local NEWMESH = IT(MESH) | |
717 | if MESH == "SpecialMesh" then | |
718 | NEWMESH.MeshType = MESHTYPE | |
719 | if MESHID ~= "nil" and MESHID ~= "" then | |
720 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
721 | end | |
722 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
723 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
724 | end | |
725 | end | |
726 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
727 | NEWMESH.Scale = SCALE | |
728 | NEWMESH.Parent = PARENT | |
729 | return NEWMESH | |
730 | end | |
731 | ||
732 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
733 | local NEWPART = IT("Part") | |
734 | NEWPART.formFactor = FORMFACTOR | |
735 | NEWPART.Reflectance = REFLECTANCE | |
736 | NEWPART.Transparency = TRANSPARENCY | |
737 | NEWPART.CanCollide = false | |
738 | NEWPART.Locked = true | |
739 | NEWPART.Anchored = true | |
740 | if ANCHOR == false then | |
741 | NEWPART.Anchored = false | |
742 | end | |
743 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
744 | NEWPART.Name = NAME | |
745 | NEWPART.Size = SIZE | |
746 | NEWPART.Position = Torso.Position | |
747 | NEWPART.Material = MATERIAL | |
748 | NEWPART:BreakJoints() | |
749 | NEWPART.Parent = PARENT | |
750 | return NEWPART | |
751 | end | |
752 | ||
753 | local function weldBetween(a, b) | |
754 | local weldd = Instance.new("ManualWeld") | |
755 | weldd.Part0 = a | |
756 | weldd.Part1 = b | |
757 | weldd.C0 = CFrame.new() | |
758 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
759 | weldd.Parent = a | |
760 | return weldd | |
761 | end | |
762 | ||
763 | ||
764 | function QuaternionFromCFrame(cf) | |
765 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
766 | local trace = m00 + m11 + m22 | |
767 | if trace > 0 then | |
768 | local s = math.sqrt(1 + trace) | |
769 | local recip = 0.5 / s | |
770 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
771 | else | |
772 | local i = 0 | |
773 | if m11 > m00 then | |
774 | i = 1 | |
775 | end | |
776 | if m22 > (i == 0 and m00 or m11) then | |
777 | i = 2 | |
778 | end | |
779 | if i == 0 then | |
780 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
781 | local recip = 0.5 / s | |
782 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
783 | elseif i == 1 then | |
784 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
785 | local recip = 0.5 / s | |
786 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
787 | elseif i == 2 then | |
788 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
789 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
790 | end | |
791 | end | |
792 | end | |
793 | ||
794 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
795 | local xs, ys, zs = x + x, y + y, z + z | |
796 | local wx, wy, wz = w * xs, w * ys, w * zs | |
797 | local xx = x * xs | |
798 | local xy = x * ys | |
799 | local xz = x * zs | |
800 | local yy = y * ys | |
801 | local yz = y * zs | |
802 | local zz = z * zs | |
803 | 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)) | |
804 | end | |
805 | ||
806 | function QuaternionSlerp(a, b, t) | |
807 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
808 | local startInterp, finishInterp; | |
809 | if cosTheta >= 0.0001 then | |
810 | if (1 - cosTheta) > 0.0001 then | |
811 | local theta = ACOS(cosTheta) | |
812 | local invSinTheta = 1 / SIN(theta) | |
813 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
814 | finishInterp = SIN(t * theta) * invSinTheta | |
815 | else | |
816 | startInterp = 1 - t | |
817 | finishInterp = t | |
818 | end | |
819 | else | |
820 | if (1 + cosTheta) > 0.0001 then | |
821 | local theta = ACOS(-cosTheta) | |
822 | local invSinTheta = 1 / SIN(theta) | |
823 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
824 | finishInterp = SIN(t * theta) * invSinTheta | |
825 | else | |
826 | startInterp = t - 1 | |
827 | finishInterp = t | |
828 | end | |
829 | end | |
830 | 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 | |
831 | end | |
832 | ||
833 | function Clerp(a, b, t) | |
834 | local qa = {QuaternionFromCFrame(a)} | |
835 | local qb = {QuaternionFromCFrame(b)} | |
836 | local ax, ay, az = a.x, a.y, a.z | |
837 | local bx, by, bz = b.x, b.y, b.z | |
838 | local _t = 1 - t | |
839 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
840 | end | |
841 | ||
842 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
843 | local frame = IT("Frame") | |
844 | frame.BackgroundTransparency = TRANSPARENCY | |
845 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
846 | frame.Position = POSITION | |
847 | frame.Size = SIZE | |
848 | frame.BackgroundColor3 = COLOR | |
849 | frame.BorderColor3 = BORDERCOLOR | |
850 | frame.Name = NAME | |
851 | frame.Parent = PARENT | |
852 | return frame | |
853 | end | |
854 | ||
855 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
856 | local label = IT("TextLabel") | |
857 | label.BackgroundTransparency = 1 | |
858 | label.Size = UD2(1, 0, 1, 0) | |
859 | label.Position = UD2(0, 0, 0, 0) | |
860 | label.TextColor3 = TEXTCOLOR | |
861 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
862 | label.TextTransparency = TRANSPARENCY | |
863 | label.FontSize = TEXTFONTSIZE | |
864 | label.Font = TEXTFONT | |
865 | label.BorderSizePixel = BORDERSIZEPIXEL | |
866 | label.TextScaled = false | |
867 | label.Text = TEXT | |
868 | label.Name = NAME | |
869 | label.Parent = PARENT | |
870 | return label | |
871 | end | |
872 | ||
873 | function NoOutlines(PART) | |
874 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
875 | end | |
876 | ||
877 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
878 | local NEWWELD = IT(TYPE) | |
879 | NEWWELD.Part0 = PART0 | |
880 | NEWWELD.Part1 = PART1 | |
881 | NEWWELD.C0 = C0 | |
882 | NEWWELD.C1 = C1 | |
883 | NEWWELD.Parent = PARENT | |
884 | return NEWWELD | |
885 | end | |
886 | ||
887 | local S = IT("Sound") | |
888 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
889 | local NEWSOUND = nil | |
890 | coroutine.resume(coroutine.create(function() | |
891 | NEWSOUND = S:Clone() | |
892 | NEWSOUND.Parent = PARENT | |
893 | NEWSOUND.Volume = VOLUME | |
894 | NEWSOUND.Pitch = PITCH | |
895 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
896 | NEWSOUND:play() | |
897 | if DOESLOOP == true then | |
898 | NEWSOUND.Looped = true | |
899 | else | |
900 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
901 | NEWSOUND:remove() | |
902 | end | |
903 | end)) | |
904 | return NEWSOUND | |
905 | end | |
906 | ||
907 | function CFrameFromTopBack(at, top, back) | |
908 | local right = top:Cross(back) | |
909 | 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) | |
910 | end | |
911 | ||
912 | --Lightning({Material = "Neon", FadeIn = false, Color = C3(0,0,0), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false}) | |
913 | function Lightning(Table) | |
914 | local Color = Table.Color or C3(0,0,0) | |
915 | local StartPos = Table.Start or Torso.Position | |
916 | local EndPos = Table.End or Mouse.Hit.p | |
917 | local SegmentLength = Table.SegmentL or 2 | |
918 | local Thickness = Table.Thickness or 0.1 | |
919 | local Dissapear = Table.DoesFade or false | |
920 | local Parent = Table.Ignore or Character | |
921 | local MaxDist = Table.MaxDist or 400 | |
922 | local Branches = Table.Branches or false | |
923 | local Thicken = Table.Thicken or false | |
924 | local FadeTime = Table.FadeTime or 15 | |
925 | local FadeIn = Table.FadeIn or false | |
926 | local Material = Table.Material or "Neon" | |
927 | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
928 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5)) | |
929 | local LIGHTNINGMODEL = IT("Model",Effects) | |
930 | LIGHTNINGMODEL.Name = "Lightning" | |
931 | local LastBolt = nil | |
932 | for E = 1, DISTANCE do | |
933 | local ExtraSize = 0 | |
934 | if Thicken == true then | |
935 | ExtraSize = (DISTANCE-E)/15 | |
936 | end | |
937 | local TRANSPARENCY = 0 | |
938 | if FadeIn == true then | |
939 | TRANSPARENCY = 1-(E/(DISTANCE/1.5)) | |
940 | if TRANSPARENCY < 0 then | |
941 | TRANSPARENCY = 0 | |
942 | end | |
943 | end | |
944 | local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Lime green"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize)) | |
945 | PART.Color = Color | |
946 | MakeForm(PART,"Cyl") | |
947 | if LastBolt == nil then | |
948 | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
949 | else | |
950 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
951 | end | |
952 | LastBolt = PART | |
953 | if Branches == true and E < (DISTANCE-5) then | |
954 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
955 | if CHOICE == 1 then | |
956 | local LASTBRANCH = nil | |
957 | for i = 1, MRANDOM(2,5) do | |
958 | local ExtraSize2 = 0 | |
959 | if Thicken == true then | |
960 | ExtraSize = ((DISTANCE-E)/25)/i | |
961 | end | |
962 | local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Lime green"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2)) | |
963 | PART.Color = Color | |
964 | MakeForm(PART,"Cyl") | |
965 | if LASTBRANCH == nil then | |
966 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
967 | else | |
968 | PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
969 | end | |
970 | LASTBRANCH = PART | |
971 | end | |
972 | end | |
973 | end | |
974 | end | |
975 | if Dissapear == true then | |
976 | coroutine.resume(coroutine.create(function() | |
977 | for i = 1, FadeTime do | |
978 | Swait() | |
979 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
980 | if c.ClassName == "Part" then | |
981 | c.Transparency = c.Transparency + (i/FadeTime)/10 | |
982 | end | |
983 | end | |
984 | end | |
985 | LIGHTNINGMODEL:remove() | |
986 | end)) | |
987 | elseif Dissapear == false then | |
988 | Debris:AddItem(LIGHTNINGMODEL,0.1) | |
989 | end | |
990 | return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL} | |
991 | end | |
992 | ||
993 | --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(0,255,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
994 | local cR=255 | |
995 | local cG=0 | |
996 | local cB=0 | |
997 | local flg5=1 local omgidk=1 | |
998 | local add=15 | |
999 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1000 | if omgidk>10000 then omgidk=0 end | |
1001 | omgidk=omgidk+1 | |
1002 | if cR>=255 then flg5=1 end | |
1003 | if cG>=255 then flg5=2 end | |
1004 | if cB>=255 then flg5=3 end | |
1005 | if flg5==1 then cR=cR-add cG=cG+add end | |
1006 | if flg5==2 then cG=cG-add cB=cB+add end | |
1007 | if flg5==3 then cB=cB-add cR=cR+add end | |
1008 | color=Color3.fromRGB(cR,cG,cB) | |
1009 | function WACKYEFFECT(Table) | |
1010 | local TYPE = (Table.EffectType or "Sphere") | |
1011 | local SIZE = (Table.Size or VT(6,6,6)) | |
1012 | local ENDSIZE = (Table.Size2 or VT(7,7,7)) | |
1013 | local TRANSPARENCY = (Table.Transparency or 0) | |
1014 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1015 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1016 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1017 | local ROTATION1 = (Table.RotationX or 0) | |
1018 | local ROTATION2 = (Table.RotationY or 0) | |
1019 | local ROTATION3 = (Table.RotationZ or 0) | |
1020 | local MATERIAL = "Neon" | |
1021 | local COLOR = color | |
1022 | local TIME = (Table.Time or 45) | |
1023 | local SOUNDID = (Table.SoundID or nil) | |
1024 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1025 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1026 | coroutine.resume(coroutine.create(function() | |
1027 | local PLAYSSOUND = false | |
1028 | local SOUND = nil | |
1029 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1030 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1031 | PLAYSSOUND = true | |
1032 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1033 | end | |
1034 | EFFECT.Color = color | |
1035 | local MSH = nil | |
1036 | if TYPE == "Sphere" then | |
1037 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1038 | elseif TYPE == "Block" then | |
1039 | MSH = IT("BlockMesh",EFFECT) | |
1040 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1041 | elseif TYPE == "Wave" then | |
1042 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1043 | elseif TYPE == "Ring" then | |
1044 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1045 | elseif TYPE == "Slash" then | |
1046 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1047 | elseif TYPE == "Round Slash" then | |
1048 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1049 | elseif TYPE == "Swirl" then | |
1050 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1051 | elseif TYPE == "Skull" then | |
1052 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1053 | elseif TYPE == "Crystal" then | |
1054 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1055 | end | |
1056 | if MSH ~= nil then | |
1057 | local MOVESPEED = nil | |
1058 | if MOVEDIRECTION ~= nil then | |
1059 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1060 | end | |
1061 | local GROWTH = SIZE - ENDSIZE | |
1062 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1063 | if TYPE == "Block" then | |
1064 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1065 | else | |
1066 | EFFECT.CFrame = CFRAME | |
1067 | end | |
1068 | for LOOP = 1, TIME+1 do | |
1069 | Swait() | |
1070 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1071 | if TYPE == "Wave" then | |
1072 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1073 | end | |
1074 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1075 | if TYPE == "Block" then | |
1076 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1077 | else | |
1078 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1079 | end | |
1080 | if MOVEDIRECTION ~= nil then | |
1081 | local ORI = EFFECT.Orientation | |
1082 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1083 | EFFECT.Orientation = ORI | |
1084 | end | |
1085 | end | |
1086 | if PLAYSSOUND == false then | |
1087 | EFFECT:remove() | |
1088 | else | |
1089 | SOUND.Stopped:Connect(function() | |
1090 | EFFECT:remove() | |
1091 | end) | |
1092 | end | |
1093 | else | |
1094 | if PLAYSSOUND == false then | |
1095 | EFFECT:remove() | |
1096 | else | |
1097 | repeat Swait() until SOUND.Playing == false | |
1098 | EFFECT:remove() | |
1099 | end | |
1100 | end | |
1101 | end)) | |
1102 | end | |
1103 | end) | |
1104 | function MakeForm(PART,TYPE) | |
1105 | if TYPE == "Cyl" then | |
1106 | local MSH = IT("CylinderMesh",PART) | |
1107 | elseif TYPE == "Ball" then | |
1108 | local MSH = IT("SpecialMesh",PART) | |
1109 | MSH.MeshType = "Sphere" | |
1110 | elseif TYPE == "Wedge" then | |
1111 | local MSH = IT("SpecialMesh",PART) | |
1112 | MSH.MeshType = "Wedge" | |
1113 | end | |
1114 | end | |
1115 | function SpawnTrail(FROM,TO,BIG) | |
1116 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Trail", VT(10,10,10)) | |
1117 | MakeForm(TRAIL,"Cyl") | |
1118 | local cR=255 | |
1119 | local cG=0 | |
1120 | local cB=0 | |
1121 | local flg5=1 local omgidk=1 | |
1122 | local add=15 | |
1123 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1124 | if omgidk>10000 then omgidk=0 end | |
1125 | omgidk=omgidk+1 | |
1126 | if cR>=255 then flg5=1 end | |
1127 | if cG>=255 then flg5=2 end | |
1128 | if cB>=255 then flg5=3 end | |
1129 | if flg5==1 then cR=cR-add cG=cG+add end | |
1130 | if flg5==2 then cG=cG-add cB=cB+add end | |
1131 | if flg5==3 then cB=cB-add cR=cR+add end | |
1132 | color=Color3.fromRGB(cR,cG,cB) | |
1133 | TRAIL.Color = color | |
1134 | end) | |
1135 | local DIST = (FROM - TO).Magnitude | |
1136 | if BIG == true then | |
1137 | TRAIL.Size = VT(5,DIST,5) | |
1138 | else | |
1139 | TRAIL.Size = VT(5,DIST,5) | |
1140 | end | |
1141 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1142 | coroutine.resume(coroutine.create(function() | |
1143 | for i = 1, 55 do | |
1144 | Swait() | |
1145 | TRAIL.Transparency = TRAIL.Transparency + 0.01 | |
1146 | end | |
1147 | TRAIL:remove() | |
1148 | end)) | |
1149 | end | |
1150 | ||
1151 | Debris = game:GetService("Debris") | |
1152 | ||
1153 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1154 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1155 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1156 | end | |
1157 | ||
1158 | function turnto(position) | |
1159 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1160 | end | |
1161 | ||
1162 | --//=================================\\ | |
1163 | --|| WEAPON CREATION | |
1164 | --\\=================================// | |
1165 | local GRIP = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-1.1,-0.25)*ANGLES(RAD(-110),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(180)), CF(0,0,0)) | |
1166 | ||
1167 | for i = 1, 35 do | |
1168 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Really black", "FaceGradient", VT(1.01,0.5,1.01),false) | |
1169 | FACE.Color = C3(0,0,0) | |
1170 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1171 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
1172 | end | |
1173 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false) | |
1174 | MakeForm(Eye,"Ball") | |
1175 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
1176 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.6,0.1,1)/2,false) | |
1177 | MakeForm(Eye,"Ball") | |
1178 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
1179 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Eye", VT(0.1,1,1)/2,false) | |
1180 | MakeForm(Eye,"Ball") | |
1181 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
1182 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eye", VT(0.1,1,1)/2,false) | |
1183 | MakeForm(Eye,"Ball") | |
1184 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
1185 | ||
1186 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Lime green", "Eon", VT(0.5,0.5,1.25),false) | |
1187 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1188 | ||
1189 | local Particle = IT("ParticleEmitter",nil) | |
1190 | Particle.Enabled = false | |
1191 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1192 | Particle.LightEmission = 0.5 | |
1193 | Particle.Rate = 150 | |
1194 | Particle.ZOffset = 0.2 | |
1195 | Particle.Rotation = NumberRange.new(-180, 180) | |
1196 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1197 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1198 | Particle.Color = ColorSequence.new(C3(0,0,0),C3(0,0,0),C3(0,0,0),C3(0,0,0),C3(0,255,0),C3(0,255,0),C3(0,255,0),C3(0,255,0)) | |
1199 | ||
1200 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1201 | function ParticleEmitter(Table) | |
1202 | local PRTCL = Particle:Clone() | |
1203 | local Speed = Table.Speed or 5 | |
1204 | local Drag = Table.Drag or 0 | |
1205 | local Size1 = Table.Size1 or 1 | |
1206 | local Size2 = Table.Size2 or 5 | |
1207 | local Lifetime1 = Table.Lifetime1 or 1 | |
1208 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1209 | local Parent = Table.Parent or Torso | |
1210 | local Emit = Table.Emit or 100 | |
1211 | local Offset = Table.Offset or 360 | |
1212 | local Acel = Table.Acel or VT(0,0,0) | |
1213 | local Enabled = Table.Enabled or false | |
1214 | PRTCL.Parent = Parent | |
1215 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1216 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1217 | PRTCL.Speed = NumberRange.new(Speed) | |
1218 | PRTCL.VelocitySpread = Offset | |
1219 | PRTCL.Drag = Drag | |
1220 | PRTCL.Acceleration = Acel | |
1221 | if Enabled == false then | |
1222 | PRTCL:Emit(Emit) | |
1223 | Debris:AddItem(PRTCL,Lifetime2) | |
1224 | else | |
1225 | PRTCL.Enabled = true | |
1226 | end | |
1227 | return PRTCL | |
1228 | end | |
1229 | ||
1230 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1231 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1232 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1233 | MakeForm(Part,"Wedge") | |
1234 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1235 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1236 | MakeForm(Part,"Wedge") | |
1237 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1238 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1239 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1240 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1241 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1242 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1243 | MakeForm(Part,"Cyl") | |
1244 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1245 | for i = 1, 8 do | |
1246 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1247 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1248 | end | |
1249 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1250 | MakeForm(Part,"Cyl") | |
1251 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1252 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1253 | MakeForm(Part,"Ball") | |
1254 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1255 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1256 | MakeForm(Part,"Wedge") | |
1257 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1258 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1259 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1260 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1261 | MakeForm(Part,"Cyl") | |
1262 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1263 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1264 | MakeForm(Part,"Cyl") | |
1265 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1266 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1267 | MakeForm(Part,"Cyl") | |
1268 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1269 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1270 | MakeForm(Part,"Wedge") | |
1271 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1272 | local LASTPART = Handle | |
1273 | for i = 1, 10 do | |
1274 | if LASTPART == Handle then | |
1275 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1276 | LASTPART = Part | |
1277 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1278 | else | |
1279 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1280 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1281 | LASTPART = Part | |
1282 | end | |
1283 | end | |
1284 | ||
1285 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1286 | MakeForm(Barrel,"Cyl") | |
1287 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1288 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1289 | MakeForm(Part,"Cyl") | |
1290 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1291 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1292 | MakeForm(Part,"Wedge") | |
1293 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1294 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1295 | MakeForm(Hole,"Cyl") | |
1296 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1297 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1298 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1299 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1300 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1301 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1302 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1303 | coroutine.resume(coroutine.create(function() | |
1304 | while wait() do | |
1305 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1306 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1307 | end | |
1308 | end)) | |
1309 | ||
1310 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.7, Size2 = 0, Lifetime1 = 0.7, Lifetime2 = 0.7, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)}) | |
1311 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 10, Size2 = 0, Lifetime1 = 0.8, Lifetime2 = 0.9, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)}) | |
1312 | ||
1313 | local cR=255 | |
1314 | local cG=0 | |
1315 | local cB=0 | |
1316 | local flg5=1 local omgidk=1 | |
1317 | local add=15 | |
1318 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1319 | if omgidk>10000 then omgidk=0 end | |
1320 | omgidk=omgidk+1 | |
1321 | if cR>=255 then flg5=1 end | |
1322 | if cG>=255 then flg5=2 end | |
1323 | if cB>=255 then flg5=3 end | |
1324 | if flg5==1 then cR=cR-add cG=cG+add end | |
1325 | if flg5==2 then cG=cG-add cB=cB+add end | |
1326 | if flg5==3 then cB=cB-add cR=cR+add end | |
1327 | color=Color3.fromRGB(cR,cG,cB) | |
1328 | for _, c in pairs(Weapon:GetDescendants()) do | |
1329 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1330 | c.Material = "Glass" | |
1331 | c.Color = C3(0,0,0) | |
1332 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1333 | c.Color = color | |
1334 | c.Material = "Neon" | |
1335 | end | |
1336 | end | |
1337 | end) | |
1338 | Weapon.Parent = Character | |
1339 | for _, c in pairs(Weapon:GetChildren()) do | |
1340 | if c.ClassName == "Part" then | |
1341 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1342 | end | |
1343 | end | |
1344 | ||
1345 | function swait(num) | |
1346 | if num == 0 or num == nil then | |
1347 | ArtificialHB.Event:wait() | |
1348 | else | |
1349 | for i = 0, num do | |
1350 | ArtificialHB.Event:wait() | |
1351 | end | |
1352 | end | |
1353 | end | |
1354 | ||
1355 | function chatfunc(text) | |
1356 | local chat = coroutine.wrap(function() | |
1357 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1358 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1359 | end | |
1360 | local Bill = Instance.new("BillboardGui",Character) | |
1361 | Bill.Size = UDim2.new(0,100,0,40) | |
1362 | Bill.StudsOffset = Vector3.new(0,3,0) | |
1363 | Bill.Adornee = Character.Head | |
1364 | Bill.Name = "TalkingBillBoard" | |
1365 | local Hehe = Instance.new("TextLabel",Bill) | |
1366 | Hehe.BackgroundTransparency = 1 | |
1367 | Hehe.BorderSizePixel = 0 | |
1368 | Hehe.Text = "" | |
1369 | Hehe.Font = "Bodoni" | |
1370 | Hehe.TextSize = 40 | |
1371 | Hehe.TextStrokeTransparency = 0 | |
1372 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
1373 | coroutine.resume(coroutine.create(function() | |
1374 | while Hehe ~= nil do | |
1375 | swait() | |
1376 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1377 | Hehe.Rotation = math.random(-5,5) | |
1378 | Hehe.TextColor3 = Color3.new(0,0,0) | |
1379 | Hehe.TextStrokeColor3 = Color3.new(0,0,0) | |
1380 | end | |
1381 | end)) | |
1382 | for i = 1,string.len(text),1 do | |
1383 | swait() | |
1384 | Hehe.Text = string.sub(text,1,i) | |
1385 | end | |
1386 | swait(90)--Re[math.random(1, 93)] | |
1387 | for i = 0, 1, .025 do | |
1388 | swait() | |
1389 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
1390 | Hehe.TextStrokeTransparency = i | |
1391 | Hehe.TextTransparency = i | |
1392 | end | |
1393 | Bill:Destroy() | |
1394 | end) | |
1395 | chat() | |
1396 | end | |
1397 | ||
1398 | function onChatted(msg) | |
1399 | chatfunc(msg) | |
1400 | end | |
1401 | ||
1402 | Player.Chatted:connect(onChatted) | |
1403 | ||
1404 | local BODY = {} | |
1405 | for _, c in pairs(Character:GetDescendants()) do | |
1406 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1407 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1408 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1409 | end | |
1410 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
1411 | elseif c:IsA("JointInstance") then | |
1412 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
1413 | end | |
1414 | end | |
1415 | ||
1416 | function refit() | |
1417 | Character.Parent = workspace | |
1418 | for e = 1, #BODY do | |
1419 | if BODY[e] ~= nil then | |
1420 | local STUFF = BODY[e] | |
1421 | local PART = STUFF[1] | |
1422 | local PARENT = STUFF[2] | |
1423 | local MATERIAL = STUFF[3] | |
1424 | local COLOR = STUFF[4] | |
1425 | local TRANSPARENCY = STUFF[5] | |
1426 | --local SIZE = STUFF[6] | |
1427 | local NAME = STUFF[7] | |
1428 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1429 | PART.Material = MATERIAL | |
1430 | PART.Transparency = TRANSPARENCY | |
1431 | PART.Name = NAME | |
1432 | end | |
1433 | if PART.Parent ~= PARENT then | |
1434 | Humanoid:remove() | |
1435 | PART.Parent = PARENT | |
1436 | Humanoid = IT("Humanoid",Character) | |
1437 | end | |
1438 | end | |
1439 | end | |
1440 | end | |
1441 | ||
1442 | local SKILLTEXTCOLOR = C3(0,0,0) | |
1443 | local SKILLFONT = "Code" | |
1444 | local SKILLTEXTSIZE = 7 | |
1445 | ||
1446 | Humanoid.Died:connect(function() | |
1447 | refit() | |
1448 | end) | |
1449 | ||
1450 | 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") | |
1451 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1452 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1453 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.2, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1454 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.2, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1455 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.3, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1456 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.3, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
1457 | local SKILL8FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 8 Frame") | |
1458 | local SKILL9FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.4, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 9 Frame") | |
1459 | local SKILL10FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.4, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 10 Frame") | |
1460 | local SKILL11FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.5, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 11 Frame") | |
1461 | local SKILL12FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.5, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 12 Frame") | |
1462 | ||
1463 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Revenge's Pain", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
1464 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Particle Swap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
1465 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Pain Barrage", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
1466 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] Soul Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
1467 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[B] Revenge's Fury", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
1468 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[P] Victory dance!", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 6") | |
1469 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[T] I win!", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 7") | |
1470 | local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[G] I forgive thy actions on me", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 8") | |
1471 | local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Pain's Will", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 9") | |
1472 | local SKILL10TEXT = CreateLabel(SKILL10FRAME, "[Y] Overflowing Hate", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 10") | |
1473 | local SKILL11TEXT = CreateLabel(SKILL11FRAME, "[J] Deaths command", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 11") | |
1474 | local SKILL12TEXT = CreateLabel(SKILL12FRAME, "[U] Destroyed Souls", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 12") | |
1475 | ||
1476 | function printbye(Name) | |
1477 | local MESSAGES = {"Your not getting away with it, ","This is my Revenge, ","Fade, ","Now feel MY pains, ","Begone For Your Actions, ","this is what they did to me. , ","Feel my pains., ","They called me a mistake. Now look, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
1478 | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1479 | end | |
1480 | ||
1481 | workspace.ChildAdded:connect(function(instance) | |
1482 | for BANISH = 1, #TOBANISH do | |
1483 | if TOBANISH[BANISH] ~= nil then | |
1484 | if instance.Name == TOBANISH[BANISH] then | |
1485 | coroutine.resume(coroutine.create(function() | |
1486 | printbye(instance.Name) | |
1487 | instance:ClearAllChildren() | |
1488 | Debris:AddItem(instance,0.0005) | |
1489 | end)) | |
1490 | end | |
1491 | end | |
1492 | end | |
1493 | end) | |
1494 | ||
1495 | --//=================================\\ | |
1496 | --|| DAMAGING | |
1497 | --\\=================================// | |
1498 | ||
1499 | function Banish(Foe) | |
1500 | if Foe then | |
1501 | coroutine.resume(coroutine.create(function() | |
1502 | --if game.Players:FindFirstChild(Foe.Name) then | |
1503 | table.insert(TOBANISH,Foe.Name) | |
1504 | printbye(Foe.Name) | |
1505 | --end | |
1506 | Foe.Archivable = true | |
1507 | local CLONE = Foe:Clone() | |
1508 | Foe:Destroy() | |
1509 | CLONE.Parent = Effects | |
1510 | CLONE:BreakJoints() | |
1511 | local MATERIALS = {"Glass","Neon"} | |
1512 | for _, c in pairs(CLONE:GetDescendants()) do | |
1513 | if c:IsA("BasePart") then | |
1514 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1515 | CreateSound(340722848, c, 10, 1, false) | |
1516 | end | |
1517 | c.Anchored = true | |
1518 | c.Transparency = c.Transparency + 0.2 | |
1519 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1520 | c.Color = C3(0,255,0) | |
1521 | if c.ClassName == "MeshPart" then | |
1522 | c.TextureID = "" | |
1523 | end | |
1524 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1525 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1526 | end | |
1527 | if c:FindFirstChildOfClass("Decal") then | |
1528 | c:FindFirstChildOfClass("Decal"):remove() | |
1529 | end | |
1530 | c.Name = "Banished" | |
1531 | c.CanCollide = false | |
1532 | else | |
1533 | c:remove() | |
1534 | end | |
1535 | end | |
1536 | local A = false | |
1537 | for i = 1, 35 do | |
1538 | if A == false then | |
1539 | A = true | |
1540 | elseif A == true then | |
1541 | A = false | |
1542 | end | |
1543 | for _, c in pairs(CLONE:GetDescendants()) do | |
1544 | if c:IsA("BasePart") then | |
1545 | c.Anchored = true | |
1546 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1547 | c.Transparency = c.Transparency + 0.8/35 | |
1548 | if A == false then | |
1549 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1550 | elseif A == true then | |
1551 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | Swait() | |
1556 | end | |
1557 | CLONE:remove() | |
1558 | end)) | |
1559 | end | |
1560 | end | |
1561 | ||
1562 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1563 | local CHILDREN = workspace:GetDescendants() | |
1564 | for index, CHILD in pairs(CHILDREN) do | |
1565 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1566 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1567 | if HUM then | |
1568 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1569 | if TORSO then | |
1570 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1571 | if ISBANISH == true then | |
1572 | Banish(CHILD) | |
1573 | else | |
1574 | if ISBANISH == "Gravity" then | |
1575 | HUM.PlatformStand = true | |
1576 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1577 | local grav = Instance.new("BodyPosition",TORSO) | |
1578 | grav.D = 15 | |
1579 | grav.P = 20000 | |
1580 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1581 | grav.position = TORSO.Position | |
1582 | grav.Name = "V3BanishForce"..Player.Name | |
1583 | else | |
1584 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1585 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1586 | end | |
1587 | else | |
1588 | HUM.PlatformStand = false | |
1589 | end | |
1590 | end | |
1591 | elseif ISBANISH == "Gravity" then | |
1592 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1593 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1594 | HUM.PlatformStand = false | |
1595 | end | |
1596 | end | |
1597 | end | |
1598 | end | |
1599 | end | |
1600 | end | |
1601 | end | |
1602 | ||
1603 | UnBanishTaunts = {"... i feel empty..."} | |
1604 | ||
1605 | --//=================================\\ | |
1606 | --|| ATTACK FUNCTIONS AND STUFF | |
1607 | --\\=================================// | |
1608 | local LAUGHS = {"907329532", "907329893", "865772398", "907333294"} | |
1609 | ||
1610 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1611 | MakeForm(RightHole,"Cyl") | |
1612 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1613 | MakeForm(LeftHole,"Cyl") | |
1614 | ||
1615 | function getbloody(victim,amount) | |
1616 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
1617 | PART.CFrame = victim.CFrame | |
1618 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1619 | Debris:AddItem(PART,5) | |
1620 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1621 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1622 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1623 | local prtcl = asd:Clone() | |
1624 | prtcl.Parent = PART | |
1625 | prtcl:Emit(amount*10) | |
1626 | end | |
1627 | ||
1628 | GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Point blank", VT(0, 0, 0), false) | |
1629 | ||
1630 | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) | |
1631 | if DoesCourontine == false then | |
1632 | local Direction = CF(Part.Position, ToLocation) | |
1633 | local Distance = (Part.Position - ToLocation).magnitude | |
1634 | for i = 1, AmountOfTime do | |
1635 | Swait() | |
1636 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
1637 | Direction = Part.CFrame | |
1638 | end | |
1639 | Part:remove() | |
1640 | elseif DoesCourontine == true then | |
1641 | coroutine.resume(coroutine.create(function() | |
1642 | local Direction = CF(Part.Position, ToLocation) | |
1643 | local Distance = (Part.Position - ToLocation).magnitude | |
1644 | for i = 1, AmountOfTime do | |
1645 | Swait() | |
1646 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
1647 | Direction = Part.CFrame | |
1648 | end | |
1649 | Part:remove() | |
1650 | end)) | |
1651 | end | |
1652 | end | |
1653 | ||
1654 | function Absoluteum() | |
1655 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
1656 | if HITFLOOR ~= nil then | |
1657 | do | |
1658 | local HITBODIES = {} | |
1659 | ATTACK = true | |
1660 | Rooted = true | |
1661 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "ABSOLUTEUM", VT(0, 0, 0)) | |
1662 | MakeForm(ABSOLUTE, "Ball") | |
1663 | CreateSound("416200578", RootPart, 10, 1) | |
1664 | for i = 0, 8, 0.1 / Animation_Speed do | |
1665 | Swait() | |
1666 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2, 0.2, 0.2) | |
1667 | ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0) | |
1668 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
1669 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "ABSOLUTEUM", VT(2, 2, 2)) | |
1670 | MakeForm(CHARGE, "Ball") | |
1671 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) | |
1672 | FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true) | |
1673 | 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) | |
1674 | 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) | |
1675 | 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) | |
1676 | 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) | |
1677 | 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) | |
1678 | 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) | |
1679 | end | |
1680 | CreateSound(LAUGHS[MRANDOM(1, #LAUGHS)], Head, 10, 0.9) | |
1681 | CreateSound("160772554", ABSOLUTE, 10, MRANDOM(5, 7) / 10) | |
1682 | for i = 1, 45 do | |
1683 | Swait() | |
1684 | 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) | |
1685 | 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) | |
1686 | 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) | |
1687 | 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) | |
1688 | 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) | |
1689 | 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) | |
1690 | end | |
1691 | coroutine.resume(coroutine.create(function() | |
1692 | local IMPACT = false | |
1693 | local BULLET = ABSOLUTE | |
1694 | MakeForm(BULLET, "Ball") | |
1695 | BULLET.CFrame = CF(BULLET.Position, Mouse.Hit.p) | |
1696 | for i = 1, 500 do | |
1697 | Swait() | |
1698 | BULLET.CFrame = BULLET.CFrame * CF(0, 0, -2) | |
1699 | local HIT = Raycast(BULLET.Position, BULLET.CFrame.lookVector, BULLET.Size.X / 2, Character) | |
1700 | MagicSphere(VT(10, 10, 10), 55, CF(BULLET.CFrame * CF(MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5)).p), "Really red", VT(-10, -10, -10) / 55) | |
1701 | if HIT ~= nil then | |
1702 | IMPACT = true | |
1703 | break | |
1704 | end | |
1705 | end | |
1706 | if IMPACT == false then | |
1707 | for i = 1, 40 do | |
1708 | Swait() | |
1709 | BULLET.Size = BULLET.Size * 0.9 | |
1710 | end | |
1711 | BULLET:remove() | |
1712 | else | |
1713 | CreateSound("1127492102", BULLET, 10, MRANDOM(8, 13) / 10) | |
1714 | for i = 1, 175 do | |
1715 | Swait() | |
1716 | BULLET.Size = BULLET.Size * 0.99 | |
1717 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really black", VT(i, 0, i) / 85) | |
1718 | end | |
1719 | CreateSound("438666001", BULLET, 10, 3) | |
1720 | Swait(35) | |
1721 | BULLET.Transparency = 1 | |
1722 | for i = 1, 20 do | |
1723 | for e = 1, 5 do | |
1724 | MagicSphere(VT(0.2, 0.2, 0.2), 50, CF(BULLET.CFrame * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, BULLET.Position), "Really black", VT(1, 1, i * 4), 0) | |
1725 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really black", VT(i, 0, i) / 3) | |
1726 | end | |
1727 | AddChildrenToTable(BULLET.Position, workspace, i * 25, HITBODIES) | |
1728 | CreateSound("178452241", BULLET, 10, MRANDOM(8, 13) / 10) | |
1729 | CreateSound("178452243", BULLET, 10, MRANDOM(8, 13) / 10) | |
1730 | MagicSphere(BULLET.Size, 35, BULLET.CFrame, C3(MRANDOM(0, 10) / 10, 0, 0), VT(i, i, i) * 2) | |
1731 | Swait(5) | |
1732 | for e = 1, #HITBODIES do | |
1733 | if HITBODIES[e] ~= nil then | |
1734 | local BOD = HITBODIES[e] | |
1735 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
1736 | if TORS then | |
1737 | BOD:BreakJoints() | |
1738 | for _, c in pairs(BOD:GetChildren()) do | |
1739 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1740 | local bv = Instance.new("BodyVelocity") | |
1741 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1742 | bv.velocity = CF(BULLET.Position, c.Position).lookVector * 250 | |
1743 | bv.Parent = c | |
1744 | Debris:AddItem(bv, 0.2) | |
1745 | end | |
1746 | end | |
1747 | end | |
1748 | end | |
1749 | end | |
1750 | CreateWave(VT(0, 2, 0), 75, CF(BULLET.Position), true, -15, "Really black", VT(i, 0, i) * 2) | |
1751 | end | |
1752 | MagicSphere(BULLET.Size, 100, BULLET.CFrame, C3(1, 0, 0), VT(12, 12, 12)) | |
1753 | Debris:AddItem(BULLET, 10) | |
1754 | end | |
1755 | end)) | |
1756 | ATTACK = false | |
1757 | Rooted = false | |
1758 | end | |
1759 | end | |
1760 | end | |
1761 | ||
1762 | function Nuke() | |
1763 | ATTACK = true | |
1764 | Rooted = true | |
1765 | local CHARGE = false | |
1766 | local BLASTS = {468991944, 468991990} | |
1767 | coroutine.resume(coroutine.create(function() | |
1768 | repeat | |
1769 | Swait() | |
1770 | 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) | |
1771 | 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) | |
1772 | 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) | |
1773 | 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) | |
1774 | 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) | |
1775 | 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) | |
1776 | until CHARGE == true | |
1777 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
1778 | Swait() | |
1779 | WACKYEFFECT({ | |
1780 | Time = 15, | |
1781 | EffectType = "Sphere", | |
1782 | Size = VT(60, 60, 60), | |
1783 | Size2 = VT(0, 0, 0), | |
1784 | Transparency = 1, | |
1785 | Transparency2 = 0.7, | |
1786 | CFrame = CF(RootPart.Position), | |
1787 | MoveToPos = nil, | |
1788 | RotationX = 0, | |
1789 | RotationY = 0, | |
1790 | RotationZ = 0, | |
1791 | Material = "Neon", | |
1792 | Color = C3(0, 0, 0), | |
1793 | SoundID = nil, | |
1794 | SoundPitch = nil, | |
1795 | SoundVolume = nil | |
1796 | }) | |
1797 | 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) | |
1798 | 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) | |
1799 | 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) | |
1800 | 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) | |
1801 | 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) | |
1802 | 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) | |
1803 | end | |
1804 | coroutine.resume(coroutine.create(function() | |
1805 | local POS = RootPart.Position | |
1806 | wait(0.2) | |
1807 | for i = 1, 5 do | |
1808 | WACKYEFFECT({ | |
1809 | Time = 65, | |
1810 | EffectType = "Sphere", | |
1811 | Size = VT(2, 2, 2), | |
1812 | Size2 = VT(0, 0, 500), | |
1813 | Transparency = 1, | |
1814 | Transparency2 = 0, | |
1815 | CFrame = CF(POS), | |
1816 | MoveToPos = nil, | |
1817 | RotationX = MRANDOM(-2, 2), | |
1818 | RotationY = MRANDOM(-12, 12), | |
1819 | RotationZ = MRANDOM(-2, 2), | |
1820 | Material = "Neon", | |
1821 | Color = C3(0, 0, 0), | |
1822 | SoundID = nil, | |
1823 | SoundPitch = nil, | |
1824 | SoundVolume = nil | |
1825 | }) | |
1826 | end | |
1827 | wait(1) | |
1828 | SHAKECAM(POS, 9999999999, 25, 25) | |
1829 | ApplyAoE(POS, 450) | |
1830 | WACKYEFFECT({ | |
1831 | Time = 85, | |
1832 | EffectType = "Sphere", | |
1833 | Size = VT(120, 120, 120), | |
1834 | Size2 = VT(350, 350, 350), | |
1835 | Transparency = 0, | |
1836 | Transparency2 = 1, | |
1837 | CFrame = CF(POS), | |
1838 | MoveToPos = nil, | |
1839 | RotationX = 0, | |
1840 | RotationY = 0, | |
1841 | RotationZ = 0, | |
1842 | Material = "Neon", | |
1843 | Color = C3(0, 0, 0), | |
1844 | SoundID = nil, | |
1845 | SoundPitch = 1, | |
1846 | SoundVolume = 10 | |
1847 | }) | |
1848 | for i = 1, 20 do | |
1849 | WACKYEFFECT({ | |
1850 | Time = 85, | |
1851 | EffectType = "Sphere", | |
1852 | Size = VT(120, 120, 120), | |
1853 | Size2 = VT(120, 120, 144) + VT(i * 3, i * 3, i * 3), | |
1854 | Transparency = 0.8, | |
1855 | Transparency2 = 1, | |
1856 | CFrame = CF(POS), | |
1857 | MoveToPos = nil, | |
1858 | RotationX = 0, | |
1859 | RotationY = 0, | |
1860 | RotationZ = 0, | |
1861 | Material = "Neon", | |
1862 | Color = C3(0, 255, 0), | |
1863 | SoundID = nil, | |
1864 | SoundPitch = 1, | |
1865 | SoundVolume = 10 | |
1866 | }) | |
1867 | WACKYEFFECT({ | |
1868 | Time = 100, | |
1869 | EffectType = "Wave", | |
1870 | Size = VT(25, 2, 25), | |
1871 | Size2 = VT(400, 0, 400) * 1.2, | |
1872 | Transparency = 0, | |
1873 | Transparency2 = 1, | |
1874 | CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
1875 | MoveToPos = nil, | |
1876 | RotationX = 0, | |
1877 | RotationY = 0, | |
1878 | RotationZ = 0, | |
1879 | Material = "Neon", | |
1880 | Color = C3(0, 0, 0), | |
1881 | SoundID = nil, | |
1882 | SoundPitch = nil, | |
1883 | SoundVolume = nil | |
1884 | }) | |
1885 | end | |
1886 | local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
1887 | for i = 1, 5 do | |
1888 | CreateSound(438666077, Effects, 15, 1 - i / 15, false) | |
1889 | WACKYEFFECT({ | |
1890 | Time = 120, | |
1891 | EffectType = "Wave", | |
1892 | Size = VT(150, 2, 150), | |
1893 | Size2 = VT(300 + i * 170, 0, 300 + i * 170) * 1.2, | |
1894 | Transparency = 0, | |
1895 | Transparency2 = 1, | |
1896 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
1897 | MoveToPos = nil, | |
1898 | RotationX = 0, | |
1899 | RotationY = 0, | |
1900 | RotationZ = 0, | |
1901 | Material = "Neon", | |
1902 | Color = C3(0, 0, 0), | |
1903 | SoundID = nil, | |
1904 | SoundPitch = nil, | |
1905 | SoundVolume = nil | |
1906 | }) | |
1907 | end | |
1908 | end)) | |
1909 | for i = 0, 1, 0.1 / Animation_Speed do | |
1910 | Swait() | |
1911 | 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) | |
1912 | 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) | |
1913 | 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) | |
1914 | 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) | |
1915 | 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) | |
1916 | 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) | |
1917 | end | |
1918 | ATTACK = false | |
1919 | Rooted = false | |
1920 | end)) | |
1921 | for i = 1, 30 do | |
1922 | wait(0.01) | |
1923 | local POS = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(10, 150)) | |
1924 | local HITFLOOR, HITPOS = Raycast(POS.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
1925 | if HITFLOOR then | |
1926 | ApplyAoE(HITPOS, 65, true) | |
1927 | local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0)) | |
1928 | WACKYEFFECT({ | |
1929 | Time = 25, | |
1930 | EffectType = "Sphere", | |
1931 | Size = VT(22, 22, 22), | |
1932 | Size2 = VT(85, 85, 85), | |
1933 | Transparency = 0, | |
1934 | Transparency2 = 1, | |
1935 | CFrame = CF(HITPOS), | |
1936 | MoveToPos = nil, | |
1937 | RotationX = 0, | |
1938 | RotationY = 0, | |
1939 | RotationZ = 0, | |
1940 | Material = "Neon", | |
1941 | Color = C3(0, 255, 0), | |
1942 | SoundID = BLASTS[MRANDOM(1, #BLASTS)], | |
1943 | SoundPitch = MRANDOM(9, 12) / 10, | |
1944 | SoundVolume = 10 | |
1945 | }) | |
1946 | for e = 1, 3 do | |
1947 | WACKYEFFECT({ | |
1948 | EffectType = "Wave", | |
1949 | Size = VT(25, 0, 25), | |
1950 | Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6), | |
1951 | Transparency = 0, | |
1952 | Transparency2 = 1, | |
1953 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
1954 | MoveToPos = nil, | |
1955 | RotationX = 0, | |
1956 | RotationY = 3, | |
1957 | RotationZ = 0, | |
1958 | Material = "Neon", | |
1959 | Color = C3(0, 255, 0), | |
1960 | SoundID = nil, | |
1961 | SoundPitch = nil, | |
1962 | SoundVolume = nil | |
1963 | }) | |
1964 | WACKYEFFECT({ | |
1965 | Time = 35, | |
1966 | EffectType = "Sphere", | |
1967 | Size = VT(22, 45, 22), | |
1968 | Size2 = VT(25, 45 + e * 75, 25), | |
1969 | Transparency = 0, | |
1970 | Transparency2 = 1, | |
1971 | CFrame = CF(HITPOS) * TURN, | |
1972 | MoveToPos = nil, | |
1973 | RotationX = 0, | |
1974 | RotationY = 0, | |
1975 | RotationZ = 0, | |
1976 | Material = "Neon", | |
1977 | Color = C3( 0, 255, 0), | |
1978 | SoundID = nil, | |
1979 | SoundPitch = MRANDOM(9, 12) / 10, | |
1980 | SoundVolume = 10 | |
1981 | }) | |
1982 | end | |
1983 | end | |
1984 | end | |
1985 | CHARGE = true | |
1986 | end | |
1987 | ||
1988 | function SpectralBanishing() | |
1989 | ATTACK = true | |
1990 | Rooted = false | |
1991 | chatfunc("Dumb Ghost Users...", 20) | |
1992 | for i = 0, 5, 0.1 / Animation_Speed do | |
1993 | Swait() | |
1994 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed) | |
1995 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed) | |
1996 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
1997 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
1998 | 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.25 / Animation_Speed) | |
1999 | 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.25 / Animation_Speed) | |
2000 | end | |
2001 | chatfunc("Welp Cant Be Helped. BEGONE", 6) | |
2002 | CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10) | |
2003 | MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Lime green", VT(0.1, 0.1, 0.1)) | |
2004 | MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really black", VT(0.05, 0.05, 0.05)) | |
2005 | local RayHit, Way = CastProperRay(GunPoint.Position, CF(GunPoint.Position) * CF(0, 1500, 0).p, 1500, Character) | |
2006 | local distance = (GunPoint.Position - Way).magnitude | |
2007 | for i = 1, 5 do | |
2008 | local laser = Instance.new("Part", Effects) | |
2009 | laser.Transparency = 0 | |
2010 | laser.CanCollide = false | |
2011 | laser.Anchored = true | |
2012 | laser.Color = C3(0, 0, 0) | |
2013 | laser.Material = "Neon" | |
2014 | laser.formFactor = Enum.FormFactor.Custom | |
2015 | laser.Size = Vector3.new(0.15, 0.15, distance) | |
2016 | laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2) | |
2017 | table.insert(Effects2, { | |
2018 | laser, | |
2019 | "Disappear", | |
2020 | 0.1, | |
2021 | 1, | |
2022 | 1, | |
2023 | 1, | |
2024 | 2 | |
2025 | }) | |
2026 | end | |
2027 | coroutine.resume(coroutine.create(function() | |
2028 | Swait(15) | |
2029 | local FILTER = IT("ColorCorrectionEffect", game.Lighting) | |
2030 | for i = 1, 25 do | |
2031 | Swait() | |
2032 | FILTER.TintColor = C3(1, 1 - i / 50, 1 - i / 50) | |
2033 | end | |
2034 | local GAME = game.Players:GetChildren() | |
2035 | for PLAYER = 1, #GAME do | |
2036 | do | |
2037 | local PLAY = GAME[PLAYER] | |
2038 | if PLAY.Character ~= nil and PLAY.Character.Parent ~= workspace then | |
2039 | PLAY.Character.Parent = nil | |
2040 | coroutine.resume(coroutine.create(function() | |
2041 | if PLAY.Character:FindFirstChild("HumanoidRootPart") then | |
2042 | PLAY.Character.Parent = workspace | |
2043 | local Value = IT("BoolValue", Delete) | |
2044 | Value.Name = PLAY.Name | |
2045 | end | |
2046 | end)) | |
2047 | end | |
2048 | end | |
2049 | end | |
2050 | for i = 1, 25 do | |
2051 | Swait() | |
2052 | FILTER.TintColor = C3(1, 0.4980392156862745 + i / 50, 0.4980392156862745 + i / 50) | |
2053 | end | |
2054 | end)) | |
2055 | for i = 0, 2, 0.1 / Animation_Speed do | |
2056 | Swait() | |
2057 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed) | |
2058 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed) | |
2059 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(195), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
2060 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
2061 | 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.25 / Animation_Speed) | |
2062 | 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.25 / Animation_Speed) | |
2063 | end | |
2064 | ATTACK = false | |
2065 | Rooted = false | |
2066 | end | |
2067 | ||
2068 | function Madness() | |
2069 | ATTACK = true | |
2070 | Rooted = false | |
2071 | local GYRO = IT("BodyGyro",RootPart) | |
2072 | GYRO.D = 750 | |
2073 | GYRO.P = 20000 | |
2074 | GYRO.MaxTorque = VT(0,40000000,0) | |
2075 | local LOCKED = true | |
2076 | local SHOT = false | |
2077 | coroutine.resume(coroutine.create(function() | |
2078 | for i=0, 1, 0.1 / Animation_Speed do | |
2079 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
2080 | Swait() | |
2081 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2082 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2083 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(100), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2084 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2085 | end | |
2086 | LOCKED = false | |
2087 | SHOT = true | |
2088 | repeat | |
2089 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
2090 | Swait() | |
2091 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2092 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2093 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(100), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2094 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2095 | until HOLD == false and SHOT == false | |
2096 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2097 | Swait() | |
2098 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2099 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2100 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(100), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2101 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2102 | end | |
2103 | GYRO:remove() | |
2104 | ATTACK = false | |
2105 | Rooted = false | |
2106 | end)) | |
2107 | repeat wait() until LOCKED == false | |
2108 | repeat | |
2109 | SHOT = true | |
2110 | wait(0.2) | |
2111 | SHOT = false | |
2112 | local BULLET = Lightning({Material = "Glass", FadeIn = true, Color = C3(0,0,0), Start = Hole.CFrame*CF(0, 1, 0.045).p, End = Mouse.Hit.p, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false}) | |
2113 | local HIT = BULLET.Hit | |
2114 | local HITPOS = BULLET.End | |
2115 | if HIT then | |
2116 | if HIT.Parent:FindFirstChildOfClass("Humanoid") then | |
2117 | Banish(HIT.Parent) | |
2118 | end | |
2119 | end | |
2120 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = 304999618, SoundPitch = 2, SoundVolume = 1}) | |
2121 | WACKYEFFECT({Time = 15, EffectType = "Skull", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0, 1, 0.045) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 2}) | |
2122 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(1,1.2,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0, 1, 0.045) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,255,0), SoundID = 145080998, SoundPitch = 1, SoundVolume = 2}) | |
2123 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(2,1,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0, 1, 0.045) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 145080998, SoundPitch = 1, SoundVolume = 2}) | |
2124 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.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 = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
2125 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.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 = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
2126 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.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 = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
2127 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.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 = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
2128 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.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 = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
2129 | until HOLD == false | |
2130 | end | |
2131 | ||
2132 | function EMOTE() | |
2133 | ATTACK = true | |
2134 | Rooted = false | |
2135 | local LOOP = 0 | |
2136 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2137 | Swait() | |
2138 | 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) | |
2139 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2140 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2141 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2142 | end | |
2143 | for i=0, 3, 0.1 / Animation_Speed do | |
2144 | Swait() | |
2145 | LOOP = LOOP + 1 | |
2146 | 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(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2147 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2148 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2149 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.8, 0.4) * ANGLES(RAD(170), RAD(0), RAD(-25 - 25 * SIN(LOOP / 5))) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2150 | end | |
2151 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2152 | Swait() | |
2153 | 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(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2154 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2155 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2156 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2157 | end | |
2158 | ATTACK = false | |
2159 | Rooted = false | |
2160 | end | |
2161 | ||
2162 | function Kill(Char) | |
2163 | local NewCharacter = IT("Model",Effects) | |
2164 | NewCharacter.Name = "Ow im ded ;-;" | |
2165 | for _, c in pairs(Char:GetDescendants()) do | |
2166 | if c:IsA("BasePart") and c.Transparency == 0 then | |
2167 | if c.Parent == Char then | |
2168 | getbloody(c,5) | |
2169 | end | |
2170 | c:BreakJoints() | |
2171 | c.Material = "Glass" | |
2172 | c.Color = C3(0.5,0,0) | |
2173 | c.CanCollide = true | |
2174 | c.Transparency = 0.3 | |
2175 | if c:FindFirstChildOfClass("SpecialMesh") then | |
2176 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
2177 | end | |
2178 | if c.Name == "Head" then | |
2179 | c:ClearAllChildren() | |
2180 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
2181 | end | |
2182 | if c.ClassName == "MeshPart" then | |
2183 | c.TextureID = "" | |
2184 | end | |
2185 | if c:FindFirstChildOfClass("BodyPosition") then | |
2186 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
2187 | end | |
2188 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2189 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2190 | end | |
2191 | c.Parent = NewCharacter | |
2192 | c.Name = "DeadPart" | |
2193 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
2194 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
2195 | end | |
2196 | end | |
2197 | Char:remove() | |
2198 | Debris:AddItem(NewCharacter,5) | |
2199 | end | |
2200 | ||
2201 | function Taunt() | |
2202 | ATTACK = true | |
2203 | Rooted = true | |
2204 | local TAUNT = CreateSound(907333294, Torso, 7, 1, false) | |
2205 | repeat | |
2206 | Swait() | |
2207 | TAUNT.Parent = Torso | |
2208 | TAUNT.Playing = true | |
2209 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2210 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
2211 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2212 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2213 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2214 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2215 | until TAUNT.TimePosition >= 1.25 | |
2216 | for i=0, 1.6, 0.1 / Animation_Speed do | |
2217 | Swait() | |
2218 | TAUNT.Parent = Torso | |
2219 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(5)), 1 / Animation_Speed) | |
2220 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
2221 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2222 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2223 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2224 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2225 | end | |
2226 | ATTACK = false | |
2227 | Rooted = false | |
2228 | end | |
2229 | ||
2230 | function oofBeam() | |
2231 | ATTACK = true | |
2232 | Rooted = false | |
2233 | VALUE2 = true | |
2234 | local GYRO = IT("BodyGyro", RootPart) | |
2235 | GYRO.D = 20 | |
2236 | GYRO.P = 4000 | |
2237 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2238 | local POS = RootPart.Position + VT(0, 25, 0) | |
2239 | CreateSound("1371567007", Effects, 35, MRANDOM(9, 10) / 10) | |
2240 | 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) | |
2241 | 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) | |
2242 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2243 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2244 | 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) | |
2245 | 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) | |
2246 | coroutine.resume(coroutine.create(function() | |
2247 | local E = 0 | |
2248 | repeat | |
2249 | E = E + 5 | |
2250 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
2251 | Swait() | |
2252 | 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) | |
2253 | 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) | |
2254 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2255 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2256 | 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) | |
2257 | 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) | |
2258 | until ATTACK == false | |
2259 | GYRO:remove() | |
2260 | end)) | |
2261 | for i = 1, 50 do | |
2262 | Swait() | |
2263 | end | |
2264 | for i = 1, 25 do | |
2265 | Swait() | |
2266 | WACKYEFFECT({ | |
2267 | Time = 15, | |
2268 | EffectType = "Skull", | |
2269 | Size = VT(4, 4, 4), | |
2270 | Size2 = VT(0, 0, 0), | |
2271 | Transparency = 1, | |
2272 | Transparency2 = 0, | |
2273 | CFrame = CF(Eon.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35), | |
2274 | MoveToPos = Eon.Position, | |
2275 | RotationX = 0, | |
2276 | RotationY = 0, | |
2277 | RotationZ = 0, | |
2278 | Material = "Neon", | |
2279 | Color = C3(0, 255, 0), | |
2280 | SoundID = nil, | |
2281 | SoundPitch = nil, | |
2282 | SoundVolume = nil | |
2283 | }) | |
2284 | end | |
2285 | local LOOP = 0 | |
2286 | local BEAMO = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Lime green"), "Beamo", VT(0,0,0)) | |
2287 | MakeForm(BEAMO, "Ball") | |
2288 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Really black"), "Beam", VT(0, 0, 0), true) | |
2289 | MakeForm(BEAM, "Cyl") | |
2290 | repeat | |
2291 | local DISTANCE = (Eon.Position - Mouse.Hit.p).Magnitude | |
2292 | if DISTANCE < 2000 then | |
2293 | BEAMO.Size = VT(3 + 1 * COS(SINE / 4), 3 + 1 * COS(SINE / 4), 3 + 1 * COS(SINE / 4)) | |
2294 | BEAMO.CFrame = CF(Eon.Position) | |
2295 | BEAM.Size = VT(2 + 1 * COS(SINE / 4), DISTANCE, 2 + 1 * COS(SINE / 4)) | |
2296 | BEAM.CFrame = CF(Eon.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2297 | ApplyAoE(Mouse.Hit.p, 14,true,false) | |
2298 | WACKYEFFECT({ | |
2299 | Time = 35, | |
2300 | EffectType = "Sphere", | |
2301 | Size = VT(6 + 2 * COS(SINE / 4), 6 + 2 * COS(SINE / 4), 6 + 2 * COS(SINE / 4)) * 2, | |
2302 | Size2 = VT(5, 75, 5), | |
2303 | Transparency = 0, | |
2304 | Transparency2 = 1, | |
2305 | CFrame = CF(Mouse.Hit.p) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2306 | MoveToPos = nil, | |
2307 | RotationX = 0, | |
2308 | RotationY = 0, | |
2309 | RotationZ = 0, | |
2310 | Material = "Neon", | |
2311 | Color = C3(0, 255, 0), | |
2312 | SoundID = nil, | |
2313 | SoundPitch = MRANDOM(9, 12) / 10, | |
2314 | SoundVolume = 10 | |
2315 | }) | |
2316 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.5,1.5,1.5), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = Eon.CFrame, MoveToPos = Eon.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-6).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2317 | Swait() | |
2318 | LOOP = LOOP + 1 | |
2319 | end | |
2320 | until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000 | |
2321 | coroutine.resume(coroutine.create(function() | |
2322 | for i = 1, 15 do | |
2323 | Swait() | |
2324 | BEAM.Size = BEAM.Size - VT(0.1, 0, 0.1) | |
2325 | BEAMO.Size = BEAMO.Size - VT(0.1, 0.1, 0.1) | |
2326 | BEAM.Transparency = BEAM.Transparency + 0.06666666666666667 | |
2327 | BEAMO.Transparency = BEAMO.Transparency + 0.06666666666666667 | |
2328 | end | |
2329 | BEAM:remove() | |
2330 | BEAMO:remove() | |
2331 | end)) | |
2332 | ATTACK = false | |
2333 | Rooted = false | |
2334 | VALUE2 = false | |
2335 | end | |
2336 | ||
2337 | function TakeOnMe() | |
2338 | Speed = 5 | |
2339 | local MEME = CreateSound(0, Effects, 2, 1, false) | |
2340 | ATTACK = true | |
2341 | Rooted = false | |
2342 | local DANCE = true | |
2343 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
2344 | if NEWKEY == "p" then | |
2345 | DANCE = false | |
2346 | end | |
2347 | end) | |
2348 | PLAYSONG = false | |
2349 | while true do | |
2350 | for i = 1, 15 do | |
2351 | Swait() | |
2352 | MEME.Parent = Effects | |
2353 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2354 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2355 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-10)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2356 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2357 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2358 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2359 | end | |
2360 | if DANCE == false then | |
2361 | break | |
2362 | end | |
2363 | for i = 1, 15 do | |
2364 | Swait() | |
2365 | MEME.Parent = Effects | |
2366 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2367 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2368 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2369 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(10)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2370 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2371 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2372 | end | |
2373 | end | |
2374 | PLAYSONG = true | |
2375 | KEY:Disconnect() | |
2376 | MEME:remove() | |
2377 | Speed = 25 | |
2378 | ATTACK = false | |
2379 | Rooted = false | |
2380 | end | |
2381 | ||
2382 | function Banisher_Bullet() | |
2383 | ATTACK = true | |
2384 | Rooted = false | |
2385 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2386 | Swait() | |
2387 | turnto(Mouse.Hit.p) | |
2388 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2389 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2390 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2391 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2392 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2393 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2394 | end | |
2395 | repeat | |
2396 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2397 | Swait() | |
2398 | turnto(Mouse.Hit.p) | |
2399 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2400 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2401 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2402 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2403 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2404 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2405 | end | |
2406 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
2407 | SpawnTrail(Hole.Position,POS) | |
2408 | if HIT ~= nil then | |
2409 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2410 | Banish(HIT.Parent) | |
2411 | end | |
2412 | end | |
2413 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,7.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2414 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2415 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2416 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2417 | for i=0, 0.05, 0.1 / Animation_Speed do | |
2418 | Swait() | |
2419 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2420 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
2421 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2422 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2423 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2424 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2425 | end | |
2426 | until KEYHOLD == false | |
2427 | ATTACK = false | |
2428 | Rooted = false | |
2429 | end | |
2430 | function Execute() | |
2431 | ATTACK = true | |
2432 | Rooted = false | |
2433 | local Part = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Part", VT(0,1,4),false) | |
2434 | Part.Color = C3(0,0,0) | |
2435 | MakeForm(Part,"Wedge") | |
2436 | Part.CanCollide = true | |
2437 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(135)) *CF(0, 0.5, 0), CF(0, 0, 0)) | |
2438 | for i=0, 1, 0.1 / Animation_Speed do | |
2439 | Swait() | |
2440 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
2441 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed) | |
2442 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2443 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2444 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2445 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2446 | end | |
2447 | CreateSound(541909867, RightBarrel, 7, 1, false) | |
2448 | local TOCH = Part.Touched:Connect(function(hit) | |
2449 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then | |
2450 | Banish(hit.Parent) | |
2451 | end | |
2452 | end) | |
2453 | for i=0, 0.35, 0.1 / Animation_Speed do | |
2454 | Swait() | |
2455 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
2456 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2457 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2458 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2459 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2460 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2461 | end | |
2462 | TOCH:disconnect() | |
2463 | for i=0, 0.35, 0.1 / Animation_Speed do | |
2464 | Swait() | |
2465 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(60)), 1 / Animation_Speed) | |
2466 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-55)), 1 / Animation_Speed) | |
2467 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2468 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2469 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2470 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2471 | end | |
2472 | Part:remove() | |
2473 | ATTACK = false | |
2474 | Rooted = false | |
2475 | end | |
2476 | function Banisher_Burn() | |
2477 | ATTACK = true | |
2478 | Rooted = true | |
2479 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
2480 | for i=0, 1, 0.1 / Animation_Speed do | |
2481 | Swait() | |
2482 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2483 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2484 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2485 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2486 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2487 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2488 | end | |
2489 | coroutine.resume(coroutine.create(function() | |
2490 | local POS = Mouse.Hit.p | |
2491 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Strike", VT(0,2000,0)) | |
2492 | MakeForm(RAY,"Cyl") | |
2493 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0)) | |
2494 | MakeForm(SPHERE,"Ball") | |
2495 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0)) | |
2496 | MakeForm(SHIELD,"Ball") | |
2497 | SHIELD.CFrame = CF(POS) | |
2498 | RAY.CFrame = CF(POS) | |
2499 | SPHERE.CFrame = CF(POS) | |
2500 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
2501 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
2502 | for i = 1, 200 do | |
2503 | Swait() | |
2504 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2505 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
2506 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
2507 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
2508 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
2509 | end | |
2510 | for i = 1, 45 do | |
2511 | Swait() | |
2512 | RAY.Transparency = RAY.Transparency + 1/45 | |
2513 | SPHERE.Transparency = RAY.Transparency | |
2514 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
2515 | end | |
2516 | RAY:remove() | |
2517 | SHIELD:remove() | |
2518 | SPHERE:remove() | |
2519 | end)) | |
2520 | for i=0, 1, 0.1 / Animation_Speed do | |
2521 | Swait() | |
2522 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2523 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2524 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2525 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2526 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2527 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2528 | end | |
2529 | ATTACK = false | |
2530 | Rooted = false | |
2531 | end | |
2532 | function Teleport() | |
2533 | ATTACK = true | |
2534 | Rooted = false | |
2535 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2536 | Swait() | |
2537 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2538 | 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) | |
2539 | end | |
2540 | for e = 1, #BODY do | |
2541 | if BODY[e] ~= nil then | |
2542 | local STUFF = BODY[e] | |
2543 | local PART = STUFF[1] | |
2544 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
2545 | local PRT = PART:Clone() | |
2546 | PRT.Anchored = true | |
2547 | PRT.CanCollide = false | |
2548 | PRT.Material = "Neon" | |
2549 | PRT.Color = C3(0,255,0) | |
2550 | PRT.Name = "WarpEffect" | |
2551 | PRT.Parent = Effects | |
2552 | PRT.CFrame = PART.CFrame | |
2553 | PRT:BreakJoints() | |
2554 | if PRT:FindFirstChildOfClass("Sound") then | |
2555 | PRT:FindFirstChildOfClass("Sound"):remove() | |
2556 | end | |
2557 | if PRT:FindFirstChildOfClass("Decal") then | |
2558 | PRT:FindFirstChildOfClass("Decal"):remove() | |
2559 | end | |
2560 | coroutine.resume(coroutine.create(function() | |
2561 | for i = 1, 100 do | |
2562 | Swait() | |
2563 | PRT.Transparency = PRT.Transparency + 1/100 | |
2564 | end | |
2565 | PRT:remove() | |
2566 | end)) | |
2567 | end | |
2568 | end | |
2569 | end | |
2570 | CreateSound(217767125, Torso, 10, 1) | |
2571 | local POS = RootPart.Orientation | |
2572 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
2573 | RootPart.Orientation = POS | |
2574 | RootJoint.Parent = RootPart | |
2575 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2576 | Swait() | |
2577 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2578 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2579 | end | |
2580 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2581 | Swait() | |
2582 | 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) | |
2583 | end | |
2584 | ATTACK = false | |
2585 | Rooted = false | |
2586 | end | |
2587 | function BanishmentBeam() | |
2588 | ATTACK = true | |
2589 | Rooted = false | |
2590 | local GYRO = IT("BodyGyro",RootPart) | |
2591 | GYRO.D = 100 | |
2592 | GYRO.P = 2000 | |
2593 | GYRO.MaxTorque = VT(0,4000000,0) | |
2594 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2595 | CreateSound("93724183", RightArm, 5, 1, false) | |
2596 | for i=1, 35 do | |
2597 | Swait() | |
2598 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
2599 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2600 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2601 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2602 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2603 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2604 | 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) | |
2605 | 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) | |
2606 | end | |
2607 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Lime green", "Lazer", VT(0,0,0)) | |
2608 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
2609 | local TOCH = BEAM.Touched:Connect(function(hit) | |
2610 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
2611 | Kill(hit) | |
2612 | end | |
2613 | end) | |
2614 | local I = 0 | |
2615 | repeat | |
2616 | Swait() | |
2617 | I = I + 1 | |
2618 | if I <= 10 then | |
2619 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
2620 | end | |
2621 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
2622 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
2623 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
2624 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
2625 | BEAM.Size = VT(2,2,DISTANCE) | |
2626 | WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2627 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-4,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
2628 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
2629 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2630 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2631 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2632 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2633 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2634 | 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) | |
2635 | 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) | |
2636 | if ENDHIT ~= nil then | |
2637 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
2638 | Banish(ENDHIT) | |
2639 | end | |
2640 | end | |
2641 | until LOOP.Playing == false | |
2642 | GYRO:remove() | |
2643 | BEAM:remove() | |
2644 | ATTACK = false | |
2645 | Rooted = false | |
2646 | end | |
2647 | function Deathbound() | |
2648 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
2649 | ATTACK = true | |
2650 | Rooted = true | |
2651 | for i=0, 1, 0.1 / Animation_Speed do | |
2652 | Swait() | |
2653 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2654 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2655 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2656 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2657 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2658 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2659 | end | |
2660 | local DONE = false | |
2661 | local GATE = nil | |
2662 | local GATESPIN = true | |
2663 | coroutine.resume(coroutine.create(function() | |
2664 | repeat | |
2665 | Swait() | |
2666 | if GATE ~= nil then | |
2667 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
2668 | end | |
2669 | until GATESPIN == false | |
2670 | end)) | |
2671 | coroutine.resume(coroutine.create(function() | |
2672 | repeat | |
2673 | Swait() | |
2674 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2675 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2676 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2677 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2678 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2679 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2680 | until DONE == true | |
2681 | Swait(50) | |
2682 | for i = 1, 35 do | |
2683 | Swait(4) | |
2684 | local FIRED = false | |
2685 | local CHILDREN = workspace:GetDescendants() | |
2686 | for index, CHILD in pairs(CHILDREN) do | |
2687 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2688 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2689 | if HUM then | |
2690 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2691 | if TORSO then | |
2692 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2693 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2694 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2695 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6}) | |
2696 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2697 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2698 | Banish(CHILD) | |
2699 | FIRED = true | |
2700 | break | |
2701 | end | |
2702 | end | |
2703 | end | |
2704 | end | |
2705 | end | |
2706 | if FIRED == false then | |
2707 | local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2708 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6}) | |
2709 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2710 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2711 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2712 | if HITBOD ~= nil then | |
2713 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2714 | Kill(HITBOD.Parent) | |
2715 | end | |
2716 | end | |
2717 | end | |
2718 | end | |
2719 | for i = 1, 45 do | |
2720 | Swait() | |
2721 | GATE.Size = GATE.Size - VT(3,0,3) | |
2722 | end | |
2723 | GATESPIN = false | |
2724 | GATE:remove() | |
2725 | end)) | |
2726 | Swait(15) | |
2727 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2728 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Lime green", "Gate", VT(0,0,0)) | |
2729 | local DECAL = IT("Decal",GATE) | |
2730 | DECAL.Texture = "http://www.roblox.com/asset/?id=647661410" | |
2731 | DECAL.Face = "Top" | |
2732 | GATE.CFrame = CF(HITPOS) | |
2733 | CreateSound(160772554, GATE, 7, 1.3, false) | |
2734 | for i = 1, 45 do | |
2735 | Swait() | |
2736 | GATE.Size = GATE.Size + VT(3,0,3) | |
2737 | end | |
2738 | CreateSound(213603013, RightHole, 7, 1, false) | |
2739 | CreateSound(213603013, LeftHole, 7, 1, false) | |
2740 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2741 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(58,125,21), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2742 | ATTACK = false | |
2743 | Rooted = false | |
2744 | DONE = true | |
2745 | end | |
2746 | ||
2747 | ||
2748 | --//=================================\\ | |
2749 | --|| ASSIGN THINGS TO KEYS | |
2750 | --\\=================================// | |
2751 | ||
2752 | function MouseDown(Mouse) | |
2753 | if ATTACK == false then | |
2754 | EMOTE() | |
2755 | end | |
2756 | end | |
2757 | ||
2758 | function MouseUp(Mouse) | |
2759 | HOLD = false | |
2760 | end | |
2761 | ||
2762 | function KeyDown(Key) | |
2763 | KEYHOLD = true | |
2764 | if Key == "z" and ATTACK == false then | |
2765 | Banisher_Bullet() | |
2766 | end | |
2767 | ||
2768 | if Key == "b" and ATTACK == false then | |
2769 | Banisher_Burn() | |
2770 | end | |
2771 | ||
2772 | if Key == "c" and ATTACK == false then | |
2773 | BanishmentBeam() | |
2774 | end | |
2775 | ||
2776 | if Key == "v" and ATTACK == false then | |
2777 | Teleport() | |
2778 | end | |
2779 | ||
2780 | if Key == "t" and ATTACK == false then | |
2781 | Taunt() | |
2782 | end | |
2783 | ||
2784 | if Key == "e" and ATTACK == false then | |
2785 | Madness() | |
2786 | end | |
2787 | ||
2788 | if Key == "j" and ATTACK == false then | |
2789 | Nuke() | |
2790 | end | |
2791 | ||
2792 | if Key == "y" and ATTACK == false then | |
2793 | oofBeam() | |
2794 | end | |
2795 | ||
2796 | if Key == "u" and ATTACK == false then | |
2797 | Absoluteum() | |
2798 | end | |
2799 | ||
2800 | if Key == "g" and ATTACK == false then | |
2801 | chatfunc(UnBanishTaunts[MRANDOM(1,#UnBanishTaunts)]) | |
2802 | TOBANISH = {} | |
2803 | end | |
2804 | ||
2805 | if Key == "p" and ATTACK == false then | |
2806 | TakeOnMe() | |
2807 | end | |
2808 | ||
2809 | if Key == "x" and ATTACK == false then | |
2810 | Deathbound() | |
2811 | end | |
2812 | end | |
2813 | ||
2814 | function KeyUp(Key) | |
2815 | KEYHOLD = false | |
2816 | end | |
2817 | ||
2818 | Mouse.Button1Down:connect(function(NEWKEY) | |
2819 | MouseDown(NEWKEY) | |
2820 | end) | |
2821 | Mouse.Button1Up:connect(function(NEWKEY) | |
2822 | MouseUp(NEWKEY) | |
2823 | end) | |
2824 | Mouse.KeyDown:connect(function(NEWKEY) | |
2825 | KeyDown(NEWKEY) | |
2826 | end) | |
2827 | Mouse.KeyUp:connect(function(NEWKEY) | |
2828 | KeyUp(NEWKEY) | |
2829 | end) | |
2830 | ||
2831 | --//=================================\\ | |
2832 | --\\=================================// | |
2833 | ||
2834 | ||
2835 | function unanchor() | |
2836 | if UNANCHOR == true then | |
2837 | g = Character:GetChildren() | |
2838 | for i = 1, #g do | |
2839 | if g[i].ClassName == "Part" then | |
2840 | g[i].Anchored = false | |
2841 | end | |
2842 | end | |
2843 | end | |
2844 | end | |
2845 | ||
2846 | ||
2847 | --//=================================\\ | |
2848 | --|| WRAP THE WHOLE SCRIPT UP | |
2849 | --\\=================================// | |
2850 | ||
2851 | Humanoid.Changed:connect(function(Jump) | |
2852 | if Jump == "Jump" and (Disable_Jump == true) then | |
2853 | Humanoid.Jump = false | |
2854 | end | |
2855 | end) | |
2856 | ||
2857 | local CONNECT = nil | |
2858 | ||
2859 | while true do | |
2860 | Swait() | |
2861 | ANIMATE.Parent = nil | |
2862 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
2863 | Humanoid = IT("Humanoid",Character) | |
2864 | end | |
2865 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2866 | v:Stop(); | |
2867 | end | |
2868 | SINE = SINE + CHANGE | |
2869 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2870 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2871 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2872 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 26) | |
2873 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2874 | 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) / 3) | |
2875 | 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) / 3) | |
2876 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / 3) | |
2877 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / 3) | |
2878 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2879 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / 3) | |
2880 | 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 / 3) | |
2881 | 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 / 3) | |
2882 | 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 / 3) | |
2883 | end | |
2884 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2885 | ANIM = "Jump" | |
2886 | if ATTACK == false then | |
2887 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2888 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2889 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2890 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2891 | 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) | |
2892 | 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) | |
2893 | end | |
2894 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2895 | ANIM = "Fall" | |
2896 | if ATTACK == false then | |
2897 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2898 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2899 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2900 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2901 | 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) | |
2902 | 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) | |
2903 | end | |
2904 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2905 | ANIM = "Idle" | |
2906 | if ATTACK == false then | |
2907 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / 3) | |
2908 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 4.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / 3) | |
2909 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45 + 2 * SIN(SINE / 12)), RAD(-25))* RIGHTSHOULDERC0, 0.15 / 3) | |
2910 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / 3) | |
2911 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1.1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / 3) | |
2912 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / 3) | |
2913 | end | |
2914 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2915 | ANIM = "Walk" | |
2916 | if ATTACK == false then | |
2917 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / 3) | |
2918 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / 3) | |
2919 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / 3) | |
2920 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / 3) | |
2921 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / 3) | |
2922 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / 3) | |
2923 | end | |
2924 | end | |
2925 | unanchor() | |
2926 | Humanoid.MaxHealth = "inf" | |
2927 | Humanoid.Health = "inf" | |
2928 | if Rooted == false then | |
2929 | Disable_Jump = false | |
2930 | Humanoid.WalkSpeed = Speed | |
2931 | elseif Rooted == true then | |
2932 | Disable_Jump = true | |
2933 | Humanoid.WalkSpeed = 0 | |
2934 | end | |
2935 | refit() | |
2936 | sick.Parent = Torso | |
2937 | sick:resume() | |
2938 | sick.Volume = 5 | |
2939 | sick.Pitch = 1 | |
2940 | sick.SoundId = "rbxassetid://0" | |
2941 | sick.Name = "BanishV3Music" | |
2942 | end | |
2943 | ||
2944 | --//=================================\\ | |
2945 | --\\=================================// | |
2946 | ||
2947 | ||
2948 | ||
2949 | ||
2950 | ||
2951 | --//====================================================\\-- | |
2952 | --|| END OF SCRIPT | |
2953 | --\\====================================================//-- |