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