SHOW:
|
|
- or go back to the newest paste.
1 | script.Name = "The God of Banish V1.5" | |
2 | --//====================================================\\-- | |
3 | - | --|| Made By 1x1x1x1x1x1x1x0x0x2 AND XDavodioX |
3 | + | --|| Made By nuttanun734 AND hero215sugar |
4 | --\\====================================================//-- | |
5 | ||
6 | -- Rainbow function -- | |
7 | ||
8 | local cR=255 | |
9 | local cG=0 | |
10 | local cB=0 | |
11 | local flg5=1 local omgidk=1 | |
12 | local add=7.5 | |
13 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
14 | if omgidk>10000 then omgidk=0 end | |
15 | omgidk=omgidk+1 | |
16 | if cR>=255 then flg5=1 end | |
17 | if cG>=255 then flg5=2 end | |
18 | if cB>=255 then flg5=3 end | |
19 | if flg5==1 then cR=cR-add cG=cG+add end | |
20 | if flg5==2 then cG=cG-add cB=cB+add end | |
21 | if flg5==3 then cB=cB-add cR=cR+add end | |
22 | color=Color3.fromRGB(cR,cG,cB) | |
23 | end) | |
24 | ||
25 | -- End of Rainbow function -- | |
26 | ||
27 | -- Player and Name function -- | |
28 | ||
29 | local Player = game.Players.localPlayer | |
30 | local Character = Player.Character | |
31 | local Humanoid = Character.Humanoid | |
32 | local LeftArm = Character["Left Arm"] | |
33 | local RightArm = Character["Right Arm"] | |
34 | local LeftLeg = Character["Left Leg"] | |
35 | local RightLeg = Character["Right Leg"] | |
36 | local Head = Character.Head | |
37 | local Torso = Character.Torso | |
38 | local RootPart = Character.HumanoidRootPart | |
39 | local RootJoint = RootPart.RootJoint | |
40 | local txt = Instance.new("BillboardGui", Character) | |
41 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
42 | local velocity = RootPart.Velocity.y | |
43 | CV = "Black" | |
44 | Player = game.Players.LocalPlayer | |
45 | char = Player.Character | |
46 | warn("Edit by 1x1x1x1x1x1x1x0x0x2 AND XDavodioX") | |
47 | local txt = Instance.new("BillboardGui", Character) | |
48 | txt.Adornee = Character.Head | |
49 | txt.Name = "_status" | |
50 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
51 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
52 | local text = Instance.new("TextLabel", txt) | |
53 | text.Size = UDim2.new(10, 0, 7, 0) | |
54 | text.FontSize = "Size24" | |
55 | text.TextScaled = true | |
56 | text.TextTransparency = 0 | |
57 | text.BackgroundTransparency = 1 | |
58 | text.TextTransparency = 0 | |
59 | text.TextStrokeTransparency = 0 | |
60 | text.Font = "Code" | |
61 | v = Instance.new("Part") | |
62 | v.Name = "ColorBrick" | |
63 | v.Parent = Player.Character | |
64 | v.FormFactor = "Symmetric" | |
65 | v.Anchored = true | |
66 | v.CanCollide = false | |
67 | v.BottomSurface = "Smooth" | |
68 | v.TopSurface = "Smooth" | |
69 | v.Size = Vector3.new(10, 5, 3) | |
70 | v.Transparency = 1 | |
71 | v.CFrame = Character.Torso.CFrame | |
72 | v.BrickColor = BrickColor.new(CV) | |
73 | v.Transparency = 1 | |
74 | touchCounter = 0 | |
75 | local cR=255 | |
76 | local cG=0 | |
77 | local cB=0 | |
78 | local flg5=1 local omgidk=1 | |
79 | local add=15 | |
80 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
81 | if omgidk>10000 then omgidk=0 end | |
82 | omgidk=omgidk+1 | |
83 | if cR>=255 then flg5=1 end | |
84 | if cG>=255 then flg5=2 end | |
85 | if cB>=255 then flg5=3 end | |
86 | if flg5==1 then cR=cR-add cG=cG+add end | |
87 | if flg5==2 then cG=cG-add cB=cB+add end | |
88 | if flg5==3 then cB=cB-add cR=cR+add end | |
89 | color=Color3.fromRGB(cR,cG,cB) | |
90 | text.TextColor3 = color | |
91 | end) | |
92 | v.Shape = "Block" | |
93 | text.Text = "The God of Banish" | |
94 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
95 | for _, c in pairs(workspace:children()) do | |
96 | local hum = c:findFirstChild("Humanoid") | |
97 | if hum ~= nil then | |
98 | local head = hit | |
99 | if head ~= nil then | |
100 | local targ = head.Position - Part.Position | |
101 | local mag = targ.magnitude | |
102 | if Magnitude >= mag and c.Name ~= Player.Name then | |
103 | CFuncs.Sound.Create("324867021", head, 1, 1) | |
104 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch) | |
105 | end | |
106 | end | |
107 | end | |
108 | end | |
109 | end | |
110 | ||
111 | script:ClearAllChildren() | |
112 | wait(0.2) | |
113 | ||
114 | -- Player Function -- | |
115 | ||
116 | Player = game:GetService("Players").LocalPlayer | |
117 | PlayerGui = Player.PlayerGui | |
118 | Cam = workspace.CurrentCamera | |
119 | Backpack = Player.Backpack | |
120 | Character = Player.Character | |
121 | Humanoid = Character.Humanoid | |
122 | Mouse = Player:GetMouse() | |
123 | RootPart = Character["HumanoidRootPart"] | |
124 | Torso = Character["Torso"] | |
125 | Head = Character["Head"] | |
126 | RightArm = Character["Right Arm"] | |
127 | LeftArm = Character["Left Arm"] | |
128 | RightLeg = Character["Right Leg"] | |
129 | LeftLeg = Character["Left Leg"] | |
130 | RootJoint = RootPart["RootJoint"] | |
131 | Neck = Torso["Neck"] | |
132 | RightShoulder = Torso["Right Shoulder"] | |
133 | LeftShoulder = Torso["Left Shoulder"] | |
134 | RightHip = Torso["Right Hip"] | |
135 | LeftHip = Torso["Left Hip"] | |
136 | local TIME = 0 | |
137 | local sick = Instance.new("Sound",Torso) | |
138 | ||
139 | IT = Instance.new | |
140 | CF = CFrame.new | |
141 | VT = Vector3.new | |
142 | RAD = math.rad | |
143 | C3 = Color3.new | |
144 | UD2 = UDim2.new | |
145 | BRICKC = BrickColor.new | |
146 | ANGLES = CFrame.Angles | |
147 | EULER = CFrame.fromEulerAnglesXYZ | |
148 | COS = math.cos | |
149 | ACOS = math.acos | |
150 | SIN = math.sin | |
151 | ASIN = math.asin | |
152 | ABS = math.abs | |
153 | MRANDOM = math.random | |
154 | FLOOR = math.floor | |
155 | ||
156 | --//=================================\\ | |
157 | --|| USEFUL VALUES | |
158 | --\\=================================// | |
159 | ||
160 | Animation_Speed = 3 | |
161 | local FORCERESET = false | |
162 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
163 | local Speed = 16 | |
164 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
165 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
166 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
167 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
168 | local DAMAGEMULTIPLIER = 1 | |
169 | local ANIM = "Idle" | |
170 | local ATTACK = false | |
171 | local EQUIPPED = false | |
172 | local HOLD = false | |
173 | local COMBO = 1 | |
174 | local Rooted = false | |
175 | local SINE = 0 | |
176 | local KEYHOLD = false | |
177 | local CHANGE = 2 / Animation_Speed | |
178 | local WALKINGANIM = false | |
179 | local VALUE1 = false | |
180 | local VALUE2 = false | |
181 | local ROBLOXIDLEANIMATION = IT("Animation") | |
182 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
183 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
184 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
185 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
186 | WEAPONGUI.Name = "BanishV3Gui" | |
187 | local Weapon = IT("Model") | |
188 | Weapon.Name = "Adds" | |
189 | local Effects = IT("Folder", Weapon) | |
190 | Effects.Name = "Effects" | |
191 | local ANIMATOR = Humanoid.Animator | |
192 | local ANIMATE = Character:FindFirstChild("Animate") | |
193 | local UNANCHOR = true | |
194 | local TOBANISH = {} | |
195 | script.Parent = PlayerGui | |
196 | ||
197 | --//=================================\\ | |
198 | --\\=================================// | |
199 | ||
200 | --//=================================\\ | |
201 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
202 | --\\=================================// | |
203 | ||
204 | ArtificialHB = Instance.new("BindableEvent", script) | |
205 | ArtificialHB.Name = "ArtificialHB" | |
206 | ||
207 | script:WaitForChild("ArtificialHB") | |
208 | ||
209 | frame = Frame_Speed | |
210 | tf = 0 | |
211 | allowframeloss = false | |
212 | tossremainder = false | |
213 | lastframe = tick() | |
214 | script.ArtificialHB:Fire() | |
215 | ||
216 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
217 | tf = tf + s | |
218 | if tf >= frame then | |
219 | if allowframeloss then | |
220 | script.ArtificialHB:Fire() | |
221 | lastframe = tick() | |
222 | else | |
223 | for i = 1, math.floor(tf / frame) do | |
224 | script.ArtificialHB:Fire() | |
225 | end | |
226 | lastframe = tick() | |
227 | end | |
228 | if tossremainder then | |
229 | tf = 0 | |
230 | else | |
231 | tf = tf - frame * math.floor(tf / frame) | |
232 | end | |
233 | end | |
234 | end) | |
235 | ||
236 | --//=================================\\ | |
237 | --\\=================================// | |
238 | ||
239 | --//=================================\\ | |
240 | --|| SOME FUNCTIONS | |
241 | --\\=================================// | |
242 | ||
243 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
244 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
245 | end | |
246 | ||
247 | function PositiveAngle(NUMBER) | |
248 | if NUMBER >= 0 then | |
249 | NUMBER = 0 | |
250 | end | |
251 | return NUMBER | |
252 | end | |
253 | ||
254 | function NegativeAngle(NUMBER) | |
255 | if NUMBER <= 0 then | |
256 | NUMBER = 0 | |
257 | end | |
258 | return NUMBER | |
259 | end | |
260 | ||
261 | function Swait(NUMBER) | |
262 | if NUMBER == 0 or NUMBER == nil then | |
263 | ArtificialHB.Event:wait() | |
264 | else | |
265 | for i = 1, NUMBER do | |
266 | ArtificialHB.Event:wait() | |
267 | end | |
268 | end | |
269 | end | |
270 | ||
271 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
272 | local NEWMESH = IT(MESH) | |
273 | if MESH == "SpecialMesh" then | |
274 | NEWMESH.MeshType = MESHTYPE | |
275 | if MESHID ~= "nil" and MESHID ~= "" then | |
276 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
277 | end | |
278 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
279 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
280 | end | |
281 | end | |
282 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
283 | NEWMESH.Scale = SCALE | |
284 | NEWMESH.Parent = PARENT | |
285 | return NEWMESH | |
286 | end | |
287 | ||
288 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
289 | local NEWPART = IT("Part") | |
290 | NEWPART.formFactor = FORMFACTOR | |
291 | NEWPART.Reflectance = REFLECTANCE | |
292 | NEWPART.Transparency = TRANSPARENCY | |
293 | NEWPART.CanCollide = false | |
294 | NEWPART.Locked = true | |
295 | NEWPART.Anchored = true | |
296 | if ANCHOR == false then | |
297 | NEWPART.Anchored = false | |
298 | end | |
299 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
300 | NEWPART.Name = NAME | |
301 | NEWPART.Size = SIZE | |
302 | NEWPART.Position = Torso.Position | |
303 | NEWPART.Material = MATERIAL | |
304 | NEWPART:BreakJoints() | |
305 | NEWPART.Parent = PARENT | |
306 | return NEWPART | |
307 | end | |
308 | ||
309 | local function weldBetween(a, b) | |
310 | local weldd = Instance.new("ManualWeld") | |
311 | weldd.Part0 = a | |
312 | weldd.Part1 = b | |
313 | weldd.C0 = CFrame.new() | |
314 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
315 | weldd.Parent = a | |
316 | return weldd | |
317 | end | |
318 | ||
319 | ||
320 | function QuaternionFromCFrame(cf) | |
321 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
322 | local trace = m00 + m11 + m22 | |
323 | if trace > 0 then | |
324 | local s = math.sqrt(1 + trace) | |
325 | local recip = 0.5 / s | |
326 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
327 | else | |
328 | local i = 0 | |
329 | if m11 > m00 then | |
330 | i = 1 | |
331 | end | |
332 | if m22 > (i == 0 and m00 or m11) then | |
333 | i = 2 | |
334 | end | |
335 | if i == 0 then | |
336 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
337 | local recip = 0.5 / s | |
338 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
339 | elseif i == 1 then | |
340 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
341 | local recip = 0.5 / s | |
342 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
343 | elseif i == 2 then | |
344 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
345 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
346 | end | |
347 | end | |
348 | end | |
349 | ||
350 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
351 | local xs, ys, zs = x + x, y + y, z + z | |
352 | local wx, wy, wz = w * xs, w * ys, w * zs | |
353 | local xx = x * xs | |
354 | local xy = x * ys | |
355 | local xz = x * zs | |
356 | local yy = y * ys | |
357 | local yz = y * zs | |
358 | local zz = z * zs | |
359 | 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)) | |
360 | end | |
361 | ||
362 | function QuaternionSlerp(a, b, t) | |
363 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
364 | local startInterp, finishInterp; | |
365 | if cosTheta >= 0.0001 then | |
366 | if (1 - cosTheta) > 0.0001 then | |
367 | local theta = ACOS(cosTheta) | |
368 | local invSinTheta = 1 / SIN(theta) | |
369 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
370 | finishInterp = SIN(t * theta) * invSinTheta | |
371 | else | |
372 | startInterp = 1 - t | |
373 | finishInterp = t | |
374 | end | |
375 | else | |
376 | if (1 + cosTheta) > 0.0001 then | |
377 | local theta = ACOS(-cosTheta) | |
378 | local invSinTheta = 1 / SIN(theta) | |
379 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
380 | finishInterp = SIN(t * theta) * invSinTheta | |
381 | else | |
382 | startInterp = t - 1 | |
383 | finishInterp = t | |
384 | end | |
385 | end | |
386 | 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 | |
387 | end | |
388 | ||
389 | function Clerp(a, b, t) | |
390 | local qa = {QuaternionFromCFrame(a)} | |
391 | local qb = {QuaternionFromCFrame(b)} | |
392 | local ax, ay, az = a.x, a.y, a.z | |
393 | local bx, by, bz = b.x, b.y, b.z | |
394 | local _t = 1 - t | |
395 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
396 | end | |
397 | ||
398 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
399 | local frame = IT("Frame") | |
400 | frame.BackgroundTransparency = TRANSPARENCY | |
401 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
402 | frame.Position = POSITION | |
403 | frame.Size = SIZE | |
404 | frame.BackgroundColor3 = COLOR | |
405 | frame.BorderColor3 = BORDERCOLOR | |
406 | frame.Name = NAME | |
407 | frame.Parent = PARENT | |
408 | return frame | |
409 | end | |
410 | ||
411 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
412 | local label = IT("TextLabel") | |
413 | label.BackgroundTransparency = 1 | |
414 | label.Size = UD2(1, 0, 1, 0) | |
415 | label.Position = UD2(0, 0, 0, 0) | |
416 | label.TextColor3 = TEXTCOLOR | |
417 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
418 | label.TextTransparency = TRANSPARENCY | |
419 | label.FontSize = TEXTFONTSIZE | |
420 | label.Font = TEXTFONT | |
421 | label.BorderSizePixel = BORDERSIZEPIXEL | |
422 | label.TextScaled = false | |
423 | label.Text = TEXT | |
424 | label.Name = NAME | |
425 | label.Parent = PARENT | |
426 | return label | |
427 | end | |
428 | ||
429 | function NoOutlines(PART) | |
430 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
431 | end | |
432 | ||
433 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
434 | local NEWWELD = IT(TYPE) | |
435 | NEWWELD.Part0 = PART0 | |
436 | NEWWELD.Part1 = PART1 | |
437 | NEWWELD.C0 = C0 | |
438 | NEWWELD.C1 = C1 | |
439 | NEWWELD.Parent = PARENT | |
440 | return NEWWELD | |
441 | end | |
442 | ||
443 | local S = IT("Sound") | |
444 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
445 | local NEWSOUND = nil | |
446 | coroutine.resume(coroutine.create(function() | |
447 | NEWSOUND = S:Clone() | |
448 | NEWSOUND.Parent = PARENT | |
449 | NEWSOUND.Volume = VOLUME | |
450 | NEWSOUND.Pitch = PITCH | |
451 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
452 | NEWSOUND:play() | |
453 | if DOESLOOP == true then | |
454 | NEWSOUND.Looped = true | |
455 | else | |
456 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
457 | NEWSOUND:remove() | |
458 | end | |
459 | end)) | |
460 | return NEWSOUND | |
461 | end | |
462 | ||
463 | function CFrameFromTopBack(at, top, back) | |
464 | local right = top:Cross(back) | |
465 | 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) | |
466 | end | |
467 | ||
468 | --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}) | |
469 | function WACKYEFFECT(Table) | |
470 | local TYPE = (Table.EffectType or "Sphere") | |
471 | local SIZE = (Table.Size or VT(1,1,1)) | |
472 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
473 | local TRANSPARENCY = (Table.Transparency or 0) | |
474 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
475 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
476 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
477 | local ROTATION1 = (Table.RotationX or 0) | |
478 | local ROTATION2 = (Table.RotationY or 0) | |
479 | local ROTATION3 = (Table.RotationZ or 0) | |
480 | local MATERIAL = (Table.Material or "Neon") | |
481 | local COLOR = (Table.Color or C3(1,1,1)) | |
482 | local TIME = (Table.Time or 45) | |
483 | local SOUNDID = (Table.SoundID or nil) | |
484 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
485 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
486 | coroutine.resume(coroutine.create(function() | |
487 | local PLAYSSOUND = false | |
488 | local SOUND = nil | |
489 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
490 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
491 | PLAYSSOUND = true | |
492 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
493 | end | |
494 | EFFECT.Color = COLOR | |
495 | local MSH = nil | |
496 | if TYPE == "Sphere" then | |
497 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
498 | elseif TYPE == "Block" then | |
499 | MSH = IT("BlockMesh",EFFECT) | |
500 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
501 | elseif TYPE == "Wave" then | |
502 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
503 | elseif TYPE == "Ring" then | |
504 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
505 | elseif TYPE == "Slash" then | |
506 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
507 | elseif TYPE == "Round Slash" then | |
508 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
509 | elseif TYPE == "Swirl" then | |
510 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
511 | elseif TYPE == "Skull" then | |
512 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
513 | elseif TYPE == "Crystal" then | |
514 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
515 | end | |
516 | if MSH ~= nil then | |
517 | local MOVESPEED = nil | |
518 | if MOVEDIRECTION ~= nil then | |
519 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
520 | end | |
521 | local GROWTH = SIZE - ENDSIZE | |
522 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
523 | if TYPE == "Block" then | |
524 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
525 | else | |
526 | EFFECT.CFrame = CFRAME | |
527 | end | |
528 | for LOOP = 1, TIME+1 do | |
529 | Swait() | |
530 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
531 | if TYPE == "Wave" then | |
532 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
533 | end | |
534 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
535 | if TYPE == "Block" then | |
536 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
537 | else | |
538 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
539 | end | |
540 | if MOVEDIRECTION ~= nil then | |
541 | local ORI = EFFECT.Orientation | |
542 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
543 | EFFECT.Orientation = ORI | |
544 | end | |
545 | end | |
546 | if PLAYSSOUND == false then | |
547 | EFFECT:remove() | |
548 | else | |
549 | SOUND.Stopped:Connect(function() | |
550 | EFFECT:remove() | |
551 | end) | |
552 | end | |
553 | else | |
554 | if PLAYSSOUND == false then | |
555 | EFFECT:remove() | |
556 | else | |
557 | repeat Swait() until SOUND.Playing == false | |
558 | EFFECT:remove() | |
559 | end | |
560 | end | |
561 | end)) | |
562 | end | |
563 | ||
564 | function MakeForm(PART,TYPE) | |
565 | if TYPE == "Cyl" then | |
566 | local MSH = IT("CylinderMesh",PART) | |
567 | elseif TYPE == "Ball" then | |
568 | local MSH = IT("SpecialMesh",PART) | |
569 | MSH.MeshType = "Sphere" | |
570 | elseif TYPE == "Wedge" then | |
571 | local MSH = IT("SpecialMesh",PART) | |
572 | MSH.MeshType = "Wedge" | |
573 | end | |
574 | end | |
575 | ||
576 | function SpawnTrail(FROM,TO,BIG) | |
577 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, BrickColor.random(), "Trail", VT(0,0,0)) | |
578 | MakeForm(TRAIL,"Cyl") | |
579 | local DIST = (FROM - TO).Magnitude | |
580 | if BIG == true then | |
581 | TRAIL.Size = VT(0.5,DIST,0.5) | |
582 | else | |
583 | TRAIL.Size = VT(0.25,DIST,0.25) | |
584 | end | |
585 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
586 | coroutine.resume(coroutine.create(function() | |
587 | for i = 1, 5 do | |
588 | Swait() | |
589 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
590 | end | |
591 | TRAIL:remove() | |
592 | end)) | |
593 | end | |
594 | ||
595 | Debris = game:GetService("Debris") | |
596 | ||
597 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
598 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
599 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
600 | end | |
601 | ||
602 | function turnto(position) | |
603 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
604 | end | |
605 | ||
606 | function Shatter(Part) | |
607 | if Part.Transparency == 0 then | |
608 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0)) | |
609 | Debris:AddItem(SOUNDPART,5) | |
610 | CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false) | |
611 | local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z | |
612 | local SIZESET = SIZE/4 | |
613 | local XOffset = Part.Size.X*1.5/SIZESET | |
614 | local YOffset = Part.Size.Y*1.5/SIZESET | |
615 | local ZOffset = Part.Size.Z*1.5/SIZESET | |
616 | for x = 1, math.ceil(XOffset) do | |
617 | for y = 1, math.ceil(YOffset) do | |
618 | for z = 1, math.ceil(ZOffset) do | |
619 | local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false) | |
620 | SHARD.CanCollide = true | |
621 | SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4)) | |
622 | SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3 | |
623 | Debris:AddItem(SHARD,MRANDOM(10,25)/3) | |
624 | end | |
625 | end | |
626 | end | |
627 | end | |
628 | Part:remove() | |
629 | end | |
630 | ||
631 | --//=================================\\ | |
632 | --|| WEAPON CREATION | |
633 | --\\=================================// | |
634 | ||
635 | local Particle = IT("ParticleEmitter",nil) | |
636 | Particle.Enabled = false | |
637 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
638 | Particle.LightEmission = 2 | |
639 | Particle.Rate = 200 | |
640 | Particle.ZOffset = 2 | |
641 | Particle.Rotation = NumberRange.new(-180, 180) | |
642 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
643 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
644 | Particle.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
645 | ||
646 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
647 | function ParticleEmitter(Table) | |
648 | local PRTCL = Particle:Clone() | |
649 | local Speed = Table.Speed or 5 | |
650 | local Drag = Table.Drag or 0 | |
651 | local Size1 = Table.Size1 or 1 | |
652 | local Size2 = Table.Size2 or 5 | |
653 | local Lifetime1 = Table.Lifetime1 or 1 | |
654 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
655 | local Parent = Table.Parent or Torso | |
656 | local Emit = Table.Emit or 100 | |
657 | local Offset = Table.Offset or 360 | |
658 | local Acel = Table.Acel or VT(0,0,0) | |
659 | local Enabled = Table.Enabled or false | |
660 | PRTCL.Parent = Parent | |
661 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
662 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
663 | PRTCL.Speed = NumberRange.new(Speed) | |
664 | PRTCL.VelocitySpread = Offset | |
665 | PRTCL.Drag = Drag | |
666 | PRTCL.Acceleration = Acel | |
667 | if Enabled == false then | |
668 | PRTCL:Emit(Emit) | |
669 | Debris:AddItem(PRTCL,Lifetime2) | |
670 | else | |
671 | PRTCL.Enabled = true | |
672 | end | |
673 | return PRTCL | |
674 | end | |
675 | ||
676 | function chatfunc(text) | |
677 | local chat = coroutine.wrap(function() | |
678 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
679 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
680 | end | |
681 | local Bill = Instance.new("BillboardGui",Character) | |
682 | Bill.Size = UDim2.new(0,100,0,40) | |
683 | Bill.StudsOffset = Vector3.new(0,3,0) | |
684 | Bill.Adornee = Character.Head | |
685 | Bill.Name = "TalkingBillBoard" | |
686 | local Hehe = Instance.new("TextLabel",Bill) | |
687 | Hehe.BackgroundTransparency = 1 | |
688 | Hehe.BorderSizePixel = 0 | |
689 | Hehe.Text = "" | |
690 | Hehe.Font = "Garamond" | |
691 | Hehe.TextSize = 40 | |
692 | Hehe.TextStrokeTransparency = 0 | |
693 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
694 | coroutine.resume(coroutine.create(function() | |
695 | while Hehe ~= nil do | |
696 | Swait() | |
697 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
698 | Hehe.Rotation = math.random(-5,5) | |
699 | Hehe.TextColor3 = Color3.new(0,0,0) | |
700 | Hehe.TextStrokeColor3 = Color3.fromRGB(cR,cG,cB) | |
701 | end | |
702 | end)) | |
703 | for i = 1,string.len(text),1 do | |
704 | Swait() | |
705 | Hehe.Text = string.sub(text,1,i) | |
706 | end | |
707 | Swait(90)--Re[math.random(1, 93)] | |
708 | for i = 0, 1, .025 do | |
709 | Swait() | |
710 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
711 | Hehe.TextStrokeTransparency = i | |
712 | Hehe.TextTransparency = i | |
713 | end | |
714 | Bill:Destroy() | |
715 | end) | |
716 | chat() | |
717 | end | |
718 | ||
719 | function onChatted(msg) | |
720 | chatfunc(msg) | |
721 | end | |
722 | ||
723 | Player.Chatted:connect(onChatted) | |
724 | ||
725 | local LeftHole = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
726 | MakeForm(LeftHole,"Cyl") | |
727 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
728 | local RightHole = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
729 | MakeForm(RightHole,"Cyl") | |
730 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
731 | ||
732 | local Handl = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
733 | local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
734 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
735 | MakeForm(Part,"Wedge") | |
736 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
737 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
738 | MakeForm(Part,"Wedge") | |
739 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
740 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
741 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
742 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
743 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
744 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
745 | MakeForm(Part,"Cyl") | |
746 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
747 | for i = 1, 8 do | |
748 | local Piece = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
749 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
750 | end | |
751 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
752 | MakeForm(Part,"Cyl") | |
753 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
754 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
755 | MakeForm(Part,"Ball") | |
756 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
757 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
758 | MakeForm(Part,"Wedge") | |
759 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
760 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
761 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
762 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
763 | MakeForm(Part,"Cyl") | |
764 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
765 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
766 | MakeForm(Part,"Cyl") | |
767 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
768 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
769 | MakeForm(Part,"Cyl") | |
770 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
771 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
772 | MakeForm(Part,"Wedge") | |
773 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
774 | local LASTPART = Handle | |
775 | for i = 1, 10 do | |
776 | if LASTPART == Handle then | |
777 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
778 | LASTPART = Part | |
779 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
780 | else | |
781 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
782 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
783 | LASTPART = Part | |
784 | end | |
785 | end | |
786 | ||
787 | local Handle = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
788 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
789 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
790 | MakeForm(Part,"Wedge") | |
791 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
792 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
793 | MakeForm(Part,"Wedge") | |
794 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
795 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
796 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
797 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
798 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
799 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
800 | MakeForm(Part,"Cyl") | |
801 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
802 | for i = 1, 8 do | |
803 | local Piece = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
804 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
805 | end | |
806 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
807 | MakeForm(Part,"Cyl") | |
808 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
809 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
810 | MakeForm(Part,"Ball") | |
811 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
812 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
813 | MakeForm(Part,"Wedge") | |
814 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
815 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
816 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
817 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
818 | MakeForm(Part,"Cyl") | |
819 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
820 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
821 | MakeForm(Part,"Cyl") | |
822 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
823 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
824 | MakeForm(Part,"Cyl") | |
825 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
826 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
827 | MakeForm(Part,"Wedge") | |
828 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
829 | local LASTPART = Handle | |
830 | for i = 1, 10 do | |
831 | if LASTPART == Handle then | |
832 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
833 | LASTPART = Part | |
834 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
835 | else | |
836 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
837 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
838 | LASTPART = Part | |
839 | end | |
840 | end | |
841 | ||
842 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) | |
843 | MakeForm(Eye,"Ball") | |
844 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
845 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) | |
846 | MakeForm(Eye,"Ball") | |
847 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
848 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) | |
849 | MakeForm(Eye,"Ball") | |
850 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
851 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) | |
852 | MakeForm(Eye,"Ball") | |
853 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
854 | local A = IT("Attachment",Torso) | |
855 | A.Position = VT(1,1.3,0) | |
856 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
857 | local B = IT("Attachment",Torso) | |
858 | B.Position = VT(-1.3,-0.6,0) | |
859 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
860 | local ChainLink = IT("Beam",Torso) | |
861 | ChainLink.Texture = "rbxassetid://73042633" | |
862 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
863 | ChainLink.TextureSpeed = 999 | |
864 | ChainLink.FaceCamera = true | |
865 | ChainLink.Width0 = 1 | |
866 | ChainLink.Width1 = 1 | |
867 | ChainLink.TextureLength = 3 | |
868 | ChainLink.Attachment0 = A | |
869 | ChainLink.Attachment1 = B | |
870 | ChainLink.CurveSize0 = 1.6 | |
871 | ChainLink.CurveSize1 = 1.6 | |
872 | ChainLink.FaceCamera = true | |
873 | ChainLink.Transparency = NumberSequence.new(0) | |
874 | local ChainLink = IT("Beam",Torso) | |
875 | ChainLink.Texture = "rbxassetid://73042633" | |
876 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
877 | ChainLink.TextureSpeed = 999 | |
878 | ChainLink.FaceCamera = true | |
879 | ChainLink.Width0 = 1 | |
880 | ChainLink.Width1 = 1 | |
881 | ChainLink.TextureLength = 3 | |
882 | ChainLink.Attachment0 = B | |
883 | ChainLink.Attachment1 = A | |
884 | ChainLink.CurveSize0 = 1.6 | |
885 | ChainLink.CurveSize1 = 1.6 | |
886 | ChainLink.FaceCamera = true | |
887 | ChainLink.Transparency = NumberSequence.new(0) | |
888 | local A = IT("Attachment",Torso) | |
889 | A.Position = VT(1.3,-0.85,0) | |
890 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
891 | local B = IT("Attachment",Torso) | |
892 | B.Position = VT(-1,2,0) | |
893 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
894 | local ChainLink = IT("Beam",Torso) | |
895 | ChainLink.Texture = "rbxassetid://73042633" | |
896 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
897 | ChainLink.TextureSpeed = 999 | |
898 | ChainLink.FaceCamera = true | |
899 | ChainLink.Width0 = 1 | |
900 | ChainLink.Width1 = 1 | |
901 | ChainLink.TextureLength = 3 | |
902 | ChainLink.Attachment0 = A | |
903 | ChainLink.Attachment1 = B | |
904 | ChainLink.CurveSize0 = 1.3 | |
905 | ChainLink.CurveSize1 = 1.3 | |
906 | ChainLink.FaceCamera = true | |
907 | ChainLink.Transparency = NumberSequence.new(0) | |
908 | local ChainLink = IT("Beam",Torso) | |
909 | ChainLink.Texture = "rbxassetid://73042633" | |
910 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
911 | ChainLink.TextureSpeed = 999 | |
912 | ChainLink.FaceCamera = true | |
913 | ChainLink.Width0 = 1 | |
914 | ChainLink.Width1 = 1 | |
915 | ChainLink.TextureLength = 3 | |
916 | ChainLink.Attachment0 = B | |
917 | ChainLink.Attachment1 = A | |
918 | ChainLink.CurveSize0 = 1.3 | |
919 | ChainLink.CurveSize1 = 1.3 | |
920 | ChainLink.FaceCamera = true | |
921 | ChainLink.Transparency = NumberSequence.new(0) | |
922 | ||
923 | local A = IT("Attachment",RightBarrel) | |
924 | A.Position = VT(0,-2.5,0) | |
925 | local B = IT("Attachment",RightBarrel) | |
926 | B.Position = VT(0,2.5,0) | |
927 | local Trail = IT("Trail",RightBarrel) | |
928 | Trail.Attachment0 = A | |
929 | Trail.Attachment1 = B | |
930 | Trail.Lifetime = 0.2 | |
931 | Trail.Color = ColorSequence.new(BRICKC"Gold".Color) | |
932 | Trail.Transparency = NumberSequence.new(0, 1) | |
933 | Trail.Enabled = false | |
934 | ||
935 | local LASTPART = Head | |
936 | for i = 1, 20 do | |
937 | local MATH = (1-(i/25)) | |
938 | if LASTPART == Head then | |
939 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
940 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
941 | LASTPART = Horn | |
942 | Horn.Color = C3((i*3-3)/255,0,0) | |
943 | else | |
944 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
945 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0)) | |
946 | LASTPART = Horn | |
947 | Horn.Color = C3((i*3-3)/255,0,0) | |
948 | end | |
949 | end | |
950 | ||
951 | local Barrel = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
952 | MakeForm(Barrel,"Cyl") | |
953 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
954 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
955 | MakeForm(Part,"Cyl") | |
956 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
957 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
958 | MakeForm(Part,"Wedge") | |
959 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
960 | local Hole = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
961 | MakeForm(Hole,"Cyl") | |
962 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
963 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
964 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
965 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
966 | local Part = CreatePart(3, Weapon, "Neon", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
967 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
968 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
969 | coroutine.resume(coroutine.create(function() | |
970 | while wait() do | |
971 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
972 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
973 | end | |
974 | end)) | |
975 | ||
976 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
977 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
978 | ||
979 | for _, c in pairs(Weapon:GetDescendants()) do | |
980 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
981 | c.Material = "Glass" | |
982 | c.Color = C3(255,0,0) | |
983 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
984 | c.Color = C3(1,0.5,0) | |
985 | c.Material = "Neon" | |
986 | elseif c.ClassName == "Part" and c.Name == "Horn" then | |
987 | c.Color = C3(1,0.5,0) | |
988 | c.Material = "Neon" | |
989 | end | |
990 | end | |
991 | ||
992 | Weapon.Parent = Character | |
993 | for _, c in pairs(Weapon:GetChildren()) do | |
994 | if c.ClassName == "Part" then | |
995 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
996 | end | |
997 | end | |
998 | ||
999 | local BODY = {} | |
1000 | for _, c in pairs(Character:GetDescendants()) do | |
1001 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1002 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1003 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1004 | end | |
1005 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name}) | |
1006 | elseif c:IsA("JointInstance") then | |
1007 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil}) | |
1008 | end | |
1009 | end | |
1010 | ||
1011 | function refit() | |
1012 | Character.Parent = workspace | |
1013 | for e = 1, #BODY do | |
1014 | if BODY[e] ~= nil then | |
1015 | local STUFF = BODY[e] | |
1016 | local PART = STUFF[1] | |
1017 | local PARENT = STUFF[2] | |
1018 | local MATERIAL = STUFF[3] | |
1019 | local COLOR = STUFF[4] | |
1020 | local TRANSPARENCY = STUFF[5] | |
1021 | --local SIZE = STUFF[6] | |
1022 | local NAME = STUFF[7] | |
1023 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1024 | PART.Material = MATERIAL | |
1025 | PART.Transparency = TRANSPARENCY | |
1026 | PART.Name = NAME | |
1027 | end | |
1028 | if PART.Parent ~= PARENT then | |
1029 | Humanoid:remove() | |
1030 | PART.Parent = PARENT | |
1031 | Humanoid = IT("Humanoid",Character) | |
1032 | end | |
1033 | end | |
1034 | end | |
1035 | end | |
1036 | ||
1037 | local SKILLTEXTCOLOR = C3(1,0.5,0) | |
1038 | local SKILLFONT = "Antique" | |
1039 | local SKILLTEXTSIZE = 7 | |
1040 | ||
1041 | Humanoid.Died:connect(function() | |
1042 | ATTACK = true | |
1043 | end) | |
1044 | ||
1045 | 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") | |
1046 | 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") | |
1047 | 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") | |
1048 | 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") | |
1049 | 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") | |
1050 | ||
1051 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Burning Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
1052 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Teleport", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
1053 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Burning Barrage", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
1054 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] Burning Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
1055 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[B] Burning Fury", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
1056 | ||
1057 | function printbye(Name) | |
1058 | 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, "} | |
1059 | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1060 | end | |
1061 | ||
1062 | workspace.ChildAdded:connect(function(instance) | |
1063 | for BANISH = 1, #TOBANISH do | |
1064 | if TOBANISH[BANISH] ~= nil then | |
1065 | if instance.Name == TOBANISH[BANISH] then | |
1066 | coroutine.resume(coroutine.create(function() | |
1067 | printbye(instance.Name) | |
1068 | instance:ClearAllChildren() | |
1069 | Debris:AddItem(instance,0.0005) | |
1070 | end)) | |
1071 | end | |
1072 | end | |
1073 | end | |
1074 | end) | |
1075 | ||
1076 | --//=================================\\ | |
1077 | --|| DAMAGING | |
1078 | --\\=================================// | |
1079 | ||
1080 | function Banish(Foe) | |
1081 | if Foe then | |
1082 | coroutine.resume(coroutine.create(function() | |
1083 | --if game.Players:FindFirstChild(Foe.Name) then | |
1084 | table.insert(TOBANISH,Foe.Name) | |
1085 | printbye(Foe.Name) | |
1086 | --end | |
1087 | Foe.Archivable = true | |
1088 | local CLONE = Foe:Clone() | |
1089 | Foe:Destroy() | |
1090 | CLONE.Parent = Effects | |
1091 | CLONE:BreakJoints() | |
1092 | local MATERIALS = {"Glass","Neon","Ice"} | |
1093 | for _, c in pairs(CLONE:GetDescendants()) do | |
1094 | if c:IsA("BasePart") then | |
1095 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1096 | CreateSound(340722848, c, 10, 1, false) | |
1097 | end | |
1098 | c.Anchored = true | |
1099 | c.Transparency = c.Transparency + 0.2 | |
1100 | c.Material = MATERIALS[MRANDOM(1,3)] | |
1101 | c.Color = Color3.fromRGB(cR,cG,cB) | |
1102 | if c.ClassName == "MeshPart" then | |
1103 | c.TextureID = "" | |
1104 | end | |
1105 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1106 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1107 | end | |
1108 | if c:FindFirstChildOfClass("Decal") then | |
1109 | c:FindFirstChildOfClass("Decal"):remove() | |
1110 | end | |
1111 | c.Name = "Banished" | |
1112 | c.CanCollide = false | |
1113 | else | |
1114 | c:remove() | |
1115 | end | |
1116 | end | |
1117 | local A = false | |
1118 | for i = 1, 35 do | |
1119 | if A == false then | |
1120 | A = true | |
1121 | elseif A == true then | |
1122 | A = false | |
1123 | end | |
1124 | for _, c in pairs(CLONE:GetDescendants()) do | |
1125 | if c:IsA("BasePart") then | |
1126 | c.Anchored = true | |
1127 | c.Material = MATERIALS[MRANDOM(1,3)] | |
1128 | c.Transparency = c.Transparency + 0.8/35 | |
1129 | if A == false then | |
1130 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1131 | elseif A == true then | |
1132 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1133 | end | |
1134 | end | |
1135 | end | |
1136 | Swait() | |
1137 | end | |
1138 | CLONE:remove() | |
1139 | end)) | |
1140 | end | |
1141 | end | |
1142 | ||
1143 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1144 | local CHILDREN = workspace:GetDescendants() | |
1145 | for index, CHILD in pairs(CHILDREN) do | |
1146 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1147 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1148 | if HUM then | |
1149 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1150 | if TORSO then | |
1151 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1152 | if ISBANISH == true then | |
1153 | Banish(CHILD) | |
1154 | else | |
1155 | if ISBANISH == "Gravity" then | |
1156 | HUM.PlatformStand = true | |
1157 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1158 | local grav = Instance.new("BodyPosition",TORSO) | |
1159 | grav.D = 15 | |
1160 | grav.P = 20000 | |
1161 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1162 | grav.position = TORSO.Position | |
1163 | grav.Name = "V3BanishForce"..Player.Name | |
1164 | else | |
1165 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1166 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1167 | end | |
1168 | else | |
1169 | HUM.PlatformStand = false | |
1170 | end | |
1171 | end | |
1172 | elseif ISBANISH == "Gravity" then | |
1173 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1174 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1175 | HUM.PlatformStand = false | |
1176 | end | |
1177 | end | |
1178 | end | |
1179 | end | |
1180 | end | |
1181 | end | |
1182 | end | |
1183 | ||
1184 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1185 | local CHILDREN = workspace:GetDescendants() | |
1186 | for index, CHILD in pairs(CHILDREN) do | |
1187 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1188 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1189 | if HUM then | |
1190 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1191 | if TORSO then | |
1192 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1193 | if BRUTAL == true then | |
1194 | Banish(CHILD) | |
1195 | else | |
1196 | CHILD:BreakJoints() | |
1197 | end | |
1198 | end | |
1199 | end | |
1200 | end | |
1201 | end | |
1202 | end | |
1203 | end | |
1204 | ||
1205 | --//=================================\\ | |
1206 | --|| ATTACK FUNCTIONS AND STUFF | |
1207 | --\\=================================// | |
1208 | ||
1209 | ||
1210 | local LAUGHS = {"907329532"} | |
1211 | ||
1212 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1213 | MakeForm(RightHole,"Cyl") | |
1214 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
1215 | MakeForm(LeftHole,"Cyl") | |
1216 | ||
1217 | function getbloody(victim,amount) | |
1218 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
1219 | PART.CFrame = victim.CFrame | |
1220 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1221 | Debris:AddItem(PART,5) | |
1222 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1223 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1224 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1225 | local prtcl = asd:Clone() | |
1226 | prtcl.Parent = PART | |
1227 | prtcl:Emit(amount*10) | |
1228 | end | |
1229 | ||
1230 | function Kill(Char) | |
1231 | local NewCharacter = IT("Model",Effects) | |
1232 | NewCharacter.Name = "Ow im ded ;-;" | |
1233 | for _, c in pairs(Char:GetDescendants()) do | |
1234 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1235 | if c.Parent == Char then | |
1236 | getbloody(c,5) | |
1237 | end | |
1238 | c:BreakJoints() | |
1239 | c.Material = "Glass" | |
1240 | c.Color = C3(0.5,0,0) | |
1241 | c.CanCollide = true | |
1242 | c.Transparency = 0.3 | |
1243 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1244 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1245 | end | |
1246 | if c.Name == "Head" then | |
1247 | c:ClearAllChildren() | |
1248 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1249 | end | |
1250 | if c.ClassName == "MeshPart" then | |
1251 | c.TextureID = "" | |
1252 | end | |
1253 | if c:FindFirstChildOfClass("BodyPosition") then | |
1254 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1255 | end | |
1256 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1257 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1258 | end | |
1259 | c.Parent = NewCharacter | |
1260 | c.Name = "DeadPart" | |
1261 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1262 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1263 | end | |
1264 | end | |
1265 | Char:remove() | |
1266 | Debris:AddItem(NewCharacter,5) | |
1267 | end | |
1268 | ||
1269 | function Banisher_Bullet() | |
1270 | ATTACK = true | |
1271 | Rooted = false | |
1272 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1273 | Swait() | |
1274 | turnto(Mouse.Hit.p) | |
1275 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1276 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1277 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1278 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1279 | 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) | |
1280 | 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) | |
1281 | end | |
1282 | repeat | |
1283 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1284 | Swait() | |
1285 | turnto(Mouse.Hit.p) | |
1286 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1287 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1288 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1289 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1290 | 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) | |
1291 | 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) | |
1292 | end | |
1293 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1294 | SpawnTrail(Hole.Position,POS) | |
1295 | if HIT ~= nil then | |
1296 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1297 | Banish(HIT.Parent) | |
1298 | end | |
1299 | end | |
1300 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,255,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1301 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,255,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1302 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,255,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1303 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,255,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1304 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1305 | Swait() | |
1306 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1307 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1308 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1309 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1310 | 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) | |
1311 | 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) | |
1312 | end | |
1313 | until KEYHOLD == false | |
1314 | ATTACK = false | |
1315 | Rooted = false | |
1316 | end | |
1317 | function Execute() | |
1318 | ATTACK = true | |
1319 | Rooted = false | |
1320 | local Part = CreatePart(3, Character, "Neon", 0, 0, "Mid gray", "Part", VT(0,1,4),false) | |
1321 | Part.Color = C3(0,0,0) | |
1322 | MakeForm(Part,"Wedge") | |
1323 | Part.CanCollide = true | |
1324 | 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)) | |
1325 | for i=0, 1, 0.1 / Animation_Speed do | |
1326 | Swait() | |
1327 | 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) | |
1328 | 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) | |
1329 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1330 | 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) | |
1331 | 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) | |
1332 | 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) | |
1333 | end | |
1334 | CreateSound(541909867, RightBarrel, 7, 1, false) | |
1335 | local TOCH = Part.Touched:Connect(function(hit) | |
1336 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent ~= Character then | |
1337 | Banish(hit.Parent) | |
1338 | end | |
1339 | end) | |
1340 | for i=0, 0.35, 0.1 / Animation_Speed do | |
1341 | Swait() | |
1342 | 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) | |
1343 | 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) | |
1344 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1345 | 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) | |
1346 | 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) | |
1347 | 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) | |
1348 | end | |
1349 | TOCH:disconnect() | |
1350 | for i=0, 0.35, 0.1 / Animation_Speed do | |
1351 | Swait() | |
1352 | 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) | |
1353 | 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) | |
1354 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.25, -0.3) * ANGLES(RAD(50), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1355 | 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) | |
1356 | 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) | |
1357 | 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) | |
1358 | end | |
1359 | Part:remove() | |
1360 | ATTACK = false | |
1361 | Rooted = false | |
1362 | end | |
1363 | function Banish_Grab() | |
1364 | ATTACK = true | |
1365 | Rooted = false | |
1366 | local TARGET = nil | |
1367 | local TORS = nil | |
1368 | local GYRO = IT("BodyGyro",RootPart) | |
1369 | GYRO.D = 175 | |
1370 | GYRO.P = 20000 | |
1371 | GYRO.MaxTorque = VT(0,40000,0) | |
1372 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1373 | local RANGE = 5 | |
1374 | CreateSound(541909867, Torso, 7, 1, false) | |
1375 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(12,0.5,12), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1376 | for i=0, 1, 0.1 / Animation_Speed do | |
1377 | Swait() | |
1378 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-2) | |
1379 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1380 | local CHILDREN = workspace:GetDescendants() | |
1381 | for index, CHILD in pairs(CHILDREN) do | |
1382 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1383 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1384 | if HUM then | |
1385 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1386 | if TORSO then | |
1387 | if (TORSO.Position - LeftHole.Position).Magnitude <= RANGE + TORSO.Size.Magnitude/5 then | |
1388 | RANGE = (TORSO.Position - LeftHole.Position).Magnitude | |
1389 | TARGET = HUM | |
1390 | TORS = TORSO | |
1391 | end | |
1392 | end | |
1393 | end | |
1394 | end | |
1395 | end | |
1396 | if TARGET then | |
1397 | break | |
1398 | end | |
1399 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) | |
1400 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1401 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1402 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1403 | 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) | |
1404 | 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) | |
1405 | end | |
1406 | GYRO:remove() | |
1407 | if TORS and TARGET then | |
1408 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
1409 | Rooted = true | |
1410 | local BODYPOSITION = IT("BodyPosition", TORS) | |
1411 | BODYPOSITION.P = 2000 | |
1412 | BODYPOSITION.D = 100 | |
1413 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1414 | for i=0, 1, 0.1 / Animation_Speed do | |
1415 | Swait() | |
1416 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1417 | BODYPOSITION.Position = TORS.Position | |
1418 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1419 | 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) | |
1420 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1421 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1422 | 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) | |
1423 | 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) | |
1424 | end | |
1425 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1426 | Swait() | |
1427 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1428 | BODYPOSITION.Position = TORS.Position | |
1429 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1430 | 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) | |
1431 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1432 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1433 | 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) | |
1434 | 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) | |
1435 | end | |
1436 | local LOOP = 0 | |
1437 | local LOOP2 = 0 | |
1438 | for i=0, 5, 0.1 / Animation_Speed do | |
1439 | Swait() | |
1440 | LOOP = LOOP + 1 | |
1441 | TORS.Anchored = true | |
1442 | LOOP2 = LOOP2 + 1 | |
1443 | if LOOP2 >= 5 then | |
1444 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.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}) | |
1445 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1446 | CreateSound(145080998, RightHole, 7, 1, false) | |
1447 | SpawnTrail(RightHole.Position,RightHole.CFrame*CF(0,500,0).p) | |
1448 | LOOP2 = 0 | |
1449 | getbloody(TORS,1) | |
1450 | end | |
1451 | TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1452 | BODYPOSITION.Position = TORS.Position | |
1453 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1454 | 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) | |
1455 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145 + 2 * SIN(LOOP / 12)), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1456 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1457 | 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) | |
1458 | 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) | |
1459 | end | |
1460 | BODYPOSITION:remove() | |
1461 | if TORS then | |
1462 | TORS.Anchored = false | |
1463 | ApplyAoE(TORS.Parent) | |
1464 | end | |
1465 | end | |
1466 | ATTACK = false | |
1467 | Rooted = false | |
1468 | end | |
1469 | function Banisher_Burn() | |
1470 | ATTACK = true | |
1471 | Rooted = true | |
1472 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false) | |
1473 | for i=0, 1, 0.1 / Animation_Speed do | |
1474 | Swait() | |
1475 | 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) | |
1476 | 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) | |
1477 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1478 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1479 | 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) | |
1480 | 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) | |
1481 | end | |
1482 | coroutine.resume(coroutine.create(function() | |
1483 | local POS = Mouse.Hit.p | |
1484 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Strike", VT(0,2000,0)) | |
1485 | MakeForm(RAY,"Cyl") | |
1486 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really blue", "Strike", VT(0,0,0)) | |
1487 | MakeForm(SPHERE,"Ball") | |
1488 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Strike", VT(0,0,0)) | |
1489 | MakeForm(SHIELD,"Ball") | |
1490 | SHIELD.CFrame = CF(POS) | |
1491 | RAY.CFrame = CF(POS) | |
1492 | SPHERE.CFrame = CF(POS) | |
1493 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
1494 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
1495 | for i = 1, 200 do | |
1496 | Swait() | |
1497 | 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}) | |
1498 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
1499 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
1500 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
1501 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
1502 | end | |
1503 | for i = 1, 45 do | |
1504 | Swait() | |
1505 | RAY.Transparency = RAY.Transparency + 1/45 | |
1506 | SPHERE.Transparency = RAY.Transparency | |
1507 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
1508 | end | |
1509 | RAY:remove() | |
1510 | SHIELD:remove() | |
1511 | SPHERE:remove() | |
1512 | end)) | |
1513 | for i=0, 1, 0.1 / Animation_Speed do | |
1514 | Swait() | |
1515 | 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) | |
1516 | 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) | |
1517 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1518 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1519 | 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) | |
1520 | 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) | |
1521 | end | |
1522 | ATTACK = false | |
1523 | Rooted = false | |
1524 | end | |
1525 | function Teleport() | |
1526 | ATTACK = true | |
1527 | Rooted = false | |
1528 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1529 | Swait() | |
1530 | 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) | |
1531 | 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) | |
1532 | end | |
1533 | for e = 1, #BODY do | |
1534 | if BODY[e] ~= nil then | |
1535 | local STUFF = BODY[e] | |
1536 | local PART = STUFF[1] | |
1537 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
1538 | local PRT = PART:Clone() | |
1539 | PRT.Anchored = true | |
1540 | PRT.CanCollide = false | |
1541 | PRT.Material = "Neon" | |
1542 | PRT.Color = C3(255,100,255) | |
1543 | PRT.Name = "WarpEffect" | |
1544 | PRT.Parent = Effects | |
1545 | PRT.CFrame = PART.CFrame | |
1546 | PRT:BreakJoints() | |
1547 | if PRT:FindFirstChildOfClass("Sound") then | |
1548 | PRT:FindFirstChildOfClass("Sound"):remove() | |
1549 | end | |
1550 | if PRT:FindFirstChildOfClass("Decal") then | |
1551 | PRT:FindFirstChildOfClass("Decal"):remove() | |
1552 | end | |
1553 | coroutine.resume(coroutine.create(function() | |
1554 | for i = 1, 100 do | |
1555 | Swait() | |
1556 | PRT.Transparency = PRT.Transparency + 1/100 | |
1557 | end | |
1558 | PRT:remove() | |
1559 | end)) | |
1560 | end | |
1561 | end | |
1562 | end | |
1563 | CreateSound(217767125, Torso, 10, 1) | |
1564 | local POS = RootPart.Orientation | |
1565 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
1566 | RootPart.Orientation = POS | |
1567 | RootJoint.Parent = RootPart | |
1568 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1569 | Swait() | |
1570 | 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) | |
1571 | 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) | |
1572 | end | |
1573 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1574 | Swait() | |
1575 | 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) | |
1576 | end | |
1577 | ATTACK = false | |
1578 | Rooted = false | |
1579 | end | |
1580 | function BanishmentBeam() | |
1581 | ATTACK = true | |
1582 | Rooted = false | |
1583 | local GYRO = IT("BodyGyro",RootPart) | |
1584 | GYRO.D = 100 | |
1585 | GYRO.P = 2000 | |
1586 | GYRO.MaxTorque = VT(0,4000000,0) | |
1587 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1588 | CreateSound("93724183", RightArm, 5, 1, false) | |
1589 | for i=1, 35 do | |
1590 | Swait() | |
1591 | 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}) | |
1592 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1593 | 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) | |
1594 | 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) | |
1595 | 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) | |
1596 | 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) | |
1597 | 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) | |
1598 | 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) | |
1599 | end | |
1600 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Lime green", "Lazer", VT(0,0,0)) | |
1601 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
1602 | local TOCH = BEAM.Touched:Connect(function(hit) | |
1603 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
1604 | Kill(hit) | |
1605 | end | |
1606 | end) | |
1607 | local I = 0 | |
1608 | repeat | |
1609 | Swait() | |
1610 | I = I + 1 | |
1611 | if I <= 10 then | |
1612 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
1613 | end | |
1614 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
1615 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
1616 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
1617 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
1618 | BEAM.Size = VT(2,2,DISTANCE) | |
1619 | 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}) | |
1620 | 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}) | |
1621 | 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}) | |
1622 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1623 | 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) | |
1624 | 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) | |
1625 | 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) | |
1626 | 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) | |
1627 | 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) | |
1628 | 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) | |
1629 | if ENDHIT ~= nil then | |
1630 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
1631 | Banish(ENDHIT) | |
1632 | end | |
1633 | end | |
1634 | until LOOP.Playing == false | |
1635 | GYRO:remove() | |
1636 | BEAM:remove() | |
1637 | ATTACK = false | |
1638 | Rooted = false | |
1639 | end | |
1640 | function Deathbound() | |
1641 | CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false) | |
1642 | ATTACK = true | |
1643 | Rooted = true | |
1644 | for i=0, 1, 0.1 / Animation_Speed do | |
1645 | Swait() | |
1646 | 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) | |
1647 | 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) | |
1648 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1649 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1650 | 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) | |
1651 | 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) | |
1652 | end | |
1653 | local DONE = false | |
1654 | local GATE = nil | |
1655 | local GATESPIN = true | |
1656 | coroutine.resume(coroutine.create(function() | |
1657 | repeat | |
1658 | Swait() | |
1659 | if GATE ~= nil then | |
1660 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
1661 | end | |
1662 | until GATESPIN == false | |
1663 | end)) | |
1664 | coroutine.resume(coroutine.create(function() | |
1665 | repeat | |
1666 | Swait() | |
1667 | 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) | |
1668 | 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) | |
1669 | 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) | |
1670 | 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) | |
1671 | 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) | |
1672 | 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) | |
1673 | until DONE == true | |
1674 | Swait(50) | |
1675 | for i = 1, 35 do | |
1676 | Swait(4) | |
1677 | local FIRED = false | |
1678 | local CHILDREN = workspace:GetDescendants() | |
1679 | for index, CHILD in pairs(CHILDREN) do | |
1680 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1681 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1682 | if HUM then | |
1683 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1684 | if TORSO then | |
1685 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
1686 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1687 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
1688 | 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}) | |
1689 | 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}) | |
1690 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1691 | Banish(CHILD) | |
1692 | FIRED = true | |
1693 | break | |
1694 | end | |
1695 | end | |
1696 | end | |
1697 | end | |
1698 | end | |
1699 | if FIRED == false then | |
1700 | 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))) | |
1701 | 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}) | |
1702 | 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}) | |
1703 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
1704 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
1705 | if HITBOD ~= nil then | |
1706 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
1707 | Kill(HITBOD.Parent) | |
1708 | end | |
1709 | end | |
1710 | end | |
1711 | end | |
1712 | for i = 1, 45 do | |
1713 | Swait() | |
1714 | GATE.Size = GATE.Size - VT(3,0,3) | |
1715 | end | |
1716 | GATESPIN = false | |
1717 | GATE:remove() | |
1718 | end)) | |
1719 | Swait(15) | |
1720 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
1721 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Teal", "Gate", VT(0,0,0)) | |
1722 | local DECAL = IT("Decal",GATE) | |
1723 | DECAL.Texture = "http://www.roblox.com/asset/?id=647661410" | |
1724 | DECAL.Face = "Top" | |
1725 | GATE.CFrame = CF(HITPOS) | |
1726 | CreateSound(160772554, GATE, 7, 1.3, false) | |
1727 | for i = 1, 45 do | |
1728 | Swait() | |
1729 | GATE.Size = GATE.Size + VT(3,0,3) | |
1730 | end | |
1731 | CreateSound(213603013, RightHole, 7, 1, false) | |
1732 | CreateSound(213603013, LeftHole, 7, 1, false) | |
1733 | 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}) | |
1734 | 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}) | |
1735 | ATTACK = false | |
1736 | Rooted = false | |
1737 | DONE = true | |
1738 | end | |
1739 | ||
1740 | ||
1741 | --//=================================\\ | |
1742 | --|| ASSIGN THINGS TO KEYS | |
1743 | --\\=================================// | |
1744 | ||
1745 | function MouseDown(Mouse) | |
1746 | if ATTACK == false then | |
1747 | Execute() | |
1748 | end | |
1749 | end | |
1750 | ||
1751 | function MouseUp(Mouse) | |
1752 | HOLD = false | |
1753 | end | |
1754 | ||
1755 | function KeyDown(Key) | |
1756 | KEYHOLD = true | |
1757 | if Key == "z" and ATTACK == false then | |
1758 | Banisher_Bullet() | |
1759 | end | |
1760 | ||
1761 | if Key == "b" and ATTACK == false then | |
1762 | Banisher_Burn() | |
1763 | end | |
1764 | ||
1765 | if Key == "c" and ATTACK == false then | |
1766 | BanishmentBeam() | |
1767 | end | |
1768 | ||
1769 | if Key == "v" and ATTACK == false then | |
1770 | Teleport() | |
1771 | end | |
1772 | ||
1773 | if Key == "x" and ATTACK == false then | |
1774 | Deathbound() | |
1775 | end | |
1776 | ||
1777 | if Key == "f" and ATTACK == false then | |
1778 | Banish_Grab() | |
1779 | end | |
1780 | end | |
1781 | ||
1782 | function KeyUp(Key) | |
1783 | KEYHOLD = false | |
1784 | end | |
1785 | ||
1786 | Mouse.Button1Down:connect(function(NEWKEY) | |
1787 | MouseDown(NEWKEY) | |
1788 | end) | |
1789 | Mouse.Button1Up:connect(function(NEWKEY) | |
1790 | MouseUp(NEWKEY) | |
1791 | end) | |
1792 | Mouse.KeyDown:connect(function(NEWKEY) | |
1793 | KeyDown(NEWKEY) | |
1794 | end) | |
1795 | Mouse.KeyUp:connect(function(NEWKEY) | |
1796 | KeyUp(NEWKEY) | |
1797 | end) | |
1798 | ||
1799 | --//=================================\\ | |
1800 | --\\=================================// | |
1801 | ||
1802 | ||
1803 | function unanchor() | |
1804 | if UNANCHOR == true then | |
1805 | g = Character:GetChildren() | |
1806 | for i = 1, #g do | |
1807 | if g[i].ClassName == "Part" then | |
1808 | g[i].Anchored = false | |
1809 | end | |
1810 | end | |
1811 | end | |
1812 | end | |
1813 | ||
1814 | ||
1815 | --//=================================\\ | |
1816 | --|| WRAP THE WHOLE SCRIPT UP | |
1817 | --\\=================================// | |
1818 | ||
1819 | Humanoid.Changed:connect(function(Jump) | |
1820 | if Jump == "Jump" and (Disable_Jump == true) then | |
1821 | Humanoid.Jump = false | |
1822 | end | |
1823 | end) | |
1824 | ||
1825 | local CONNECT = nil | |
1826 | ||
1827 | while true do | |
1828 | Swait() | |
1829 | ANIMATE.Parent = nil | |
1830 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
1831 | Humanoid = IT("Humanoid",Character) | |
1832 | end | |
1833 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
1834 | v:Stop(); | |
1835 | end | |
1836 | SINE = SINE + CHANGE | |
1837 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1838 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1839 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1840 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1841 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1842 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1843 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1844 | 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) / Animation_Speed) | |
1845 | 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) / Animation_Speed) | |
1846 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1847 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1848 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1849 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1850 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1851 | end | |
1852 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1853 | ANIM = "Jump" | |
1854 | if ATTACK == false then | |
1855 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1856 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1857 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1858 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1859 | 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) | |
1860 | 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) | |
1861 | end | |
1862 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1863 | ANIM = "Fall" | |
1864 | if ATTACK == false then | |
1865 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1866 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1867 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1868 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1869 | 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) | |
1870 | 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) | |
1871 | end | |
1872 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1873 | ANIM = "Idle" | |
1874 | if ATTACK == false then | |
1875 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
1876 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
1877 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1878 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1879 | RightHip.C0 = Clerp(RightHip.C0, CF(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 / Animation_Speed) | |
1880 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-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 / Animation_Speed) | |
1881 | end | |
1882 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1883 | ANIM = "Walk" | |
1884 | if ATTACK == false then | |
1885 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1886 | 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 / Animation_Speed) | |
1887 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1888 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
1889 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1890 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1891 | end | |
1892 | end | |
1893 | unanchor() | |
1894 | Humanoid.MaxHealth = "inf" | |
1895 | Humanoid.Health = "inf" | |
1896 | if Rooted == false then | |
1897 | Disable_Jump = false | |
1898 | Humanoid.WalkSpeed = Speed | |
1899 | elseif Rooted == true then | |
1900 | Disable_Jump = true | |
1901 | Humanoid.WalkSpeed = 0 | |
1902 | end | |
1903 | for _, c in pairs(Character:GetDescendants()) do | |
1904 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1905 | c.Material = "Neon" | |
1906 | c.Color = C3(0,0,0) | |
1907 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1908 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1909 | end | |
1910 | if c == Head then | |
1911 | if c:FindFirstChild("face") then | |
1912 | c.face:remove() | |
1913 | end | |
1914 | end | |
1915 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1916 | c.Color = Color3.fromRGB(cR,cG,cB) | |
1917 | c.Material = "Neon" | |
1918 | elseif c.ClassName == "Effects" and c.name == "Trail"then | |
1919 | c.Color = Color3.fromRGB(cR,cG,cB) | |
1920 | c.Material = "Neon" | |
1921 | elseif c.ClassName == "Part" and c.name == "SPHERE"then | |
1922 | c.Color = Color3.fromRGB(cR,cG,cB) | |
1923 | c.Material = "Neon" | |
1924 | elseif c.ClassName == "Effects" and c.name == "RAY"then | |
1925 | c.Color = Color3.fromRGB(cR,cG,cB) | |
1926 | c.Material = "Neon" | |
1927 | elseif c.ClassName == "Part" and c.name == "Horn" then | |
1928 | c.Color = Color3.fromRGB(cR,cG,cB) | |
1929 | c.Material = "Neon" | |
1930 | elseif c.ClassName == "Beam" then | |
1931 | c.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
1932 | elseif c.ClassName == "Particle" then | |
1933 | c.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
1934 | ||
1935 | elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then | |
1936 | c:remove() | |
1937 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
1938 | c:remove() | |
1939 | end | |
1940 | end | |
1941 | refit() | |
1942 | sick.Parent = Torso | |
1943 | sick:resume() | |
1944 | sick.Volume = 5235 | |
1945 | sick.Pitch = 1 | |
1946 | sick.SoundId = "rbxassetid://1386866434" | |
1947 | sick.Name = "GodofBanish" | |
1948 | end | |
1949 | ||
1950 | --//=================================\\ | |
1951 | --\\=================================// | |
1952 | ||
1953 | ||
1954 | ||
1955 | ||
1956 | ||
1957 | --//====================================================\\-- | |
1958 | --|| END OF SCRIPT | |
1959 | --\\====================================================//-- |