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