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