SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | -- | |
6 | - | warn "Thanos (Big boy edit) was created by shackluster, and edited by ironsight7, enjoy." |
6 | + | warn "hulk (Big boy edit) was created by shackluster, and edited by ironsight7, enjoy." |
7 | ||
8 | local textblin = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head) | |
9 | textblin.Adornee = cykablyat | |
10 | textblin.Name = "ky" | |
11 | textblin.Size = UDim2.new(2, 0, 1.2, 0) | |
12 | textblin.StudsOffset = Vector3.new(-5, 3, 0) | |
13 | local textblin= Instance.new("TextLabel", textblin) | |
14 | textblin.Size = UDim2.new(6, 0, 1, 0) | |
15 | textblin.FontSize = "Size14" | |
16 | textblin.TextScaled = true | |
17 | textblin.TextTransparency = 0 | |
18 | textblin.BackgroundTransparency = 1 | |
19 | textblin.TextTransparency = 0 | |
20 | textblin.TextStrokeTransparency = 0 | |
21 | textblin.Font = "Cartoon" | |
22 | textblin.TextStrokeColor3 = Color3.new(255,255,255) | |
23 | - | textblin.Text = "Thanos" |
23 | + | textblin.Text = "HULK" |
24 | -- | |
25 | p = game.Players.LocalPlayer | |
26 | char = p.Character | |
27 | torso = char.Torso | |
28 | hed = char.Head | |
29 | neck = char.Torso.Neck | |
30 | hum = char.Humanoid | |
31 | hum.MaxHealth = math.huge | |
32 | local msg = game:GetService("Chat") | |
33 | - | torso.BrickColor = BrickColor.new("Reddish lilac") |
33 | + | torso.BrickColor = BrickColor.new("Dark green") |
34 | - | hed.BrickColor = BrickColor.new("Reddish lilac") |
34 | + | hed.BrickColor = BrickColor.new("Dark green") |
35 | - | char["Right Arm"].BrickColor = BrickColor.new("Reddish lilac") |
35 | + | char["Right Arm"].BrickColor = BrickColor.new("Dark green") |
36 | - | char["Left Arm"].BrickColor = BrickColor.new("Reddish lilac") |
36 | + | char["Left Arm"].BrickColor = BrickColor.new("Dark green") |
37 | - | char["Left Leg"].BrickColor = BrickColor.new("Reddish lilac") |
37 | + | char["Left Leg"].BrickColor = BrickColor.new("Dark green") |
38 | - | char["Right Leg"].BrickColor = BrickColor.new("Reddish lilac") |
38 | + | char["Right Leg"].BrickColor = BrickColor.new("Dark green") |
39 | ypcall(function() | |
40 | shirt = Instance.new("Shirt", char) | |
41 | shirt.Name = "Shirt" | |
42 | pants = Instance.new("Pants", char) | |
43 | pants.Name = "Pants" | |
44 | - | char.Shirt.ShirtTemplate = "rbxassetid://1539852026" |
44 | + | char.Shirt.ShirtTemplate = "rbxassetid://6693756" |
45 | - | char.Pants.PantsTemplate = "rbxassetid://1539857183" |
45 | + | char.Pants.PantsTemplate = "rbxassetid://44231660" |
46 | end) | |
47 | - | hed.face.Texture = "http://www.roblox.com/asset/?id=405704563" |
47 | + | hed.face.Texture = "http://www.roblox.com/asset/?id=19398553" |
48 | -- | |
49 | local Player = game:GetService('Players').LocalPlayer | |
50 | repeat wait() until Player.Character | |
51 | local Character = Player.Character | |
52 | ||
53 | --All The Settings for Trails in this Script | |
54 | TrailSettings = { | |
55 | Lifetime = 0.1, | |
56 | Texture = 'rbxassetid://31270182', | |
57 | --Color1 is for UpperBody and Accessories, Color2 is for Lower Body | |
58 | - | Color1 = ColorSequence.new(BrickColor.new('Reddish lilac').Color,BrickColor.new('Reddish lilac').Color), |
58 | + | Color1 = ColorSequence.new(BrickColor.new('Dark green').Color,BrickColor.new('Dark green').Color), |
59 | - | Color2 = ColorSequence.new(BrickColor.new('Reddish lilac').Color,BrickColor.new('Reddish lilac').Color), |
59 | + | Color2 = ColorSequence.new(BrickColor.new('Dark green').Color,BrickColor.new('Dark green').Color), |
60 | AllBody = true, | |
61 | UpperBodyOnly = false, | |
62 | LowerBodyOnly = false, | |
63 | Accessories = false, | |
64 | Extras = true, | |
65 | R15 = false, --Change to true if you're using R15 | |
66 | R15Parts = { | |
67 | 'UpperTorso', | |
68 | 'LowerTorso', | |
69 | } | |
70 | } | |
71 | ||
72 | local Trail; --Making other Trails uses this in this Script | |
73 | ||
74 | --UpperBody Function | |
75 | UpperBody = function() | |
76 | if TrailSettings.R15 == false then | |
77 | A0 = Instance.new('Attachment',Character.Torso) | |
78 | A1 = Instance.new('Attachment',Character.Head) | |
79 | A2 = Instance.new('Attachment',Character['Right Arm']) | |
80 | A3 = Instance.new('Attachment',Character['Left Arm']) | |
81 | Trail = Instance.new('Trail',Character) | |
82 | Trail.Attachment0 = A0 | |
83 | Trail.Attachment1 = A1 | |
84 | Trail.Texture = TrailSettings.Texture | |
85 | Trail.Color = TrailSettings.Color1 | |
86 | Trail.Lifetime = TrailSettings.Lifetime | |
87 | local Trail2 = Trail:Clone() | |
88 | Trail2.Parent = Character | |
89 | Trail2.Attachment1 = A2 | |
90 | local Trail3 = Trail:Clone() | |
91 | Trail3.Parent = Character | |
92 | Trail3.Attachment1 = A3 | |
93 | local Trail6 = Trail:Clone() | |
94 | Trail6.Parent = Character | |
95 | Trail6.Attachment0 = A1 | |
96 | Trail6.Attachment1 = A2 | |
97 | local Trail7 = Trail:Clone() | |
98 | Trail7.Parent = Character | |
99 | Trail7.Attachment0 = A1 | |
100 | Trail7.Attachment1 = A3 | |
101 | else | |
102 | A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]]) | |
103 | A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]]) | |
104 | A1 = Instance.new('Attachment',Character.Head) | |
105 | A2 = Instance.new('Attachment',Character['RightUpperArm']) | |
106 | A2R = Instance.new('Attachment',Character['RightLowerArm']) | |
107 | A3 = Instance.new('Attachment',Character['LeftUpperArm']) | |
108 | A3R = Instance.new('Attachment',Character['LeftLowerArm']) | |
109 | Trail = Instance.new('Trail',Character) | |
110 | Trail.Attachment0 = A0 | |
111 | Trail.Attachment1 = A1 | |
112 | Trail.Texture = TrailSettings.Texture | |
113 | Trail.Color = TrailSettings.Color1 | |
114 | Trail.Lifetime = TrailSettings.Lifetime | |
115 | local Trail2 = Trail:Clone() | |
116 | Trail2.Parent = Character | |
117 | Trail2.Attachment1 = A2 | |
118 | local Trail3 = Trail:Clone() | |
119 | Trail3.Parent = Character | |
120 | Trail3.Attachment1 = A3 | |
121 | local Trail6 = Trail:Clone() | |
122 | Trail6.Parent = Character | |
123 | Trail6.Attachment0 = A1 | |
124 | Trail6.Attachment1 = A2 | |
125 | local Trail7 = Trail:Clone() | |
126 | Trail7.Parent = Character | |
127 | Trail7.Attachment0 = A1 | |
128 | Trail7.Attachment1 = A3 | |
129 | --R15 Trails | |
130 | local Trail1R = Trail:Clone() | |
131 | Trail1R.Parent = Character | |
132 | Trail1R.Attachment1 = A2R | |
133 | local Trail2R = Trail:Clone() | |
134 | Trail2R.Parent = Character | |
135 | Trail2R.Attachment1 = A3R | |
136 | local Trail6R = Trail:Clone() | |
137 | Trail6.Parent = Character | |
138 | Trail6.Attachment0 = A1 | |
139 | Trail6.Attachment1 = A2R | |
140 | local Trail7R = Trail:Clone() | |
141 | Trail7.Parent = Character | |
142 | Trail7.Attachment0 = A1 | |
143 | Trail7.Attachment1 = A3R | |
144 | end | |
145 | end | |
146 | ||
147 | --Lower Body Function | |
148 | LowerBody = function() | |
149 | if TrailSettings.R15 == false then | |
150 | A4 = Instance.new('Attachment',Character['Right Leg']) | |
151 | A5 = Instance.new('Attachment',Character['Left Leg']) | |
152 | local Trail4 = Trail:Clone() | |
153 | Trail4.Parent = Character | |
154 | Trail4.Attachment1 = A4 | |
155 | local Trail5 = Trail:Clone() | |
156 | Trail5.Parent = Character | |
157 | Trail5.Attachment1 = A5 | |
158 | local Trail8 = Trail:Clone() | |
159 | Trail8.Parent = Character | |
160 | Trail8.Attachment0 = A2 | |
161 | Trail8.Attachment1 = A4 | |
162 | Trail8.Color = TrailSettings.Color2 | |
163 | local Trail9 = Trail:Clone() | |
164 | Trail9.Parent = Character | |
165 | Trail9.Attachment0 = A3 | |
166 | Trail9.Attachment1 = A5 | |
167 | Trail9.Color = TrailSettings.Color2 | |
168 | local FT = Trail:Clone() | |
169 | FT.Parent = Character | |
170 | FT.Attachment0 = A4 | |
171 | FT.Attachment1 = A5 | |
172 | FT.Color = TrailSettings.Color2 | |
173 | else | |
174 | A4 = Instance.new('Attachment',Character['RightLowerLeg']) | |
175 | A4R = Instance.new('Attachment',Character['RightUpperLeg']) | |
176 | A5 = Instance.new('Attachment',Character['LeftLowerLeg']) | |
177 | A5R = Instance.new('Attachment',Character['LeftUpperLeg']) | |
178 | local Trail4 = Trail:Clone() | |
179 | Trail4.Parent = Character | |
180 | Trail4.Attachment1 = A4 | |
181 | local Trail5 = Trail:Clone() | |
182 | Trail5.Parent = Character | |
183 | Trail5.Attachment1 = A5 | |
184 | local Trail8 = Trail:Clone() | |
185 | Trail8.Parent = Character | |
186 | Trail8.Attachment0 = A2 | |
187 | Trail8.Attachment1 = A4 | |
188 | Trail8.Color = TrailSettings.Color2 | |
189 | local Trail9 = Trail:Clone() | |
190 | Trail9.Parent = Character | |
191 | Trail9.Attachment0 = A3 | |
192 | Trail9.Attachment1 = A5 | |
193 | Trail9.Color = TrailSettings.Color2 | |
194 | local FT = Trail:Clone() | |
195 | FT.Parent = Character | |
196 | FT.Attachment0 = A4 | |
197 | FT.Attachment1 = A5 | |
198 | FT.Color = TrailSettings.Color2 | |
199 | --R15 Trails | |
200 | local Trail3R = Trail:Clone() | |
201 | Trail3R.Parent = Character | |
202 | Trail3R.Attachment1 = A4R | |
203 | local Trail4R = Trail:Clone() | |
204 | Trail4R.Parent = Character | |
205 | Trail4R.Attachment1 = A5R | |
206 | local Trail8 = Trail:Clone() | |
207 | Trail8.Parent = Character | |
208 | Trail8.Attachment0 = A2R | |
209 | Trail8.Attachment1 = A4R | |
210 | Trail8.Color = TrailSettings.Color2 | |
211 | local Trail9 = Trail:Clone() | |
212 | Trail9.Parent = Character | |
213 | Trail9.Attachment0 = A3R | |
214 | Trail9.Attachment1 = A5R | |
215 | Trail9.Color = TrailSettings.Color2 | |
216 | local FT2R = Trail:Clone() | |
217 | FT2R.Parent = Character | |
218 | FT2R.Attachment0 = A4R | |
219 | FT2R.Attachment1 = A5R | |
220 | FT2R.Color = TrailSettings.Color2 | |
221 | end | |
222 | end | |
223 | ||
224 | --All Body Function calling Both Functions | |
225 | AllBody = function() | |
226 | UpperBody() | |
227 | LowerBody() | |
228 | end | |
229 | ||
230 | --Checking to make sure that Only some Variables are Selected else do All Body | |
231 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
232 | TrailSettings.UpperBodyOnly = false | |
233 | TrailSettings.LowerBodyOnly = false | |
234 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then | |
235 | TrailSettings.UpperBodyOnly = false | |
236 | TrailSettings.LowerBodyOnly = false | |
237 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
238 | TrailSettings.UpperBodyOnly = false | |
239 | TrailSettings.LowerBodyOnly = false | |
240 | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
241 | TrailSettings.AllBody = true | |
242 | TrailSettings.UpperBodyOnly = false | |
243 | TrailSettings.LowerBodyOnly = false | |
244 | end | |
245 | ||
246 | --Call Trail Functions | |
247 | if TrailSettings.UpperBodyOnly == true then | |
248 | UpperBody() | |
249 | print('Called Upper Body Trail') | |
250 | elseif TrailSettings.LowerBodyOnly == true then | |
251 | LowerBody() | |
252 | print('Called Lower Body Trail') | |
253 | elseif TrailSettings.AllBody == true then | |
254 | AllBody() | |
255 | print('Called Full Body Trail') | |
256 | end | |
257 | ||
258 | --Trails for Accessories | |
259 | if TrailSettings.Accessories == true then | |
260 | for Index,Item in pairs(Character:GetChildren()) do | |
261 | if Item:IsA'Accessory' then | |
262 | local AA = Instance.new('Attachment',Item.Handle) | |
263 | local ATrail = Trail:Clone() | |
264 | ATrail.Parent = Character | |
265 | ATrail.Attachment1 = AA | |
266 | end | |
267 | end | |
268 | end | |
269 | ||
270 | --Extras | |
271 | if TrailSettings.Extras == true then | |
272 | --Making an Invisible Platform Part | |
273 | local a = Instance.new('Part',Character) | |
274 | a.CanCollide = false | |
275 | a.Size = Vector3.new(2,.2,2) | |
276 | a.Transparency = 1 | |
277 | ||
278 | --Constantly putting it under your feet | |
279 | if TrailSettings.R15 == false then | |
280 | spawn(function() | |
281 | game:GetService('RunService').RenderStepped:connect(function() | |
282 | a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0) | |
283 | end) | |
284 | end) | |
285 | else | |
286 | spawn(function() | |
287 | game:GetService('RunService').RenderStepped:connect(function() | |
288 | a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0) | |
289 | end) | |
290 | end) | |
291 | end | |
292 | ||
293 | --Make a Trail from both feet to the Platform | |
294 | spawn(function() | |
295 | repeat wait() until Trail | |
296 | local AB = Instance.new('Attachment',a) | |
297 | local ABT = Trail:Clone() | |
298 | ABT.Parent = Character | |
299 | ABT.Attachment0 = A4 | |
300 | ABT.Attachment1 = AB | |
301 | ABT.Color = TrailSettings.Color2 | |
302 | local ABT2 = Trail:Clone() | |
303 | ABT2.Parent = Character | |
304 | ABT2.Attachment0 = A5 | |
305 | ABT2.Attachment1 = AB | |
306 | ABT2.Color = TrailSettings.Color2 | |
307 | end) | |
308 | end | |
309 | -- | |
310 | ||
311 | wait(0.2) | |
312 | ||
313 | Player = game:GetService("Players").LocalPlayer | |
314 | PlayerGui = Player.PlayerGui | |
315 | Cam = workspace.CurrentCamera | |
316 | Backpack = Player.Backpack | |
317 | Character = Player.Character | |
318 | Humanoid = Character:FindFirstChildOfClass("Humanoid") | |
319 | Mouse = Player:GetMouse() | |
320 | RootPart = Character["HumanoidRootPart"] | |
321 | Torso = Character["Torso"] | |
322 | Head = Character["Head"] | |
323 | RightArm = Character["Right Arm"] | |
324 | LeftArm = Character["Left Arm"] | |
325 | RightLeg = Character["Right Leg"] | |
326 | LeftLeg = Character["Left Leg"] | |
327 | RootJoint = RootPart["RootJoint"] | |
328 | Neck = Torso["Neck"] | |
329 | RightShoulder = Torso["Right Shoulder"] | |
330 | LeftShoulder = Torso["Left Shoulder"] | |
331 | RightHip = Torso["Right Hip"] | |
332 | LeftHip = Torso["Left Hip"] | |
333 | local sick = Instance.new("Sound",Character) | |
334 | ||
335 | IT = Instance.new | |
336 | CF = CFrame.new | |
337 | VT = Vector3.new | |
338 | RAD = math.rad | |
339 | C3 = Color3.new | |
340 | UD2 = UDim2.new | |
341 | BRICKC = BrickColor.new | |
342 | ANGLES = CFrame.Angles | |
343 | EULER = CFrame.fromEulerAnglesXYZ | |
344 | COS = math.cos | |
345 | ACOS = math.acos | |
346 | SIN = math.sin | |
347 | ASIN = math.asin | |
348 | ABS = math.abs | |
349 | MRANDOM = math.random | |
350 | FLOOR = math.floor | |
351 | ||
352 | --//=================================\\ | |
353 | --|| USEFUL VALUES | |
354 | --\\=================================// | |
355 | ||
356 | Animation_Speed = 3 | |
357 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
358 | local Speed = 60 | |
359 | local SIZE = 1.3 | |
360 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
361 | local NECKC0 = CF(0, 1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
362 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
363 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
364 | local ANIM = "Idle" | |
365 | local ATTACK = false | |
366 | local COMBO = 1 | |
367 | local Rooted = false | |
368 | local SINE = 0 | |
369 | local CHANGE = 2 / Animation_Speed | |
370 | local ROBLOXIDLEANIMATION = IT("Animation") | |
371 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
372 | WEAPONGUI.Name = "Big Boie Squad" | |
373 | local ANIMATOR = Humanoid.Animator | |
374 | local ANIMATE = Character.Animate | |
375 | local UNANCHOR = true | |
376 | local KILLCOUNT = 0 | |
377 | ||
378 | --//=================================\\ | |
379 | --\\=================================// | |
380 | ||
381 | ||
382 | --//=================================\\ | |
383 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
384 | --\\=================================// | |
385 | ||
386 | ArtificialHB = Instance.new("BindableEvent", script) | |
387 | ArtificialHB.Name = "ArtificialHB" | |
388 | ||
389 | script:WaitForChild("ArtificialHB") | |
390 | ||
391 | frame = Frame_Speed | |
392 | tf = 0 | |
393 | allowframeloss = false | |
394 | tossremainder = false | |
395 | lastframe = tick() | |
396 | script.ArtificialHB:Fire() | |
397 | ||
398 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
399 | tf = tf + s | |
400 | if tf >= frame then | |
401 | if allowframeloss then | |
402 | script.ArtificialHB:Fire() | |
403 | lastframe = tick() | |
404 | else | |
405 | for i = 1, math.floor(tf / frame) do | |
406 | script.ArtificialHB:Fire() | |
407 | end | |
408 | lastframe = tick() | |
409 | end | |
410 | if tossremainder then | |
411 | tf = 0 | |
412 | else | |
413 | tf = tf - frame * math.floor(tf / frame) | |
414 | end | |
415 | end | |
416 | end) | |
417 | ||
418 | --//=================================\\ | |
419 | --\\=================================// | |
420 | ||
421 | --//=================================\\ | |
422 | --|| SOME FUNCTIONS | |
423 | --\\=================================// | |
424 | ||
425 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
426 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
427 | end | |
428 | ||
429 | function PositiveAngle(NUMBER) | |
430 | if NUMBER >= 0 then | |
431 | NUMBER = 0 | |
432 | end | |
433 | return NUMBER | |
434 | end | |
435 | ||
436 | function NegativeAngle(NUMBER) | |
437 | if NUMBER <= 0 then | |
438 | NUMBER = 0 | |
439 | end | |
440 | return NUMBER | |
441 | end | |
442 | ||
443 | function Swait(NUMBER) | |
444 | if NUMBER == 0 or NUMBER == nil then | |
445 | ArtificialHB.Event:wait() | |
446 | else | |
447 | for i = 1, NUMBER do | |
448 | ArtificialHB.Event:wait() | |
449 | end | |
450 | end | |
451 | end | |
452 | ||
453 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
454 | local NEWMESH = IT(MESH) | |
455 | if MESH == "SpecialMesh" then | |
456 | NEWMESH.MeshType = MESHTYPE | |
457 | if MESHID ~= "nil" and MESHID ~= "" then | |
458 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
459 | end | |
460 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
461 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
462 | end | |
463 | end | |
464 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
465 | NEWMESH.Scale = SCALE | |
466 | NEWMESH.Parent = PARENT | |
467 | return NEWMESH | |
468 | end | |
469 | ||
470 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
471 | local NEWPART = IT("Part") | |
472 | NEWPART.formFactor = FORMFACTOR | |
473 | NEWPART.Reflectance = REFLECTANCE | |
474 | NEWPART.Transparency = TRANSPARENCY | |
475 | NEWPART.CanCollide = false | |
476 | NEWPART.Locked = true | |
477 | NEWPART.Anchored = true | |
478 | if ANCHOR == false then | |
479 | NEWPART.Anchored = false | |
480 | end | |
481 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
482 | NEWPART.Name = NAME | |
483 | NEWPART.Size = SIZE | |
484 | NEWPART.Position = Torso.Position | |
485 | NEWPART.Material = MATERIAL | |
486 | NEWPART:BreakJoints() | |
487 | NEWPART.Parent = PARENT | |
488 | return NEWPART | |
489 | end | |
490 | ||
491 | local function weldBetween(a, b) | |
492 | local weldd = Instance.new("ManualWeld") | |
493 | weldd.Part0 = a | |
494 | weldd.Part1 = b | |
495 | weldd.C0 = CFrame.new() | |
496 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
497 | weldd.Parent = a | |
498 | return weldd | |
499 | end | |
500 | ||
501 | ||
502 | function QuaternionFromCFrame(cf) | |
503 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
504 | local trace = m00 + m11 + m22 | |
505 | if trace > 0 then | |
506 | local s = math.sqrt(1 + trace) | |
507 | local recip = 0.5 / s | |
508 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
509 | else | |
510 | local i = 0 | |
511 | if m11 > m00 then | |
512 | i = 1 | |
513 | end | |
514 | if m22 > (i == 0 and m00 or m11) then | |
515 | i = 2 | |
516 | end | |
517 | if i == 0 then | |
518 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
519 | local recip = 0.5 / s | |
520 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
521 | elseif i == 1 then | |
522 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
523 | local recip = 0.5 / s | |
524 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
525 | elseif i == 2 then | |
526 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
527 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
528 | end | |
529 | end | |
530 | end | |
531 | ||
532 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
533 | local xs, ys, zs = x + x, y + y, z + z | |
534 | local wx, wy, wz = w * xs, w * ys, w * zs | |
535 | local xx = x * xs | |
536 | local xy = x * ys | |
537 | local xz = x * zs | |
538 | local yy = y * ys | |
539 | local yz = y * zs | |
540 | local zz = z * zs | |
541 | 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)) | |
542 | end | |
543 | ||
544 | function QuaternionSlerp(a, b, t) | |
545 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
546 | local startInterp, finishInterp; | |
547 | if cosTheta >= 0.0001 then | |
548 | if (1 - cosTheta) > 0.0001 then | |
549 | local theta = ACOS(cosTheta) | |
550 | local invSinTheta = 1 / SIN(theta) | |
551 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
552 | finishInterp = SIN(t * theta) * invSinTheta | |
553 | else | |
554 | startInterp = 1 - t | |
555 | finishInterp = t | |
556 | end | |
557 | else | |
558 | if (1 + cosTheta) > 0.0001 then | |
559 | local theta = ACOS(-cosTheta) | |
560 | local invSinTheta = 1 / SIN(theta) | |
561 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
562 | finishInterp = SIN(t * theta) * invSinTheta | |
563 | else | |
564 | startInterp = t - 1 | |
565 | finishInterp = t | |
566 | end | |
567 | end | |
568 | 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 | |
569 | end | |
570 | ||
571 | function Clerp(a, b, t) | |
572 | local qa = {QuaternionFromCFrame(a)} | |
573 | local qb = {QuaternionFromCFrame(b)} | |
574 | local ax, ay, az = a.x, a.y, a.z | |
575 | local bx, by, bz = b.x, b.y, b.z | |
576 | local _t = 1 - t | |
577 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
578 | end | |
579 | ||
580 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
581 | local frame = IT("Frame") | |
582 | frame.BackgroundTransparency = TRANSPARENCY | |
583 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
584 | frame.Position = POSITION | |
585 | frame.Size = SIZE | |
586 | frame.BackgroundColor3 = COLOR | |
587 | frame.BorderColor3 = BORDERCOLOR | |
588 | frame.Name = NAME | |
589 | frame.Parent = PARENT | |
590 | return frame | |
591 | end | |
592 | ||
593 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
594 | local label = IT("TextLabel") | |
595 | label.BackgroundTransparency = 1 | |
596 | label.Size = UD2(1, 0, 1, 0) | |
597 | label.Position = UD2(0, 0, 0, 0) | |
598 | label.TextColor3 = TEXTCOLOR | |
599 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
600 | label.TextTransparency = TRANSPARENCY | |
601 | label.FontSize = TEXTFONTSIZE | |
602 | label.Font = TEXTFONT | |
603 | label.BorderSizePixel = BORDERSIZEPIXEL | |
604 | label.TextScaled = false | |
605 | label.Text = TEXT | |
606 | label.Name = NAME | |
607 | label.Parent = PARENT | |
608 | return label | |
609 | end | |
610 | ||
611 | function NoOutlines(PART) | |
612 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
613 | end | |
614 | ||
615 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
616 | local NEWWELD = IT(TYPE) | |
617 | NEWWELD.Part0 = PART0 | |
618 | NEWWELD.Part1 = PART1 | |
619 | NEWWELD.C0 = C0 | |
620 | NEWWELD.C1 = C1 | |
621 | NEWWELD.Parent = PARENT | |
622 | return NEWWELD | |
623 | end | |
624 | ||
625 | local S = IT("Sound") | |
626 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
627 | local NEWSOUND = nil | |
628 | coroutine.resume(coroutine.create(function() | |
629 | NEWSOUND = S:Clone() | |
630 | NEWSOUND.Parent = PARENT | |
631 | NEWSOUND.Volume = VOLUME | |
632 | NEWSOUND.Pitch = PITCH | |
633 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
634 | NEWSOUND:play() | |
635 | if DOESLOOP == true then | |
636 | NEWSOUND.Looped = true | |
637 | else | |
638 | repeat wait(1) until NEWSOUND.Playing == false | |
639 | NEWSOUND:remove() | |
640 | end | |
641 | end)) | |
642 | return NEWSOUND | |
643 | end | |
644 | ||
645 | function CFrameFromTopBack(at, top, back) | |
646 | local right = top:Cross(back) | |
647 | 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) | |
648 | end | |
649 | ||
650 | function MakeForm(PART,TYPE) | |
651 | if TYPE == "Cyl" then | |
652 | local MSH = IT("CylinderMesh",PART) | |
653 | elseif TYPE == "Ball" then | |
654 | local MSH = IT("SpecialMesh",PART) | |
655 | MSH.MeshType = "Sphere" | |
656 | elseif TYPE == "Wedge" then | |
657 | local MSH = IT("SpecialMesh",PART) | |
658 | MSH.MeshType = "Wedge" | |
659 | end | |
660 | end | |
661 | ||
662 | Debris = game:GetService("Debris") | |
663 | ||
664 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
665 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
666 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
667 | end | |
668 | ||
669 | --//=================================\\ | |
670 | --|| WEAPON CREATION | |
671 | --\\=================================// | |
672 | ||
673 | Humanoid.Parent = nil | |
674 | RootPart.Size = RootPart.Size*SIZE | |
675 | Torso.Size = Torso.Size*SIZE | |
676 | RightArm.Size = RightArm.Size*SIZE | |
677 | RightLeg.Size = RightLeg.Size*SIZE | |
678 | LeftArm.Size = LeftArm.Size*SIZE | |
679 | LeftLeg.Size = LeftLeg.Size*SIZE | |
680 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
681 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
682 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
683 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
684 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
685 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
686 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
687 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
688 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
689 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
690 | Head.Size = Head.Size*SIZE | |
691 | RootJoint.Parent = RootPart | |
692 | Neck.Parent = Torso | |
693 | RightShoulder.Parent = Torso | |
694 | LeftShoulder.Parent = Torso | |
695 | RightHip.Parent = Torso | |
696 | LeftHip.Parent = Torso | |
697 | ||
698 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1.4,1,0.2),false) | |
699 | MakeForm(PART,"Ball") | |
700 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.45*SIZE,0.6*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
701 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1.4,1,0.2),false) | |
702 | MakeForm(PART,"Ball") | |
703 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.45*SIZE,0.6*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
704 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1,0.7,0.2),false) | |
705 | MakeForm(PART,"Ball") | |
706 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.35*SIZE,0.15*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
707 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1,0.7,0.2),false) | |
708 | MakeForm(PART,"Ball") | |
709 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.35*SIZE,0.15*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
710 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(0.75,0.5,0.2),false) | |
711 | MakeForm(PART,"Ball") | |
712 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.3*SIZE,-0.13*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
713 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(0.75,0.5,0.2),false) | |
714 | MakeForm(PART,"Ball") | |
715 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.3*SIZE,-0.13*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
716 | ||
717 | Humanoid.Parent = Character | |
718 | ||
719 | Humanoid.Died:connect(function() | |
720 | ATTACK = true | |
721 | end) | |
722 | ||
723 | local TRACKFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Yeet") | |
724 | ||
725 | local TEXT = CreateLabel(TRACKFRAME, KILLCOUNT, C3(1,1,1), 8, "Cartoon", 0, 2, 1, "Text") | |
726 | ||
727 | --//=================================\\ | |
728 | --|| DAMAGING | |
729 | --\\=================================// | |
730 | ||
731 | local EXPLOSION = IT("Explosion",nil) | |
732 | EXPLOSION.BlastPressure = 0 | |
733 | function PUNCH(Fist) | |
734 | TOUCH = Fist.Touched:Connect(function(hit) | |
735 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
736 | local HUM = hit.Parent:FindFirstChildOfClass("Humanoid") | |
737 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
738 | if TORSO and HUM.Health > 0 then | |
739 | CreateSound(296102734,Fist,6,1,false) | |
740 | CreateSound(12222242,TORSO,7,MRANDOM(8,14)/10,false) | |
741 | TORSO.Parent:BreakJoints() | |
742 | for _, c in pairs(TORSO.Parent:GetChildren()) do | |
743 | if c:IsA("BasePart") then | |
744 | local bv = Instance.new("BodyVelocity",c) | |
745 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
746 | bv.velocity = CF(TORSO.Position,c.Position+VT(0,0.1,0)).lookVector*MRANDOM(70,100) | |
747 | Debris:AddItem(bv,0.05) | |
748 | end | |
749 | end | |
750 | local BOOM = EXPLOSION:Clone() | |
751 | BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p | |
752 | BOOM.Parent = Character | |
753 | TOUCH:Disconnect() | |
754 | KILLCOUNT = KILLCOUNT + 69 | |
755 | end | |
756 | elseif hit.Material == Enum.Material.Glass or hit.Transparency > 0.2 then | |
757 | hit:remove() | |
758 | CreateSound(296102734,Fist,6,1,false) | |
759 | local BOOM = EXPLOSION:Clone() | |
760 | BOOM.BlastPressure = 50 | |
761 | BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p | |
762 | BOOM.Parent = Character | |
763 | elseif hit.Anchored == false then | |
764 | CreateSound(296102734,Fist,6,1,false) | |
765 | local BOOM = EXPLOSION:Clone() | |
766 | BOOM.BlastPressure = 100 | |
767 | BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p | |
768 | BOOM.Parent = Character | |
769 | TOUCH:Disconnect() | |
770 | end | |
771 | end) | |
772 | return TOUCH | |
773 | end | |
774 | ||
775 | --//=================================\\ | |
776 | --|| ATTACK FUNCTIONS AND STUFF | |
777 | --\\=================================// | |
778 | ||
779 | function Yeet() | |
780 | ATTACK = true | |
781 | Rooted = false | |
782 | if COMBO == 1 then | |
783 | COMBO = 2 | |
784 | for i=0, 0.1, 0.1 / Animation_Speed do | |
785 | Swait() | |
786 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed) | |
787 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
788 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
789 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
790 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
791 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
792 | end | |
793 | local FIST = PUNCH(LeftArm) | |
794 | for i=0, 0.15, 0.1 / Animation_Speed do | |
795 | Swait() | |
796 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
797 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(45)), 1 / Animation_Speed) | |
798 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
799 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(25)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
800 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
801 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
802 | end | |
803 | FIST:Disconnect() | |
804 | else | |
805 | COMBO = 1 | |
806 | for i=0, 0.1, 0.1 / Animation_Speed do | |
807 | Swait() | |
808 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
809 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
810 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
811 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
812 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
813 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
814 | end | |
815 | local FIST = PUNCH(RightArm) | |
816 | for i=0, 0.15, 0.1 / Animation_Speed do | |
817 | Swait() | |
818 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(45)), 1 / Animation_Speed) | |
819 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
820 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1*SIZE, 0.45*SIZE, -1*SIZE) * ANGLES(RAD(110), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
821 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.25*SIZE, 0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
822 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
823 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
824 | end | |
825 | FIST:Disconnect() | |
826 | end | |
827 | ATTACK = false | |
828 | Rooted = false | |
829 | end | |
830 | ||
831 | function YesPlease() | |
832 | ATTACK = true | |
833 | Rooted = true | |
834 | CreateSound(291394633,Head,6,1,false) | |
835 | for i=0, 2, 0.1 / Animation_Speed do | |
836 | Swait() | |
837 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.3*SIZE) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
838 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
839 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(2+(MRANDOM(-5,5)/100)*SIZE, (0.45+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(75), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
840 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-2+(MRANDOM(-5,5)/100)*SIZE, (0.65+(MRANDOM(-5,5)/100))*SIZE, -0.5*SIZE) * ANGLES(RAD(65), RAD(0), RAD(65)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
841 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
842 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.85*SIZE, -0.6*SIZE) * ANGLES(RAD(25), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
843 | end | |
844 | ATTACK = false | |
845 | Rooted = false | |
846 | end | |
847 | ||
848 | --//=================================\\ | |
849 | --|| ASSIGN THINGS TO KEYS | |
850 | --\\=================================// | |
851 | ||
852 | Mouse.Button1Down:connect(function(NEWKEY) | |
853 | if ATTACK == false then | |
854 | Yeet() | |
855 | end | |
856 | end) | |
857 | Mouse.KeyDown:connect(function(NEWKEY) | |
858 | if NEWKEY == "t" and ATTACK == false then | |
859 | YesPlease() | |
860 | end | |
861 | end) | |
862 | ||
863 | --//=================================\\ | |
864 | --\\=================================// | |
865 | ||
866 | function unanchor() | |
867 | if UNANCHOR == true then | |
868 | g = Character:GetChildren() | |
869 | for i = 1, #g do | |
870 | if g[i].ClassName == "Part" then | |
871 | g[i].Anchored = false | |
872 | end | |
873 | end | |
874 | end | |
875 | end | |
876 | ||
877 | --//=================================\\ | |
878 | --|| WRAP THE WHOLE SCRIPT UP | |
879 | --\\=================================// | |
880 | ||
881 | Humanoid.Changed:connect(function(Jump) | |
882 | if Jump == "Jump" and (Disable_Jump == true) then | |
883 | Humanoid.Jump = false | |
884 | end | |
885 | end) | |
886 | ||
887 | local FF = IT("ForceField",Character) | |
888 | FF.Visible = false | |
889 | ||
890 | while true do | |
891 | Swait() | |
892 | script.Parent = WEAPONGUI | |
893 | ANIMATE.Parent = nil | |
894 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
895 | v:Stop(); | |
896 | end | |
897 | SINE = SINE + CHANGE | |
898 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
899 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
900 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
901 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
902 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
903 | 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 / Animation_Speed) | |
904 | 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) | |
905 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.5- 0.5 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
906 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.5+ 0.5 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
907 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
908 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
909 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
910 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
911 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
912 | end | |
913 | if HITFLOOR == nil then | |
914 | ANIM = "Midair" | |
915 | if ATTACK == false then | |
916 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
917 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
918 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(145), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
919 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.45*SIZE, 0.3*SIZE) * ANGLES(RAD(35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
920 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.2*SIZE, -0.7*SIZE) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
921 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
922 | end | |
923 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
924 | ANIM = "Idle" | |
925 | if ATTACK == false then | |
926 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
927 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
928 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
929 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.55*SIZE, 0.5*SIZE, 0.1*SIZE) * ANGLES(RAD(15), RAD(0), RAD(12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
930 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
931 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE, -0.01*SIZE) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
932 | end | |
933 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
934 | ANIM = "Walk" | |
935 | if ATTACK == false then | |
936 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
937 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1/ Animation_Speed) | |
938 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, (0.35+0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25+70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
939 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, (0.35-0.15 * COS(SINE / WALKSPEEDVALUE))*SIZE, 0*SIZE) * ANGLES(RAD(25-70 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
940 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
941 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
942 | end | |
943 | end | |
944 | unanchor() | |
945 | Humanoid.MaxHealth = 5e7 | |
946 | Humanoid.Health = 5e7 | |
947 | Humanoid.Name = "Stronk Shed" | |
948 | if Rooted == false then | |
949 | Disable_Jump = false | |
950 | Humanoid.WalkSpeed = Speed | |
951 | elseif Rooted == true then | |
952 | Disable_Jump = true | |
953 | Humanoid.WalkSpeed = 0 | |
954 | end | |
955 | for _, c in pairs(Character:GetChildren()) do | |
956 | if c.ClassName == "Part" then | |
957 | c.Material = "SmoothPlastic" | |
958 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
959 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
960 | end | |
961 | if c == Torso or c.Name == "Muscle" then | |
962 | - | c.BrickColor = BRICKC"Reddish lilac" |
962 | + | c.BrickColor = BRICKC"Dark green" |
963 | elseif c == RightLeg or c == LeftLeg then | |
964 | - | c.BrickColor = BRICKC"Reddish lilac" |
964 | + | c.BrickColor = BRICKC"Dark green" |
965 | else | |
966 | - | c.BrickColor = BRICKC"Reddish lilac" |
966 | + | c.BrickColor = BRICKC"Dark green" |
967 | end | |
968 | if c == Head then | |
969 | if c:FindFirstChild("face") then | |
970 | - | c.face.Texture = "http://www.roblox.com/asset/?id=405704563" |
970 | + | c.face.Texture = "http://www.roblox.com/asset/?id=19398553" |
971 | end | |
972 | end | |
973 | elseif c.ClassName == c.Name == "Body Colors" then | |
974 | c:remove() | |
975 | end | |
976 | end | |
977 | sick.SoundId = "rbxassetid://296281763" | |
978 | sick.Looped = true | |
979 | sick.Pitch = 1 | |
980 | sick.Volume = 1 | |
981 | sick:Resume() | |
982 | sick.Parent = Torso | |
983 | Humanoid.JumpPower = 80 | |
984 | TEXT.Text = KILLCOUNT | |
985 | end | |
986 | ||
987 | --Head | |
988 | Hat=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Medium stone grey","Hat",Vector3.new(.12, .12, .12)) | |
989 | HatWeld=CFuncs.Weld.Create(m,Character["Head"],Hat,CFrame.new(-0.04, 173.28, -0.03),CFrame.new(-0.04, 173.28, -0.03)) | |
990 | meh=CFuncs.Mesh.Create("SpecialMesh",Hat,Enum.MeshType.FileMesh,"rbxassetid://494449505",Vector3.new(.12, .12, .12),Vector3.new(.12, .12, .12)) | |
991 | meh.TextureId = "http://www.roblox.com/asset/?id=64029530" | |
992 | ||
993 | ||
994 | ||
995 | for _,v in pairs(m2:children()) do | |
996 | if v:IsA("Part") and v.Name == "pand" then | |
997 | v.Transparency = 1 | |
998 | end | |
999 | end | |
1000 | ||
1001 | --//=================================\\ | |
1002 | --\\=================================// | |
1003 | ||
1004 | ||
1005 | ||
1006 | ||
1007 | ||
1008 | --//====================================================\\-- | |
1009 | --|| END OF SCRIPT | |
1010 | --\\====================================================//-- |