SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ||
145 | wait(0.2) | |
146 | ||
147 | Player = game:GetService("Players").LocalPlayer | |
148 | PlayerGui = Player.PlayerGui | |
149 | Cam = workspace.CurrentCamera | |
150 | Backpack = Player.Backpack | |
151 | Character = Player.Character | |
152 | Humanoid = Character:FindFirstChildOfClass("Humanoid") | |
153 | Mouse = Player:GetMouse() | |
154 | RootPart = Character["HumanoidRootPart"] | |
155 | Torso = Character["Torso"] | |
156 | Head = Character["Head"] | |
157 | RightArm = Character["Right Arm"] | |
158 | LeftArm = Character["Left Arm"] | |
159 | RightLeg = Character["Right Leg"] | |
160 | LeftLeg = Character["Left Leg"] | |
161 | RootJoint = RootPart["RootJoint"] | |
162 | Neck = Torso["Neck"] | |
163 | RightShoulder = Torso["Right Shoulder"] | |
164 | LeftShoulder = Torso["Left Shoulder"] | |
165 | RightHip = Torso["Right Hip"] | |
166 | LeftHip = Torso["Left Hip"] | |
167 | local sick = Instance.new("Sound",Character) | |
168 | ||
169 | IT = Instance.new | |
170 | CF = CFrame.new | |
171 | VT = Vector3.new | |
172 | RAD = math.rad | |
173 | C3 = Color3.new | |
174 | UD2 = UDim2.new | |
175 | BRICKC = BrickColor.new | |
176 | ANGLES = CFrame.Angles | |
177 | EULER = CFrame.fromEulerAnglesXYZ | |
178 | COS = math.cos | |
179 | ACOS = math.acos | |
180 | SIN = math.sin | |
181 | ASIN = math.asin | |
182 | ABS = math.abs | |
183 | MRANDOM = math.random | |
184 | FLOOR = math.floor | |
185 | ||
186 | --//=================================\\ | |
187 | --|| USEFUL VALUES | |
188 | --\\=================================// | |
189 | ||
190 | Animation_Speed = 3 | |
191 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
192 | local Speed = 45 | |
193 | local SIZE = 1.3 | |
194 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
195 | local NECKC0 = CF(0, 1.1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
196 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
197 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
198 | local ANIM = "Idle" | |
199 | local ATTACK = false | |
200 | local COMBO = 1 | |
201 | local Rooted = false | |
202 | local SINE = 0 | |
203 | local CHANGE = 2 / Animation_Speed | |
204 | local ROBLOXIDLEANIMATION = IT("Animation") | |
205 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
206 | WEAPONGUI.Name = "Big Boie Squad" | |
207 | local ANIMATOR = Humanoid.Animator | |
208 | local ANIMATE = Character.Animate | |
209 | local UNANCHOR = true | |
210 | local KILLCOUNT = 0 | |
211 | ||
212 | --//=================================\\ | |
213 | --\\=================================// | |
214 | ||
215 | ||
216 | --//=================================\\ | |
217 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
218 | --\\=================================// | |
219 | ||
220 | ArtificialHB = Instance.new("BindableEvent", script) | |
221 | ArtificialHB.Name = "ArtificialHB" | |
222 | ||
223 | script:WaitForChild("ArtificialHB") | |
224 | ||
225 | frame = Frame_Speed | |
226 | tf = 0 | |
227 | allowframeloss = false | |
228 | tossremainder = false | |
229 | lastframe = tick() | |
230 | script.ArtificialHB:Fire() | |
231 | ||
232 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
233 | tf = tf + s | |
234 | if tf >= frame then | |
235 | if allowframeloss then | |
236 | script.ArtificialHB:Fire() | |
237 | lastframe = tick() | |
238 | else | |
239 | for i = 1, math.floor(tf / frame) do | |
240 | script.ArtificialHB:Fire() | |
241 | end | |
242 | lastframe = tick() | |
243 | end | |
244 | if tossremainder then | |
245 | tf = 0 | |
246 | else | |
247 | tf = tf - frame * math.floor(tf / frame) | |
248 | end | |
249 | end | |
250 | end) | |
251 | ||
252 | --//=================================\\ | |
253 | --\\=================================// | |
254 | ||
255 | --//=================================\\ | |
256 | --|| SOME FUNCTIONS | |
257 | --\\=================================// | |
258 | ||
259 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
260 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
261 | end | |
262 | ||
263 | function PositiveAngle(NUMBER) | |
264 | if NUMBER >= 0 then | |
265 | NUMBER = 0 | |
266 | end | |
267 | return NUMBER | |
268 | end | |
269 | ||
270 | function NegativeAngle(NUMBER) | |
271 | if NUMBER <= 0 then | |
272 | NUMBER = 0 | |
273 | end | |
274 | return NUMBER | |
275 | end | |
276 | ||
277 | function Swait(NUMBER) | |
278 | if NUMBER == 0 or NUMBER == nil then | |
279 | ArtificialHB.Event:wait() | |
280 | else | |
281 | for i = 1, NUMBER do | |
282 | ArtificialHB.Event:wait() | |
283 | end | |
284 | end | |
285 | end | |
286 | ||
287 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
288 | local NEWMESH = IT(MESH) | |
289 | if MESH == "SpecialMesh" then | |
290 | NEWMESH.MeshType = MESHTYPE | |
291 | if MESHID ~= "nil" and MESHID ~= "" then | |
292 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
293 | end | |
294 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
295 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
296 | end | |
297 | end | |
298 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
299 | NEWMESH.Scale = SCALE | |
300 | NEWMESH.Parent = PARENT | |
301 | return NEWMESH | |
302 | end | |
303 | ||
304 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
305 | local NEWPART = IT("Part") | |
306 | NEWPART.formFactor = FORMFACTOR | |
307 | NEWPART.Reflectance = REFLECTANCE | |
308 | NEWPART.Transparency = TRANSPARENCY | |
309 | NEWPART.CanCollide = false | |
310 | NEWPART.Locked = true | |
311 | NEWPART.Anchored = true | |
312 | if ANCHOR == false then | |
313 | NEWPART.Anchored = false | |
314 | end | |
315 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
316 | NEWPART.Name = NAME | |
317 | NEWPART.Size = SIZE | |
318 | NEWPART.Position = Torso.Position | |
319 | NEWPART.Material = MATERIAL | |
320 | NEWPART:BreakJoints() | |
321 | NEWPART.Parent = PARENT | |
322 | return NEWPART | |
323 | end | |
324 | ||
325 | local function weldBetween(a, b) | |
326 | local weldd = Instance.new("ManualWeld") | |
327 | weldd.Part0 = a | |
328 | weldd.Part1 = b | |
329 | weldd.C0 = CFrame.new() | |
330 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
331 | weldd.Parent = a | |
332 | return weldd | |
333 | end | |
334 | ||
335 | ||
336 | function QuaternionFromCFrame(cf) | |
337 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
338 | local trace = m00 + m11 + m22 | |
339 | if trace > 0 then | |
340 | local s = math.sqrt(1 + trace) | |
341 | local recip = 0.5 / s | |
342 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
343 | else | |
344 | local i = 0 | |
345 | if m11 > m00 then | |
346 | i = 1 | |
347 | end | |
348 | if m22 > (i == 0 and m00 or m11) then | |
349 | i = 2 | |
350 | end | |
351 | if i == 0 then | |
352 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
353 | local recip = 0.5 / s | |
354 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
355 | elseif i == 1 then | |
356 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
357 | local recip = 0.5 / s | |
358 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
359 | elseif i == 2 then | |
360 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
361 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
362 | end | |
363 | end | |
364 | end | |
365 | ||
366 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
367 | local xs, ys, zs = x + x, y + y, z + z | |
368 | local wx, wy, wz = w * xs, w * ys, w * zs | |
369 | local xx = x * xs | |
370 | local xy = x * ys | |
371 | local xz = x * zs | |
372 | local yy = y * ys | |
373 | local yz = y * zs | |
374 | local zz = z * zs | |
375 | 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)) | |
376 | end | |
377 | ||
378 | function QuaternionSlerp(a, b, t) | |
379 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
380 | local startInterp, finishInterp; | |
381 | if cosTheta >= 0.0001 then | |
382 | if (1 - cosTheta) > 0.0001 then | |
383 | local theta = ACOS(cosTheta) | |
384 | local invSinTheta = 1 / SIN(theta) | |
385 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
386 | finishInterp = SIN(t * theta) * invSinTheta | |
387 | else | |
388 | startInterp = 1 - t | |
389 | finishInterp = t | |
390 | end | |
391 | else | |
392 | if (1 + cosTheta) > 0.0001 then | |
393 | local theta = ACOS(-cosTheta) | |
394 | local invSinTheta = 1 / SIN(theta) | |
395 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
396 | finishInterp = SIN(t * theta) * invSinTheta | |
397 | else | |
398 | startInterp = t - 1 | |
399 | finishInterp = t | |
400 | end | |
401 | end | |
402 | 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 | |
403 | end | |
404 | ||
405 | function Clerp(a, b, t) | |
406 | local qa = {QuaternionFromCFrame(a)} | |
407 | local qb = {QuaternionFromCFrame(b)} | |
408 | local ax, ay, az = a.x, a.y, a.z | |
409 | local bx, by, bz = b.x, b.y, b.z | |
410 | local _t = 1 - t | |
411 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
412 | end | |
413 | ||
414 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
415 | local frame = IT("Frame") | |
416 | frame.BackgroundTransparency = TRANSPARENCY | |
417 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
418 | frame.Position = POSITION | |
419 | frame.Size = SIZE | |
420 | frame.BackgroundColor3 = COLOR | |
421 | frame.BorderColor3 = BORDERCOLOR | |
422 | frame.Name = NAME | |
423 | frame.Parent = PARENT | |
424 | return frame | |
425 | end | |
426 | ||
427 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
428 | local label = IT("TextLabel") | |
429 | label.BackgroundTransparency = 1 | |
430 | label.Size = UD2(1, 0, 1, 0) | |
431 | label.Position = UD2(0, 0, 0, 0) | |
432 | label.TextColor3 = TEXTCOLOR | |
433 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
434 | label.TextTransparency = TRANSPARENCY | |
435 | label.FontSize = TEXTFONTSIZE | |
436 | label.Font = TEXTFONT | |
437 | label.BorderSizePixel = BORDERSIZEPIXEL | |
438 | label.TextScaled = false | |
439 | label.Text = TEXT | |
440 | label.Name = NAME | |
441 | label.Parent = PARENT | |
442 | return label | |
443 | end | |
444 | ||
445 | function NoOutlines(PART) | |
446 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
447 | end | |
448 | ||
449 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
450 | local NEWWELD = IT(TYPE) | |
451 | NEWWELD.Part0 = PART0 | |
452 | NEWWELD.Part1 = PART1 | |
453 | NEWWELD.C0 = C0 | |
454 | NEWWELD.C1 = C1 | |
455 | NEWWELD.Parent = PARENT | |
456 | return NEWWELD | |
457 | end | |
458 | ||
459 | local S = IT("Sound") | |
460 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
461 | local NEWSOUND = nil | |
462 | coroutine.resume(coroutine.create(function() | |
463 | NEWSOUND = S:Clone() | |
464 | NEWSOUND.Parent = PARENT | |
465 | NEWSOUND.Volume = VOLUME | |
466 | NEWSOUND.Pitch = PITCH | |
467 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
468 | NEWSOUND:play() | |
469 | if DOESLOOP == true then | |
470 | NEWSOUND.Looped = true | |
471 | else | |
472 | repeat wait(1) until NEWSOUND.Playing == false | |
473 | NEWSOUND:remove() | |
474 | end | |
475 | end)) | |
476 | return NEWSOUND | |
477 | end | |
478 | ||
479 | function CFrameFromTopBack(at, top, back) | |
480 | local right = top:Cross(back) | |
481 | 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) | |
482 | end | |
483 | ||
484 | function MakeForm(PART,TYPE) | |
485 | if TYPE == "Cyl" then | |
486 | local MSH = IT("CylinderMesh",PART) | |
487 | elseif TYPE == "Ball" then | |
488 | local MSH = IT("SpecialMesh",PART) | |
489 | MSH.MeshType = "Sphere" | |
490 | elseif TYPE == "Wedge" then | |
491 | local MSH = IT("SpecialMesh",PART) | |
492 | MSH.MeshType = "Wedge" | |
493 | end | |
494 | end | |
495 | ||
496 | Debris = game:GetService("Debris") | |
497 | ||
498 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
499 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
500 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
501 | end | |
502 | ||
503 | --//=================================\\ | |
504 | --|| WEAPON CREATION | |
505 | --\\=================================// | |
506 | ||
507 | Humanoid.Parent = nil | |
508 | RootPart.Size = RootPart.Size*SIZE | |
509 | Torso.Size = Torso.Size*SIZE | |
510 | RightArm.Size = RightArm.Size*SIZE | |
511 | RightLeg.Size = RightLeg.Size*SIZE | |
512 | LeftArm.Size = LeftArm.Size*SIZE | |
513 | LeftLeg.Size = LeftLeg.Size*SIZE | |
514 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
515 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
516 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
517 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
518 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
519 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
520 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
521 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
522 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
523 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
524 | Head.Size = Head.Size*SIZE | |
525 | RootJoint.Parent = RootPart | |
526 | Neck.Parent = Torso | |
527 | RightShoulder.Parent = Torso | |
528 | LeftShoulder.Parent = Torso | |
529 | RightHip.Parent = Torso | |
530 | LeftHip.Parent = Torso | |
531 | ||
532 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1.4,1,0.2),false) | |
533 | MakeForm(PART,"Ball") | |
534 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.45*SIZE,0.6*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
535 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1.4,1,0.2),false) | |
536 | MakeForm(PART,"Ball") | |
537 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.45*SIZE,0.6*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
538 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1,0.7,0.2),false) | |
539 | MakeForm(PART,"Ball") | |
540 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.35*SIZE,0.15*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
541 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(1,0.7,0.2),false) | |
542 | MakeForm(PART,"Ball") | |
543 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.35*SIZE,0.15*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
544 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(0.75,0.5,0.2),false) | |
545 | MakeForm(PART,"Ball") | |
546 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(0.3*SIZE,-0.13*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
547 | local PART = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Bright blue", "Muscle", VT(0.75,0.5,0.2),false) | |
548 | MakeForm(PART,"Ball") | |
549 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PART, CF(-0.3*SIZE,-0.13*SIZE,-0.45*SIZE), CF(0, 0, 0)) | |
550 | ||
551 | Humanoid.Parent = Character | |
552 | ||
553 | Humanoid.Died:connect(function() | |
554 | ATTACK = true | |
555 | end) | |
556 | ||
557 | 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") | |
558 | ||
559 | local TEXT = CreateLabel(TRACKFRAME, KILLCOUNT, C3(1,0,0), 8, "SourceSans", 0, 2, 1, "Text") | |
560 | ||
561 | --//=================================\\ | |
562 | --|| DAMAGING | |
563 | --\\=================================// | |
564 | ||
565 | local EXPLOSION = IT("Explosion",nil) | |
566 | EXPLOSION.BlastPressure = 0 | |
567 | function PUNCH(Fist) | |
568 | TOUCH = Fist.Touched:Connect(function(hit) | |
569 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
570 | local HUM = hit.Parent:FindFirstChildOfClass("Humanoid") | |
571 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
572 | if TORSO and HUM.Health > 0 then | |
573 | CreateSound(296102734,Fist,6,1,false) | |
574 | CreateSound(12222242,TORSO,7,MRANDOM(8,14)/10,false) | |
575 | TORSO.Parent:BreakJoints() | |
576 | for _, c in pairs(TORSO.Parent:GetChildren()) do | |
577 | if c:IsA("BasePart") then | |
578 | local bv = Instance.new("BodyVelocity",c) | |
579 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
580 | bv.velocity = CF(TORSO.Position,c.Position+VT(0,0.1,0)).lookVector*MRANDOM(70,100) | |
581 | Debris:AddItem(bv,0.05) | |
582 | end | |
583 | end | |
584 | local BOOM = EXPLOSION:Clone() | |
585 | BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p | |
586 | BOOM.Parent = Character | |
587 | TOUCH:Disconnect() | |
588 | KILLCOUNT = KILLCOUNT + 1 | |
589 | end | |
590 | elseif hit.Material == Enum.Material.Glass or hit.Transparency > 0.2 then | |
591 | hit:remove() | |
592 | CreateSound(296102734,Fist,6,1,false) | |
593 | local BOOM = EXPLOSION:Clone() | |
594 | BOOM.BlastPressure = 15 | |
595 | BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p | |
596 | BOOM.Parent = Character | |
597 | elseif hit.Anchored == false then | |
598 | CreateSound(296102734,Fist,6,1,false) | |
599 | local BOOM = EXPLOSION:Clone() | |
600 | BOOM.BlastPressure = 70 | |
601 | BOOM.Position = Fist.CFrame*CF(0,-1*SIZE,0).p | |
602 | BOOM.Parent = Character | |
603 | TOUCH:Disconnect() | |
604 | end | |
605 | end) | |
606 | return TOUCH | |
607 | end | |
608 | ||
609 | --//=================================\\ | |
610 | --|| ATTACK FUNCTIONS AND STUFF | |
611 | --\\=================================// | |
612 | ||
613 | function Yeet() | |
614 | ATTACK = true | |
615 | Rooted = false | |
616 | if COMBO == 1 then | |
617 | COMBO = 2 | |
618 | for i=0, 0.1, 0.1 / Animation_Speed do | |
619 | Swait() | |
620 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(15)), 1 / Animation_Speed) | |
621 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
622 | 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) | |
623 | 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) | |
624 | 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) | |
625 | 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) | |
626 | end | |
627 | local FIST = PUNCH(LeftArm) | |
628 | for i=0, 0.15, 0.1 / Animation_Speed do | |
629 | Swait() | |
630 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
631 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(45)), 1 / Animation_Speed) | |
632 | 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) | |
633 | 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) | |
634 | 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) | |
635 | 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) | |
636 | end | |
637 | FIST:Disconnect() | |
638 | else | |
639 | COMBO = 1 | |
640 | for i=0, 0.1, 0.1 / Animation_Speed do | |
641 | Swait() | |
642 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
643 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
644 | 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) | |
645 | 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) | |
646 | 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) | |
647 | 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) | |
648 | end | |
649 | local FIST = PUNCH(RightArm) | |
650 | for i=0, 0.15, 0.1 / Animation_Speed do | |
651 | Swait() | |
652 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(35), RAD(0), RAD(45)), 1 / Animation_Speed) | |
653 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
654 | 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) | |
655 | 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) | |
656 | 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) | |
657 | 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) | |
658 | end | |
659 | FIST:Disconnect() | |
660 | end | |
661 | ATTACK = false | |
662 | Rooted = false | |
663 | end | |
664 | ||
665 | function YesPlease() | |
666 | ATTACK = true | |
667 | Rooted = true | |
668 | CreateSound(291394633,Head,6,1,false) | |
669 | for i=0, 2, 0.1 / Animation_Speed do | |
670 | Swait() | |
671 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.3*SIZE) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
672 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
673 | 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) | |
674 | 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) | |
675 | 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) | |
676 | 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) | |
677 | end | |
678 | ATTACK = false | |
679 | Rooted = false | |
680 | end | |
681 | ||
682 | --//=================================\\ | |
683 | --|| ASSIGN THINGS TO KEYS | |
684 | --\\=================================// | |
685 | ||
686 | Mouse.Button1Down:connect(function(NEWKEY) | |
687 | if ATTACK == false then | |
688 | Yeet() | |
689 | end | |
690 | end) | |
691 | Mouse.KeyDown:connect(function(NEWKEY) | |
692 | if NEWKEY == "t" and ATTACK == false then | |
693 | YesPlease() | |
694 | end | |
695 | end) | |
696 | ||
697 | --//=================================\\ | |
698 | --\\=================================// | |
699 | ||
700 | function unanchor() | |
701 | if UNANCHOR == true then | |
702 | g = Character:GetChildren() | |
703 | for i = 1, #g do | |
704 | if g[i].ClassName == "Part" then | |
705 | g[i].Anchored = false | |
706 | end | |
707 | end | |
708 | end | |
709 | end | |
710 | ||
711 | --//=================================\\ | |
712 | --|| WRAP THE WHOLE SCRIPT UP | |
713 | --\\=================================// | |
714 | ||
715 | Humanoid.Changed:connect(function(Jump) | |
716 | if Jump == "Jump" and (Disable_Jump == true) then | |
717 | Humanoid.Jump = false | |
718 | end | |
719 | end) | |
720 | ||
721 | local FF = IT("ForceField",Character) | |
722 | FF.Visible = false | |
723 | ||
724 | while true do | |
725 | Swait() | |
726 | script.Parent = WEAPONGUI | |
727 | ANIMATE.Parent = nil | |
728 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
729 | v:Stop(); | |
730 | end | |
731 | SINE = SINE + CHANGE | |
732 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
733 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
734 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
735 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
736 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
737 | 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) | |
738 | 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) | |
739 | 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) | |
740 | 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) | |
741 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
742 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
743 | 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) | |
744 | 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) | |
745 | 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) | |
746 | end | |
747 | if HITFLOOR == nil then | |
748 | ANIM = "Midair" | |
749 | if ATTACK == false then | |
750 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
751 | 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) | |
752 | 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) | |
753 | 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) | |
754 | 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) | |
755 | 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) | |
756 | end | |
757 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
758 | ANIM = "Idle" | |
759 | if ATTACK == false then | |
760 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
761 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
762 | 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) | |
763 | 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) | |
764 | 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) | |
765 | 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) | |
766 | end | |
767 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
768 | ANIM = "Walk" | |
769 | if ATTACK == false then | |
770 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
771 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1/ Animation_Speed) | |
772 | 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) | |
773 | 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) | |
774 | 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) | |
775 | 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) | |
776 | end | |
777 | end | |
778 | unanchor() | |
779 | Humanoid.MaxHealth = 5e7 | |
780 | Humanoid.Health = 5e7 | |
781 | Humanoid.Name = "BigBoie" | |
782 | if Rooted == false then | |
783 | Disable_Jump = false | |
784 | Humanoid.WalkSpeed = Speed | |
785 | elseif Rooted == true then | |
786 | Disable_Jump = true | |
787 | Humanoid.WalkSpeed = 0 | |
788 | end | |
789 | for _, c in pairs(Character:GetChildren()) do | |
790 | if c.ClassName == "Part" then | |
791 | c.Material = "SmoothPlastic" | |
792 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
793 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
794 | end | |
795 | if c == Torso or c.Name == "Muscle" then | |
796 | c.BrickColor = BRICKC"Bright blue" | |
797 | elseif c == RightLeg or c == LeftLeg then | |
798 | c.BrickColor = BRICKC"Br. yellowish green" | |
799 | else | |
800 | c.BrickColor = BRICKC"Bright yellow" | |
801 | end | |
802 | if c == Head then | |
803 | if c:FindFirstChild("face") then | |
804 | c.face.Texture = "http://www.roblox.com/asset/?id=145914523" | |
805 | end | |
806 | end | |
807 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
808 | c:remove() | |
809 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
810 | c:remove() | |
811 | end | |
812 | end | |
813 | sick.SoundId = "rbxassetid://157460916" | |
814 | sick.Looped = true | |
815 | - | sick.Pitch = (MRANDOM(95,115)/100)+1 |
815 | + | |
816 | sick:Resume() | |
817 | sick.Parent = Torso | |
818 | Humanoid.JumpPower = 257 | |
819 | TEXT.Text = KILLCOUNT | |
820 | end | |
821 | ||
822 | --//=================================\\ | |
823 | --\\=================================// | |
824 | ||
825 | ||
826 | ||
827 | ||
828 | ||
829 | --//====================================================\\-- | |
830 | --|| END OF SCRIPT | |
831 | --\\====================================================//-- |