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