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