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