SHOW:
|
|
- or go back to the newest paste.
1 | script.Name = "Banisher Gun V3 / 1" | |
2 | --//====================================================\\-- | |
3 | --|| CREATED BY SHACKLUSTER | |
4 | --\\====================================================//-- | |
5 | ||
6 | - | script:ClearAllChildren() |
6 | + | script:ClearAllChildren(gun) |
7 | wait(0.2) | |
8 | ||
9 | Player = game:GetService("Players").LocalPlayer | |
10 | PlayerGui = Player.PlayerGui | |
11 | Cam = workspace.CurrentCamera | |
12 | Backpack = Player.Backpack | |
13 | Character = Player.Character | |
14 | Humanoid = Character.Humanoid | |
15 | Mouse = Player:GetMouse() | |
16 | RootPart = Character["HumanoidRootPart"] | |
17 | Torso = Character["Torso"] | |
18 | Head = Character["Head"] | |
19 | RightArm = Character["Right Arm"] | |
20 | LeftArm = Character["Left Arm"] | |
21 | RightLeg = Character["Right Leg"] | |
22 | LeftLeg = Character["Left Leg"] | |
23 | RootJoint = RootPart["RootJoint"] | |
24 | Neck = Torso["Neck"] | |
25 | RightShoulder = Torso["Right Shoulder"] | |
26 | LeftShoulder = Torso["Left Shoulder"] | |
27 | RightHip = Torso["Right Hip"] | |
28 | LeftHip = Torso["Left Hip"] | |
29 | local TIME = 0 | |
30 | local sick = Instance.new("Sound",Torso) | |
31 | ||
32 | IT = Instance.new | |
33 | CF = CFrame.new | |
34 | VT = Vector3.new | |
35 | RAD = math.rad | |
36 | C3 = Color3.new | |
37 | UD2 = UDim2.new | |
38 | BRICKC = BrickColor.new | |
39 | ANGLES = CFrame.Angles | |
40 | EULER = CFrame.fromEulerAnglesXYZ | |
41 | COS = math.cos | |
42 | ACOS = math.acos | |
43 | SIN = math.sin | |
44 | ASIN = math.asin | |
45 | ABS = math.abs | |
46 | MRANDOM = math.random | |
47 | FLOOR = math.floor | |
48 | LEFTWINGS = {} | |
49 | RIGHTWINGS = {} | |
50 | --//=================================\\ | |
51 | --|| USEFUL VALUES | |
52 | --\\=================================// | |
53 | ||
54 | Animation_Speed = 3 | |
55 | local FORCERESET = false | |
56 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
57 | local Speed = 16 | |
58 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
59 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
60 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
61 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
62 | local DAMAGEMULTIPLIER = 1 | |
63 | local ANIM = "Idle" | |
64 | local ATTACK = false | |
65 | local EQUIPPED = false | |
66 | local HOLD = false | |
67 | local COMBO = 1 | |
68 | local Rooted = false | |
69 | local SINE = 0 | |
70 | local KEYHOLD = false | |
71 | local CHANGE = 2 / Animation_Speed | |
72 | local WALKINGANIM = false | |
73 | local VALUE1 = false | |
74 | local VALUE2 = false | |
75 | local ROBLOXIDLEANIMATION = IT("Animation") | |
76 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
77 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
78 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
79 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
80 | WEAPONGUI.Name = "BanishV3Gui" | |
81 | local Weapon = IT("Model") | |
82 | Weapon.Name = "Adds" | |
83 | local Effects = IT("Folder", Weapon) | |
84 | Effects.Name = "Effects" | |
85 | local ANIMATOR = Humanoid.Animator | |
86 | local ANIMATE = Character:FindFirstChild("Animate") | |
87 | local UNANCHOR = true | |
88 | local TOBANISH = {} | |
89 | script.Parent = PlayerGui | |
90 | ||
91 | --//=================================\\ | |
92 | --\\=================================// | |
93 | ||
94 | ||
95 | --//=================================\\ | |
96 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
97 | --\\=================================// | |
98 | ||
99 | ArtificialHB = Instance.new("BindableEvent", script) | |
100 | ArtificialHB.Name = "ArtificialHB" | |
101 | ||
102 | script:WaitForChild("ArtificialHB") | |
103 | ||
104 | frame = Frame_Speed | |
105 | tf = 0 | |
106 | allowframeloss = false | |
107 | tossremainder = false | |
108 | lastframe = tick() | |
109 | script.ArtificialHB:Fire() | |
110 | ||
111 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
112 | tf = tf + s | |
113 | if tf >= frame then | |
114 | if allowframeloss then | |
115 | script.ArtificialHB:Fire() | |
116 | lastframe = tick() | |
117 | else | |
118 | for i = 1, math.floor(tf / frame) do | |
119 | script.ArtificialHB:Fire() | |
120 | end | |
121 | lastframe = tick() | |
122 | end | |
123 | if tossremainder then | |
124 | tf = 0 | |
125 | else | |
126 | tf = tf - frame * math.floor(tf / frame) | |
127 | end | |
128 | end | |
129 | end) | |
130 | ||
131 | --//=================================\\ | |
132 | --\\=================================// | |
133 | ||
134 | --//=================================\\ | |
135 | --|| SOME FUNCTIONS | |
136 | --\\=================================// | |
137 | ||
138 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
139 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
140 | end | |
141 | ||
142 | function PositiveAngle(NUMBER) | |
143 | if NUMBER >= 0 then | |
144 | NUMBER = 0 | |
145 | end | |
146 | return NUMBER | |
147 | end | |
148 | ||
149 | function NegativeAngle(NUMBER) | |
150 | if NUMBER <= 0 then | |
151 | NUMBER = 0 | |
152 | end | |
153 | return NUMBER | |
154 | end | |
155 | ||
156 | function Swait(NUMBER) | |
157 | if NUMBER == 0 or NUMBER == nil then | |
158 | ArtificialHB.Event:wait() | |
159 | else | |
160 | for i = 1, NUMBER do | |
161 | ArtificialHB.Event:wait() | |
162 | end | |
163 | end | |
164 | end | |
165 | ||
166 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
167 | local NEWMESH = IT(MESH) | |
168 | if MESH == "SpecialMesh" then | |
169 | NEWMESH.MeshType = MESHTYPE | |
170 | if MESHID ~= "nil" and MESHID ~= "" then | |
171 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
172 | end | |
173 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
174 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
175 | end | |
176 | end | |
177 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
178 | NEWMESH.Scale = SCALE | |
179 | NEWMESH.Parent = PARENT | |
180 | return NEWMESH | |
181 | end | |
182 | ||
183 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
184 | local NEWPART = IT("Part") | |
185 | NEWPART.formFactor = FORMFACTOR | |
186 | NEWPART.Reflectance = REFLECTANCE | |
187 | NEWPART.Transparency = TRANSPARENCY | |
188 | NEWPART.CanCollide = false | |
189 | NEWPART.Locked = true | |
190 | NEWPART.Anchored = true | |
191 | if ANCHOR == false then | |
192 | NEWPART.Anchored = false | |
193 | end | |
194 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
195 | NEWPART.Name = NAME | |
196 | NEWPART.Size = SIZE | |
197 | NEWPART.Position = Torso.Position | |
198 | NEWPART.Material = MATERIAL | |
199 | NEWPART:BreakJoints() | |
200 | NEWPART.Parent = PARENT | |
201 | return NEWPART | |
202 | end | |
203 | ||
204 | local function weldBetween(a, b) | |
205 | local weldd = Instance.new("ManualWeld") | |
206 | weldd.Part0 = a | |
207 | weldd.Part1 = b | |
208 | weldd.C0 = CFrame.new() | |
209 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
210 | weldd.Parent = a | |
211 | return weldd | |
212 | end | |
213 | ||
214 | ||
215 | function QuaternionFromCFrame(cf) | |
216 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
217 | local trace = m00 + m11 + m22 | |
218 | if trace > 0 then | |
219 | local s = math.sqrt(1 + trace) | |
220 | local recip = 0.5 / s | |
221 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
222 | else | |
223 | local i = 0 | |
224 | if m11 > m00 then | |
225 | i = 1 | |
226 | end | |
227 | if m22 > (i == 0 and m00 or m11) then | |
228 | i = 2 | |
229 | end | |
230 | if i == 0 then | |
231 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
232 | local recip = 0.5 / s | |
233 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
234 | elseif i == 1 then | |
235 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
236 | local recip = 0.5 / s | |
237 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
238 | elseif i == 2 then | |
239 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
240 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
241 | end | |
242 | end | |
243 | end | |
244 | ||
245 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
246 | local xs, ys, zs = x + x, y + y, z + z | |
247 | local wx, wy, wz = w * xs, w * ys, w * zs | |
248 | local xx = x * xs | |
249 | local xy = x * ys | |
250 | local xz = x * zs | |
251 | local yy = y * ys | |
252 | local yz = y * zs | |
253 | local zz = z * zs | |
254 | 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)) | |
255 | end | |
256 | ||
257 | function QuaternionSlerp(a, b, t) | |
258 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
259 | local startInterp, finishInterp; | |
260 | if cosTheta >= 0.0001 then | |
261 | if (1 - cosTheta) > 0.0001 then | |
262 | local theta = ACOS(cosTheta) | |
263 | local invSinTheta = 1 / SIN(theta) | |
264 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
265 | finishInterp = SIN(t * theta) * invSinTheta | |
266 | else | |
267 | startInterp = 1 - t | |
268 | finishInterp = t | |
269 | end | |
270 | else | |
271 | if (1 + cosTheta) > 0.0001 then | |
272 | local theta = ACOS(-cosTheta) | |
273 | local invSinTheta = 1 / SIN(theta) | |
274 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
275 | finishInterp = SIN(t * theta) * invSinTheta | |
276 | else | |
277 | startInterp = t - 1 | |
278 | finishInterp = t | |
279 | end | |
280 | end | |
281 | 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 | |
282 | end | |
283 | ||
284 | function Clerp(a, b, t) | |
285 | local qa = {QuaternionFromCFrame(a)} | |
286 | local qb = {QuaternionFromCFrame(b)} | |
287 | local ax, ay, az = a.x, a.y, a.z | |
288 | local bx, by, bz = b.x, b.y, b.z | |
289 | local _t = 1 - t | |
290 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
291 | end | |
292 | ||
293 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
294 | local frame = IT("Frame") | |
295 | frame.BackgroundTransparency = TRANSPARENCY | |
296 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
297 | frame.Position = POSITION | |
298 | frame.Size = SIZE | |
299 | frame.BackgroundColor3 = COLOR | |
300 | frame.BorderColor3 = BORDERCOLOR | |
301 | frame.Name = NAME | |
302 | frame.Parent = PARENT | |
303 | return frame | |
304 | end | |
305 | ||
306 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
307 | local label = IT("TextLabel") | |
308 | label.BackgroundTransparency = 1 | |
309 | label.Size = UD2(1, 0, 1, 0) | |
310 | label.Position = UD2(0, 0, 0, 0) | |
311 | label.TextColor3 = TEXTCOLOR | |
312 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
313 | label.TextTransparency = TRANSPARENCY | |
314 | label.FontSize = TEXTFONTSIZE | |
315 | label.Font = TEXTFONT | |
316 | label.BorderSizePixel = BORDERSIZEPIXEL | |
317 | label.TextScaled = false | |
318 | label.Text = TEXT | |
319 | label.Name = NAME | |
320 | label.Parent = PARENT | |
321 | return label | |
322 | end | |
323 | ||
324 | function NoOutlines(PART) | |
325 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
326 | end | |
327 | ||
328 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
329 | local NEWWELD = IT(TYPE) | |
330 | NEWWELD.Part0 = PART0 | |
331 | NEWWELD.Part1 = PART1 | |
332 | NEWWELD.C0 = C0 | |
333 | NEWWELD.C1 = C1 | |
334 | NEWWELD.Parent = PARENT | |
335 | return NEWWELD | |
336 | end | |
337 | ||
338 | local S = IT("Sound") | |
339 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
340 | local NEWSOUND = nil | |
341 | coroutine.resume(coroutine.create(function() | |
342 | NEWSOUND = S:Clone() | |
343 | NEWSOUND.Parent = PARENT | |
344 | NEWSOUND.Volume = VOLUME | |
345 | NEWSOUND.Pitch = PITCH | |
346 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
347 | NEWSOUND:play() | |
348 | if DOESLOOP == true then | |
349 | NEWSOUND.Looped = true | |
350 | else | |
351 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
352 | NEWSOUND:remove() | |
353 | end | |
354 | end)) | |
355 | return NEWSOUND | |
356 | end | |
357 | ||
358 | function CFrameFromTopBack(at, top, back) | |
359 | local right = top:Cross(back) | |
360 | 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) | |
361 | end | |
362 | ||
363 | --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}) | |
364 | function WACKYEFFECT(Table) | |
365 | local TYPE = (Table.EffectType or "Sphere") | |
366 | local SIZE = (Table.Size or VT(1,1,1)) | |
367 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
368 | local TRANSPARENCY = (Table.Transparency or 0) | |
369 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
370 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
371 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
372 | local ROTATION1 = (Table.RotationX or 0) | |
373 | local ROTATION2 = (Table.RotationY or 0) | |
374 | local ROTATION3 = (Table.RotationZ or 0) | |
375 | local MATERIAL = (Table.Material or "Neon") | |
376 | local COLOR = (Table.Color or C3(1,1,1)) | |
377 | local TIME = (Table.Time or 45) | |
378 | local SOUNDID = (Table.SoundID or nil) | |
379 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
380 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
381 | coroutine.resume(coroutine.create(function() | |
382 | local PLAYSSOUND = false | |
383 | local SOUND = nil | |
384 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
385 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
386 | PLAYSSOUND = true | |
387 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
388 | end | |
389 | EFFECT.Color = COLOR | |
390 | local MSH = nil | |
391 | if TYPE == "Sphere" then | |
392 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
393 | elseif TYPE == "Block" then | |
394 | MSH = IT("BlockMesh",EFFECT) | |
395 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
396 | elseif TYPE == "Wave" then | |
397 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
398 | elseif TYPE == "Ring" then | |
399 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
400 | elseif TYPE == "Slash" then | |
401 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
402 | elseif TYPE == "Round Slash" then | |
403 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
404 | elseif TYPE == "Swirl" then | |
405 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
406 | elseif TYPE == "Skull" then | |
407 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
408 | elseif TYPE == "Crystal" then | |
409 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
410 | end | |
411 | if MSH ~= nil then | |
412 | local MOVESPEED = nil | |
413 | if MOVEDIRECTION ~= nil then | |
414 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
415 | end | |
416 | local GROWTH = SIZE - ENDSIZE | |
417 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
418 | if TYPE == "Block" then | |
419 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
420 | else | |
421 | EFFECT.CFrame = CFRAME | |
422 | end | |
423 | for LOOP = 1, TIME+1 do | |
424 | Swait() | |
425 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
426 | if TYPE == "Wave" then | |
427 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
428 | end | |
429 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
430 | if TYPE == "Block" then | |
431 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
432 | else | |
433 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
434 | end | |
435 | if MOVEDIRECTION ~= nil then | |
436 | local ORI = EFFECT.Orientation | |
437 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
438 | EFFECT.Orientation = ORI | |
439 | end | |
440 | end | |
441 | if PLAYSSOUND == false then | |
442 | EFFECT:remove() | |
443 | else | |
444 | SOUND.Stopped:Connect(function() | |
445 | EFFECT:remove() | |
446 | end) | |
447 | end | |
448 | else | |
449 | if PLAYSSOUND == false then | |
450 | EFFECT:remove() | |
451 | else | |
452 | repeat Swait() until SOUND.Playing == false | |
453 | EFFECT:remove() | |
454 | end | |
455 | end | |
456 | end)) | |
457 | end | |
458 | ||
459 | function MakeForm(PART,TYPE) | |
460 | if TYPE == "Cyl" then | |
461 | local MSH = IT("CylinderMesh",PART) | |
462 | elseif TYPE == "Ball" then | |
463 | local MSH = IT("SpecialMesh",PART) | |
464 | MSH.MeshType = "Sphere" | |
465 | elseif TYPE == "Wedge" then | |
466 | local MSH = IT("SpecialMesh",PART) | |
467 | MSH.MeshType = "Wedge" | |
468 | end | |
469 | end | |
470 | ||
471 | function SpawnTrail(FROM,TO,BIG) | |
472 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
473 | MakeForm(TRAIL,"Cyl") | |
474 | local DIST = (FROM - TO).Magnitude | |
475 | if BIG == true then | |
476 | TRAIL.Size = VT(0.5,DIST,0.5) | |
477 | else | |
478 | TRAIL.Size = VT(0.25,DIST,0.25) | |
479 | end | |
480 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
481 | coroutine.resume(coroutine.create(function() | |
482 | for i = 1, 5 do | |
483 | Swait() | |
484 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
485 | end | |
486 | TRAIL:remove() | |
487 | end)) | |
488 | end | |
489 | ||
490 | Debris = game:GetService("Debris") | |
491 | ||
492 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
493 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
494 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
495 | end | |
496 | ||
497 | function turnto(position) | |
498 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
499 | end | |
500 | ||
501 | local EyeSizes={ | |
502 | NumberSequenceKeypoint.new(0,1,0), | |
503 | NumberSequenceKeypoint.new(1,0,0) | |
504 | } | |
505 | local EyeTrans={ | |
506 | NumberSequenceKeypoint.new(0,0.8,0), | |
507 | NumberSequenceKeypoint.new(1,1,0) | |
508 | } | |
509 | ||
510 | ||
511 | local PE=Instance.new("ParticleEmitter",nil) | |
512 | PE.LightEmission=.8 | |
513 | PE.Color = ColorSequence.new(BRICKC("Really red").Color) | |
514 | PE.Size=NumberSequence.new(EyeSizes) | |
515 | PE.Transparency=NumberSequence.new(EyeTrans) | |
516 | PE.Lifetime=NumberRange.new(0.35,1.5) | |
517 | PE.Rotation=NumberRange.new(0,360) | |
518 | PE.Rate=999 | |
519 | PE.VelocitySpread = 10000 | |
520 | PE.Acceleration = Vector3.new(0,0,0) | |
521 | PE.Drag = 5 | |
522 | PE.Speed = NumberRange.new(0,0,0) | |
523 | PE.Texture="http://www.roblox.com/asset/?id=1351966707" | |
524 | PE.ZOffset = -0 | |
525 | PE.Name = "PE" | |
526 | PE.Enabled = false | |
527 | ||
528 | ||
529 | function particles(art) | |
530 | local PARTICLES = PE:Clone() | |
531 | PARTICLES.Parent = art | |
532 | end | |
533 | ||
534 | ||
535 | --//=================================\\ | |
536 | --|| WEAPON CREATION | |
537 | --\\=================================// | |
538 | ||
539 | local Particle = IT("ParticleEmitter",nil) | |
540 | Particle.Enabled = false | |
541 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
542 | Particle.LightEmission = 0.5 | |
543 | Particle.Rate = 150 | |
544 | Particle.ZOffset = 0.2 | |
545 | Particle.Rotation = NumberRange.new(-180, 180) | |
546 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
547 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
548 | Particle.Color = ColorSequence.new(C3(0,0,0),C3(1,1,1)) | |
549 | ||
550 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
551 | function ParticleEmitter(Table) | |
552 | local PRTCL = Particle:Clone() | |
553 | local Speed = Table.Speed or 5 | |
554 | local Drag = Table.Drag or 0 | |
555 | local Size1 = Table.Size1 or 1 | |
556 | local Size2 = Table.Size2 or 5 | |
557 | local Lifetime1 = Table.Lifetime1 or 1 | |
558 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
559 | local Parent = Table.Parent or Torso | |
560 | local Emit = Table.Emit or 100 | |
561 | local Offset = Table.Offset or 360 | |
562 | local Acel = Table.Acel or VT(0,0,0) | |
563 | local Enabled = Table.Enabled or false | |
564 | PRTCL.Parent = Parent | |
565 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
566 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
567 | PRTCL.Speed = NumberRange.new(Speed) | |
568 | PRTCL.VelocitySpread = Offset | |
569 | PRTCL.Drag = Drag | |
570 | PRTCL.Acceleration = Acel | |
571 | if Enabled == false then | |
572 | PRTCL:Emit(Emit) | |
573 | Debris:AddItem(PRTCL,Lifetime2) | |
574 | else | |
575 | PRTCL.Enabled = true | |
576 | end | |
577 | return PRTCL | |
578 | end | |
579 | ||
580 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
581 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
582 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
583 | MakeForm(Part,"Wedge") | |
584 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
585 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
586 | MakeForm(Part,"Wedge") | |
587 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
588 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
589 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
590 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
591 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
592 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
593 | MakeForm(Part,"Cyl") | |
594 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
595 | for i = 1, 8 do | |
596 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
597 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
598 | end | |
599 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
600 | MakeForm(Part,"Cyl") | |
601 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
602 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
603 | MakeForm(Part,"Ball") | |
604 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
605 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
606 | MakeForm(Part,"Wedge") | |
607 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
608 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
609 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
610 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
611 | MakeForm(Part,"Cyl") | |
612 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
613 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
614 | MakeForm(Part,"Cyl") | |
615 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
616 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
617 | MakeForm(Part,"Cyl") | |
618 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
619 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
620 | MakeForm(Part,"Wedge") | |
621 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
622 | local LASTPART = Handle | |
623 | for i = 1, 10 do | |
624 | if LASTPART == Handle then | |
625 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
626 | LASTPART = Part | |
627 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
628 | else | |
629 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
630 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
631 | LASTPART = Part | |
632 | end | |
633 | end | |
634 | ||
635 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
636 | MakeForm(Barrel,"Cyl") | |
637 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
638 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
639 | MakeForm(Part,"Cyl") | |
640 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
641 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
642 | MakeForm(Part,"Wedge") | |
643 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
644 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
645 | MakeForm(Hole,"Cyl") | |
646 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
647 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
648 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
649 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
650 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
651 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
652 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
653 | coroutine.resume(coroutine.create(function() | |
654 | while wait() do | |
655 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
656 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
657 | end | |
658 | end)) | |
659 | ||
660 | 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)}) | |
661 | --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)}) | |
662 | ||
663 | for _, c in pairs(Weapon:GetDescendants()) do | |
664 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
665 | c.Material = "Glass" | |
666 | c.Color = C3(0,0,0) | |
667 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
668 | c.Color = C3(0,0,0) | |
669 | c.Material = "Neon" | |
670 | end | |
671 | end | |
672 | ||
673 | Weapon.Parent = Character | |
674 | for _, c in pairs(Weapon:GetChildren()) do | |
675 | if c.ClassName == "Part" then | |
676 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
677 | end | |
678 | end | |
679 | ||
680 | local SKILLTEXTCOLOR = C3(0,0,0) | |
681 | local SKILLFONT = "Antique" | |
682 | local SKILLTEXTSIZE = 7 | |
683 | ||
684 | Humanoid.Died:connect(function() | |
685 | ATTACK = true | |
686 | end) | |
687 | ||
688 | 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") | |
689 | --[[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") | |
690 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
691 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
692 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
693 | ]] | |
694 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
695 | --[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
696 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
697 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
698 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
699 | ]] | |
700 | function printbye(Name) | |
701 | 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, "} | |
702 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
703 | end | |
704 | ||
705 | workspace.ChildAdded:connect(function(instance) | |
706 | for BANISH = 1, #TOBANISH do | |
707 | if TOBANISH[BANISH] ~= nil then | |
708 | if instance.Name == TOBANISH[BANISH] then | |
709 | coroutine.resume(coroutine.create(function() | |
710 | printbye(instance.Name) | |
711 | instance:ClearAllChildren() | |
712 | Debris:AddItem(instance,0.0005) | |
713 | end)) | |
714 | end | |
715 | end | |
716 | end | |
717 | end) | |
718 | ||
719 | local Back = CreatePart(0, Character, "Neon", 0, 0, "Really black", "Wing", VT(1,1,0.35),false) | |
720 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0)) | |
721 | ||
722 | local ANGLE = 35 | |
723 | for i = 1, 5 do | |
724 | local Wing = CreatePart(0, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.15,2+(i/2),0.15),false) | |
725 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) | |
726 | local Wing2 = CreatePart(0, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.25,1,0.25),false) | |
727 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
728 | ANGLE = ANGLE - 15 | |
729 | table.insert(LEFTWINGS,WingWeld) | |
730 | end | |
731 | ANGLE = 35 | |
732 | for i = 1, 5 do | |
733 | local Wing = CreatePart(0, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.15,2+(i/2),0.15),false) | |
734 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) | |
735 | local Wing2 = CreatePart(0, Character, "Neon", 0, 0, "Really black", "Wing", VT(0.25,1,0.25),false) | |
736 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
737 | ANGLE = ANGLE - 15 | |
738 | table.insert(RIGHTWINGS,WingWeld) | |
739 | end | |
740 | ||
741 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
742 | PRT.Color = C3(0,0,0) | |
743 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
744 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
745 | ||
746 | for i = 1, 8 do | |
747 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
748 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
749 | end | |
750 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
751 | MakeForm(Part,"Wedge") | |
752 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
753 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false) | |
754 | MakeForm(Part,"Cyl") | |
755 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
756 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
757 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
758 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.5),false) | |
759 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
760 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false) | |
761 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
762 | local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false) | |
763 | MakeForm(LeftBarrel,"Cyl") | |
764 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
765 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false) | |
766 | MakeForm(Part,"Wedge") | |
767 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
768 | local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
769 | MakeForm(LeftHole,"Cyl") | |
770 | CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
771 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really purple", "Eye", VT(0.6,0.1,1)/2,false) | |
772 | MakeForm(Eye,"Ball") | |
773 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
774 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really purple", "Eye", VT(0.6,0.1,1)/2,false) | |
775 | MakeForm(Eye,"Ball") | |
776 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
777 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really purple", "Eye", VT(0.1,1,1)/2,false) | |
778 | MakeForm(Eye,"Ball") | |
779 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
780 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really purple", "Eye", VT(0.1,1,1)/2,false) | |
781 | MakeForm(Eye,"Ball") | |
782 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
783 | local A = IT("Attachment",Torso) | |
784 | A.Position = VT(1,1.3,0) | |
785 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
786 | local B = IT("Attachment",Torso) | |
787 | B.Position = VT(-1.3,-0.6,0) | |
788 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
789 | local ChainLink = IT("Beam",Torso) | |
790 | ChainLink.Texture = "rbxassetid://73042633" | |
791 | ChainLink.Color = ColorSequence.new(C3(0,0,0)) | |
792 | ChainLink.TextureSpeed = 1 | |
793 | ChainLink.FaceCamera = true | |
794 | ChainLink.Width0 = 1 | |
795 | ChainLink.Width1 = 1 | |
796 | ChainLink.TextureLength = 3 | |
797 | ChainLink.Attachment0 = A | |
798 | ChainLink.Attachment1 = B | |
799 | ChainLink.CurveSize0 = 1.6 | |
800 | ChainLink.CurveSize1 = 1.6 | |
801 | ChainLink.FaceCamera = true | |
802 | ChainLink.Transparency = NumberSequence.new(0) | |
803 | local ChainLink = IT("Beam",Torso) | |
804 | ChainLink.Texture = "rbxassetid://73042633" | |
805 | ChainLink.Color = ColorSequence.new(C3(0,0,0)) | |
806 | ChainLink.TextureSpeed = 1 | |
807 | ChainLink.FaceCamera = true | |
808 | ChainLink.Width0 = 1 | |
809 | ChainLink.Width1 = 1 | |
810 | ChainLink.TextureLength = 3 | |
811 | ChainLink.Attachment0 = B | |
812 | ChainLink.Attachment1 = A | |
813 | ChainLink.CurveSize0 = 1.6 | |
814 | ChainLink.CurveSize1 = 1.6 | |
815 | ChainLink.FaceCamera = true | |
816 | ChainLink.Transparency = NumberSequence.new(0) | |
817 | local A = IT("Attachment",Torso) | |
818 | A.Position = VT(1.3,-0.85,0) | |
819 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
820 | local B = IT("Attachment",Torso) | |
821 | B.Position = VT(-1,2,0) | |
822 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
823 | local ChainLink = IT("Beam",Torso) | |
824 | ChainLink.Texture = "rbxassetid://73042633" | |
825 | ChainLink.Color = ColorSequence.new(C3(0,0,0)) | |
826 | ChainLink.TextureSpeed = 1 | |
827 | ChainLink.FaceCamera = true | |
828 | ChainLink.Width0 = 1 | |
829 | ChainLink.Width1 = 1 | |
830 | ChainLink.TextureLength = 3 | |
831 | ChainLink.Attachment0 = A | |
832 | ChainLink.Attachment1 = B | |
833 | ChainLink.CurveSize0 = 1.3 | |
834 | ChainLink.CurveSize1 = 1.3 | |
835 | ChainLink.FaceCamera = true | |
836 | ChainLink.Transparency = NumberSequence.new(0) | |
837 | local ChainLink = IT("Beam",Torso) | |
838 | ChainLink.Texture = "rbxassetid://73042633" | |
839 | ChainLink.Color = ColorSequence.new(C3(0,0,0)) | |
840 | ChainLink.TextureSpeed = 1 | |
841 | ChainLink.FaceCamera = true | |
842 | ChainLink.Width0 = 1 | |
843 | ChainLink.Width1 = 1 | |
844 | ChainLink.TextureLength = 3 | |
845 | ChainLink.Attachment0 = B | |
846 | ChainLink.Attachment1 = A | |
847 | ChainLink.CurveSize0 = 1.3 | |
848 | ChainLink.CurveSize1 = 1.3 | |
849 | ChainLink.FaceCamera = true | |
850 | ChainLink.Transparency = NumberSequence.new(0) | |
851 | ||
852 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightLeg, Emit = 100, Offset = 360, Enabled = true}) | |
853 | PRT.LockedToPart = true | |
854 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftLeg, Emit = 100, Offset = 360, Enabled = true}) | |
855 | PRT.LockedToPart = true | |
856 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = true}) | |
857 | PRT.LockedToPart = true | |
858 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = RightArm, Emit = 100, Offset = 360, Enabled = true}) | |
859 | PRT.LockedToPart = true | |
860 | local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 0.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = LeftArm, Emit = 100, Offset = 360, Enabled = true}) | |
861 | PRT.LockedToPart = true | |
862 | for _, c in pairs(Character:GetDescendants()) do | |
863 | if c and c.Parent then | |
864 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
865 | local ACCESSORY = c.Parent | |
866 | c.Parent = Character | |
867 | if c then | |
868 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then | |
869 | weldBetween(Head,c) | |
870 | else | |
871 | weldBetween(Torso,c) | |
872 | end | |
873 | end | |
874 | ACCESSORY:remove() | |
875 | elseif c.Parent.ClassName ~= "Accessory" and c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
876 | c.Material = "Neon" | |
877 | c.Color = C3(0,0,0) | |
878 | if c:FindFirstChildOfClass("SpecialMesh") then | |
879 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
880 | end | |
881 | if c == Head then | |
882 | if c:FindFirstChild("face") then | |
883 | c.face:remove() | |
884 | end | |
885 | end | |
886 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
887 | c.Color = C3(0,0,0) | |
888 | c.Material = "Neon" | |
889 | elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then | |
890 | c:remove() | |
891 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
892 | c:remove() | |
893 | end | |
894 | end | |
895 | end | |
896 | ||
897 | local BODY = {} | |
898 | for _, c in pairs(Character:GetDescendants()) do | |
899 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
900 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
901 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
902 | end | |
903 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
904 | elseif c:IsA("JointInstance") then | |
905 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
906 | end | |
907 | end | |
908 | for e = 1, #BODY do | |
909 | if BODY[e] ~= nil then | |
910 | local STUFF = BODY[e] | |
911 | local PART = STUFF[1] | |
912 | local PARENT = STUFF[2] | |
913 | local MATERIAL = STUFF[3] | |
914 | local COLOR = STUFF[4] | |
915 | local TRANSPARENCY = STUFF[5] | |
916 | if PART.ClassName == "Part" and PART ~= RootPart then | |
917 | PART.Material = MATERIAL | |
918 | PART.Color = COLOR | |
919 | PART.Transparency = TRANSPARENCY | |
920 | end | |
921 | PART.AncestryChanged:Connect(function() | |
922 | PART.Parent = PARENT | |
923 | end) | |
924 | end | |
925 | end | |
926 | function refit() | |
927 | Character.Parent = workspace | |
928 | for e = 1, #BODY do | |
929 | if BODY[e] ~= nil then | |
930 | local STUFF = BODY[e] | |
931 | local PART = STUFF[1] | |
932 | local PARENT = STUFF[2] | |
933 | local MATERIAL = STUFF[3] | |
934 | local COLOR = STUFF[4] | |
935 | local TRANSPARENCY = STUFF[5] | |
936 | if PART:IsA("BasePart") and PART ~= RootPart then | |
937 | PART.Material = MATERIAL | |
938 | PART.Color = COLOR | |
939 | PART.Transparency = 0 | |
940 | end | |
941 | if PART.Parent ~= PARENT then | |
942 | Humanoid:remove() | |
943 | PART.Parent = PARENT | |
944 | Humanoid = IT("Humanoid",Character) | |
945 | end | |
946 | end | |
947 | end | |
948 | end | |
949 | ||
950 | Humanoid.Died:connect(function() | |
951 | refit() | |
952 | end) | |
953 | ||
954 | --//=================================\\ | |
955 | --|| DAMAGING | |
956 | --\\=================================// | |
957 | ||
958 | function KillChildren(v) | |
959 | v:BreakJoints() | |
960 | for _, c in pairs(v:GetChildren()) do | |
961 | if c:IsA("BasePart") then | |
962 | if c.Transparency < 1 then | |
963 | if c:FindFirstChildOfClass("Decal") then | |
964 | c:FindFirstChildOfClass("Decal"):remove() | |
965 | end | |
966 | particles(c) | |
967 | c.PE.Enabled = true | |
968 | c.Parent = Effects | |
969 | c.CanCollide = false | |
970 | c.Material = "Neon" | |
971 | c.Color = C3(0,0,0) | |
972 | c.Transparency = 1 | |
973 | local grav = Instance.new("BodyPosition",c) | |
974 | grav.P = 20000 | |
975 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
976 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
977 | grav.Name = "GravityForce" | |
978 | coroutine.resume(coroutine.create(function() | |
979 | for i = 1, 20 do | |
980 | Swait() | |
981 | c.Transparency = c.Transparency + 1/20 | |
982 | end | |
983 | c.PE.Enabled = false | |
984 | Debris:AddItem(c,2) | |
985 | end)) | |
986 | end | |
987 | end | |
988 | end | |
989 | end | |
990 | ||
991 | ||
992 | function Kill(Char) | |
993 | local NewCharacter = Instance.new("Model",Effects) | |
994 | NewCharacter.Name = "Ow im ded ;-;" | |
995 | for _, c in pairs(Char:GetDescendants()) do | |
996 | if c:IsA("BasePart") and c.Transparency == 0 then | |
997 | if c.Parent == Char then | |
998 | end | |
999 | c:BreakJoints() | |
1000 | c.Material = "Neon" | |
1001 | c.Color = C3(0,0,0) | |
1002 | c.CanCollide = true | |
1003 | c.Transparency = 0 | |
1004 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1005 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1006 | end | |
1007 | if c.Name == "Head" then | |
1008 | c:ClearAllChildren() | |
1009 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1010 | end | |
1011 | if c.ClassName == "MeshPart" then | |
1012 | c.TextureID = "" | |
1013 | end | |
1014 | if c:FindFirstChildOfClass("BodyPosition") then | |
1015 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1016 | end | |
1017 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1018 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1019 | end | |
1020 | c.Parent = NewCharacter | |
1021 | c.Name = "DeadPart" | |
1022 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1023 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1024 | end | |
1025 | end | |
1026 | Char:remove() | |
1027 | Debris:AddItem(NewCharacter,5) | |
1028 | end | |
1029 | ||
1030 | function Banish(Foe) | |
1031 | if Foe then | |
1032 | coroutine.resume(coroutine.create(function() | |
1033 | --if game.Players:FindFirstChild(Foe.Name) then | |
1034 | table.insert(TOBANISH,Foe.Name) | |
1035 | printbye(Foe.Name) | |
1036 | --end | |
1037 | Foe.Archivable = true | |
1038 | local CLONE = Foe:Clone() | |
1039 | Foe:Destroy() | |
1040 | CLONE.Parent = Effects | |
1041 | CLONE:BreakJoints() | |
1042 | local MATERIALS = {"Glass","Neon"} | |
1043 | for _, c in pairs(CLONE:GetDescendants()) do | |
1044 | if c:IsA("BasePart") then | |
1045 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1046 | CreateSound(340722848, c, 10, 1, false) | |
1047 | end | |
1048 | c.Anchored = true | |
1049 | c.Transparency = c.Transparency + 0.2 | |
1050 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1051 | c.Color = C3(0,0,0) | |
1052 | if c.ClassName == "MeshPart" then | |
1053 | c.TextureID = "" | |
1054 | end | |
1055 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1056 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1057 | end | |
1058 | if c:FindFirstChildOfClass("Decal") then | |
1059 | c:FindFirstChildOfClass("Decal"):remove() | |
1060 | end | |
1061 | c.Name = "Banished" | |
1062 | c.CanCollide = false | |
1063 | else | |
1064 | c:remove() | |
1065 | end | |
1066 | end | |
1067 | local A = false | |
1068 | for i = 1, 35 do | |
1069 | if A == false then | |
1070 | A = true | |
1071 | elseif A == true then | |
1072 | A = false | |
1073 | end | |
1074 | for _, c in pairs(CLONE:GetDescendants()) do | |
1075 | if c:IsA("BasePart") then | |
1076 | c.Anchored = true | |
1077 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1078 | c.Transparency = c.Transparency + 0.8/35 | |
1079 | if A == false then | |
1080 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1081 | elseif A == true then | |
1082 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1083 | end | |
1084 | end | |
1085 | end | |
1086 | Swait() | |
1087 | end | |
1088 | CLONE:remove() | |
1089 | end)) | |
1090 | end | |
1091 | end | |
1092 | ||
1093 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1094 | local CHILDREN = workspace:GetDescendants() | |
1095 | for index, CHILD in pairs(CHILDREN) do | |
1096 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1097 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1098 | if HUM then | |
1099 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1100 | if TORSO then | |
1101 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1102 | if ISBANISH == true then | |
1103 | Banish(CHILD) | |
1104 | else | |
1105 | if ISBANISH == "Gravity" then | |
1106 | HUM.PlatformStand = true | |
1107 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1108 | local grav = Instance.new("BodyPosition",TORSO) | |
1109 | grav.D = 15 | |
1110 | grav.P = 20000 | |
1111 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1112 | grav.position = TORSO.Position | |
1113 | grav.Name = "V3BanishForce"..Player.Name | |
1114 | else | |
1115 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1116 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1117 | end | |
1118 | else | |
1119 | HUM.PlatformStand = false | |
1120 | end | |
1121 | end | |
1122 | elseif ISBANISH == "Gravity" then | |
1123 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1124 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1125 | HUM.PlatformStand = false | |
1126 | end | |
1127 | end | |
1128 | end | |
1129 | end | |
1130 | end | |
1131 | end | |
1132 | end | |
1133 | ||
1134 | --//=================================\\ | |
1135 | --|| ATTACK FUNCTIONS AND STUFF | |
1136 | --\\=================================// | |
1137 | ||
1138 | function Execute() | |
1139 | ATTACK = true | |
1140 | Rooted = false | |
1141 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1142 | Swait() | |
1143 | turnto(Mouse.Hit.p) | |
1144 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1145 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1146 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1147 | end | |
1148 | repeat | |
1149 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1150 | Swait() | |
1151 | turnto(Mouse.Hit.p) | |
1152 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1153 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1154 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1155 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1156 | end | |
1157 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1158 | SpawnTrail(Hole.Position,POS) | |
1159 | if HIT ~= nil then | |
1160 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1161 | Kill(HIT.Parent) | |
1162 | wait(0.3) | |
1163 | KillChildren(HIT.Parent) | |
1164 | end | |
1165 | end | |
1166 | 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(3,0,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,3,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1167 | 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,3,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1168 | 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,3,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1169 | 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,3,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1170 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1171 | Swait() | |
1172 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1173 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1174 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1175 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1176 | end | |
1177 | until KEYHOLD == false | |
1178 | ATTACK = false | |
1179 | Rooted = false | |
1180 | end | |
1181 | ||
1182 | function Warp() | |
1183 | for e = 1, #BODY do | |
1184 | if BODY[e] ~= nil then | |
1185 | local STUFF = BODY[e] | |
1186 | local PART = STUFF[1] | |
1187 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
1188 | local PRT = PART:Clone() | |
1189 | PRT.Anchored = true | |
1190 | PRT.CanCollide = false | |
1191 | PRT.Material = "Neon" | |
1192 | PRT.Color = C3(0,0,0) | |
1193 | PRT.Name = "WarpEffect" | |
1194 | PRT.Parent = Effects | |
1195 | PRT.CFrame = PART.CFrame | |
1196 | PRT:BreakJoints() | |
1197 | if PRT:FindFirstChildOfClass("Sound") then | |
1198 | PRT:FindFirstChildOfClass("Sound"):remove() | |
1199 | end | |
1200 | if PRT:FindFirstChildOfClass("Decal") then | |
1201 | PRT:FindFirstChildOfClass("Decal"):remove() | |
1202 | end | |
1203 | coroutine.resume(coroutine.create(function() | |
1204 | for i = 1, 100 do | |
1205 | Swait() | |
1206 | PRT.Transparency = PRT.Transparency + 1/100 | |
1207 | end | |
1208 | PRT:remove() | |
1209 | end)) | |
1210 | end | |
1211 | end | |
1212 | end | |
1213 | CreateSound(217767125, Torso, 10, 1) | |
1214 | local POS = RootPart.Orientation | |
1215 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
1216 | RootPart.Orientation = POS | |
1217 | RootJoint.Parent = RootPart | |
1218 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eyes.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1219 | ATTACK = false | |
1220 | Rooted = false | |
1221 | end | |
1222 | ||
1223 | function Banish() | |
1224 | ATTACK = true | |
1225 | Rooted = false | |
1226 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1227 | Swait() | |
1228 | turnto(Mouse.Hit.p) | |
1229 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1230 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1231 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1232 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1233 | 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) | |
1234 | 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) | |
1235 | end | |
1236 | repeat | |
1237 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1238 | Swait() | |
1239 | turnto(Mouse.Hit.p) | |
1240 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1241 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1242 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1243 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1244 | 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) | |
1245 | 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) | |
1246 | end | |
1247 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1248 | SpawnTrail(Hole.Position,POS) | |
1249 | if HIT ~= nil then | |
1250 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1251 | Banish(HIT.Parent) | |
1252 | end | |
1253 | end | |
1254 | 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 ,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1255 | 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,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1256 | 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,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1257 | 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,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1258 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1259 | Swait() | |
1260 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1261 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1262 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1263 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1264 | 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) | |
1265 | 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) | |
1266 | end | |
1267 | until KEYHOLD == false | |
1268 | ATTACK = false | |
1269 | Rooted = false | |
1270 | end | |
1271 | ||
1272 | function AttackTemplate() | |
1273 | ATTACK = true | |
1274 | Rooted = false | |
1275 | for i=0, 1, 0.1 / Animation_Speed do | |
1276 | Swait() | |
1277 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1278 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1279 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1280 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1281 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1282 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1283 | end | |
1284 | ATTACK = false | |
1285 | Rooted = false | |
1286 | end | |
1287 | ||
1288 | --//=================================\\ | |
1289 | --|| ASSIGN THINGS TO KEYS | |
1290 | --\\=================================// | |
1291 | ||
1292 | function MouseDown(Mouse) | |
1293 | if ATTACK == false then | |
1294 | end | |
1295 | end | |
1296 | ||
1297 | function MouseUp(Mouse) | |
1298 | HOLD = false | |
1299 | end | |
1300 | ||
1301 | function KeyDown(Key) | |
1302 | KEYHOLD = true | |
1303 | if Key == "z" and ATTACK == false then | |
1304 | Banish() | |
1305 | end | |
1306 | ||
1307 | if Key == "q" and ATTACK == false then | |
1308 | Warp() | |
1309 | end | |
1310 | ||
1311 | if Key == "c" and ATTACK == false then | |
1312 | Execute() | |
1313 | end | |
1314 | ||
1315 | if Key == "v" and ATTACK == false then | |
1316 | end | |
1317 | ||
1318 | if Key == "x" and ATTACK == false then | |
1319 | end | |
1320 | end | |
1321 | ||
1322 | function KeyUp(Key) | |
1323 | KEYHOLD = false | |
1324 | end | |
1325 | ||
1326 | Mouse.Button1Down:connect(function(NEWKEY) | |
1327 | MouseDown(NEWKEY) | |
1328 | end) | |
1329 | Mouse.Button1Up:connect(function(NEWKEY) | |
1330 | MouseUp(NEWKEY) | |
1331 | end) | |
1332 | Mouse.KeyDown:connect(function(NEWKEY) | |
1333 | KeyDown(NEWKEY) | |
1334 | end) | |
1335 | Mouse.KeyUp:connect(function(NEWKEY) | |
1336 | KeyUp(NEWKEY) | |
1337 | end) | |
1338 | ||
1339 | --//=================================\\ | |
1340 | --\\=================================// | |
1341 | ||
1342 | ||
1343 | function unanchor() | |
1344 | if UNANCHOR == true then | |
1345 | g = Character:GetChildren() | |
1346 | for i = 1, #g do | |
1347 | if g[i].ClassName == "Part" then | |
1348 | g[i].Anchored = false | |
1349 | end | |
1350 | end | |
1351 | end | |
1352 | end | |
1353 | ||
1354 | ||
1355 | --//=================================\\ | |
1356 | --|| WRAP THE WHOLE SCRIPT UP | |
1357 | --\\=================================// | |
1358 | ||
1359 | Humanoid.Changed:connect(function(Jump) | |
1360 | if Jump == "Jump" and (Disable_Jump == true) then | |
1361 | Humanoid.Jump = false | |
1362 | end | |
1363 | end) | |
1364 | ||
1365 | local CONNECT = nil | |
1366 | ||
1367 | while true do | |
1368 | Swait() | |
1369 | ANIMATE.Parent = nil | |
1370 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
1371 | Humanoid = IT("Humanoid",Character) | |
1372 | end | |
1373 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
1374 | v:Stop(); | |
1375 | end | |
1376 | SINE = SINE + CHANGE | |
1377 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1378 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1379 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1380 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1381 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1382 | 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) | |
1383 | 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) | |
1384 | 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) | |
1385 | 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) | |
1386 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1387 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1388 | 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) | |
1389 | 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) | |
1390 | 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) | |
1391 | end | |
1392 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1393 | ANIM = "Jump" | |
1394 | if ATTACK == false then | |
1395 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1396 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1397 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1398 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1399 | 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) | |
1400 | 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) | |
1401 | end | |
1402 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1403 | ANIM = "Fall" | |
1404 | if ATTACK == false then | |
1405 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1406 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1407 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1408 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1409 | 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) | |
1410 | 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) | |
1411 | end | |
1412 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1413 | ANIM = "Idle" | |
1414 | if ATTACK == false then | |
1415 | 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) | |
1416 | 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) | |
1417 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1418 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1419 | 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) | |
1420 | 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) | |
1421 | end | |
1422 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1423 | ANIM = "Walk" | |
1424 | if ATTACK == false then | |
1425 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1426 | 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) | |
1427 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1428 | 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) | |
1429 | 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) | |
1430 | 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) | |
1431 | end | |
1432 | end | |
1433 | unanchor() | |
1434 | Humanoid.MaxHealth = 15e15 | |
1435 | Humanoid.Health = 15e15 | |
1436 | if Rooted == false then | |
1437 | Disable_Jump = false | |
1438 | Humanoid.WalkSpeed = Speed | |
1439 | elseif Rooted == true then | |
1440 | Disable_Jump = true | |
1441 | Humanoid.WalkSpeed = 0 | |
1442 | end | |
1443 | refit() | |
1444 | Humanoid.Name = "Corrupt Banisher" | |
1445 | Effects.Parent = Character | |
1446 | for _, c in pairs(Character:GetChildren()) do | |
1447 | if c:IsA("BasePart") and ATTACK == false then | |
1448 | for _, e in pairs(c:GetChildren()) do | |
1449 | if e:IsA("ParticleEmitter") or e:IsA("BodyPosition") or e:IsA("BodyGyro") then | |
1450 | e:remove() | |
1451 | end | |
1452 | end | |
1453 | end | |
1454 | end | |
1455 | if Head:FindFirstChild("face") then | |
1456 | Head.face:remove() | |
1457 | elseif Head:FindFirstChildOfClass("Sound") then | |
1458 | Head:FindFirstChildOfClass("Sound"):remove() | |
1459 | end | |
1460 | end | |
1461 | ||
1462 | --//=================================\\ | |
1463 | --\\=================================// | |
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | --//====================================================\\-- | |
1470 | --|| END OF SCRIPT | |
1471 | --\\====================================================//-- |