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