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