SHOW:
|
|
- or go back to the newest paste.
| 1 | -----------//Suka Blyatster\\----------- | |
| 2 | ||
| 3 | --Credits to Shackluster for the refit/anti-breakjoints function, he's a cool guy/great scripter and to Supr14 for making Elio script, edit by Reset5017577.-- | |
| 4 | --Ayy i'm not dead yet, take that haters, if i even had any to begin with.-- | |
| 5 | --Keeping this script small since big ones will cause major lag & exceed script limits-- | |
| 6 | --Using a FE converter because i'm way too lazy to create remotes for it-- | |
| 7 | ||
| 8 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
| |
| 9 | do | |
| 10 | script.Parent = owner.Character | |
| 11 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
| |
| 12 | local function NewFakeEvent() | |
| 13 | local Bind = Instance.new("BindableEvent")
| |
| 14 | local Fake;Fake = {Connections = {},
| |
| 15 | fakeEvent=true; | |
| 16 | Connect=function(self,Func) | |
| 17 | Bind.Event:connect(Func) | |
| 18 | self.Connections[Bind] = true | |
| 19 | return setmetatable({Connected = true},{
| |
| 20 | __index = function (self,Index) | |
| 21 | if Index:lower() == "disconnect" then | |
| 22 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
| 23 | end | |
| 24 | return Fake[Index] | |
| 25 | end; | |
| 26 | __tostring = function() return "Connection" end; | |
| 27 | }) | |
| 28 | end} | |
| 29 | Fake.connect = Fake.Connect;return Fake; | |
| 30 | end | |
| 31 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 32 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 33 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 34 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 35 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 36 | local function TriggerEvent(self,Event,...) | |
| 37 | local Trigger = Mouse[Event] | |
| 38 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
| 39 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
| 43 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 44 | if FiredBy.Name ~= owner.Name then return end | |
| 45 | if Input.MouseEvent then | |
| 46 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 47 | else | |
| 48 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 49 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
| 50 | for _,Action in pairs(ContextActionService.Actions) do | |
| 51 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 52 | end | |
| 53 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 54 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 55 | end | |
| 56 | end) | |
| 57 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 58 | Event.Parent = NLS([[ | |
| 59 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
| |
| 60 | local Input = function(Input,gameProcessedEvent) | |
| 61 | if gameProcessedEvent then return end | |
| 62 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 63 | end | |
| 64 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 65 | local Hit,Target | |
| 66 | while wait(1/30) do | |
| 67 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 68 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 69 | end | |
| 70 | end | |
| 71 | ]],owner.Character) | |
| 72 | end | |
| 73 | RealGame = game;game = setmetatable({},{
| |
| 74 | __index = function (self,Index) | |
| 75 | local Sandbox = function (Thing) | |
| 76 | if Thing:IsA("Player") then
| |
| 77 | local RealPlayer = Thing | |
| 78 | return setmetatable({},{
| |
| 79 | __index = function (self,Index) | |
| 80 | local Type = type(RealPlayer[Index]) | |
| 81 | if Type == "function" then | |
| 82 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 83 | return function (self)return InternalData["Mouse"] end | |
| 84 | end | |
| 85 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
| 86 | end | |
| 87 | return RealPlayer[Index] | |
| 88 | end; | |
| 89 | __tostring = function(self) return RealPlayer.Name end | |
| 90 | }) | |
| 91 | end | |
| 92 | end | |
| 93 | if RealGame[Index] then | |
| 94 | local Type = type(RealGame[Index]) | |
| 95 | if Type == "function" then | |
| 96 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 97 | return function (self,Service) | |
| 98 | local FakeServices = {
| |
| 99 | ["players"] = function() | |
| 100 | return setmetatable({},{
| |
| 101 | __index = function (self2,Index2) | |
| 102 | local RealService = RealGame:GetService(Service) | |
| 103 | local Type2 = type(Index2) | |
| 104 | if Type2 == "function" then | |
| 105 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 106 | else | |
| 107 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
| 108 | return RealService[Index2] | |
| 109 | end | |
| 110 | end; | |
| 111 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
| 112 | }) | |
| 113 | end; | |
| 114 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 115 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 116 | ["runservice"] = function() | |
| 117 | return setmetatable({},{
| |
| 118 | __index = function(self2,Index2) | |
| 119 | local RealService = RealGame:GetService(Service) | |
| 120 | local Type2 = type(Index2) | |
| 121 | if Type2 == "function" then | |
| 122 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 123 | else | |
| 124 | local RunServices = {
| |
| 125 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 126 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 127 | } | |
| 128 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 129 | return RealService[Index2] | |
| 130 | end | |
| 131 | end | |
| 132 | }) | |
| 133 | end | |
| 134 | } | |
| 135 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 136 | return RealGame:GetService(Service) | |
| 137 | end | |
| 138 | end | |
| 139 | return function (self,...) return RealGame[Index](RealGame,...) end | |
| 140 | else | |
| 141 | if game:GetService(Index) then return game:GetService(Index) end | |
| 142 | return RealGame[Index] | |
| 143 | end | |
| 144 | end | |
| 145 | return nil | |
| 146 | end | |
| 147 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
| |
| 148 | ||
| 149 | Player=game.Players.LocalPlayer | |
| 150 | Character=Player.Character | |
| 151 | Character.Humanoid.Name = "noneofurbusiness" | |
| 152 | hum = Character.noneofurbusiness | |
| 153 | LeftArm=Character["Left Arm"] | |
| 154 | LeftLeg=Character["Left Leg"] | |
| 155 | RightArm=Character["Right Arm"] | |
| 156 | RightLeg=Character["Right Leg"] | |
| 157 | Root=Character["HumanoidRootPart"] | |
| 158 | Head=Character["Head"] | |
| 159 | Torso=Character["Torso"] | |
| 160 | Neck=Torso["Neck"] | |
| 161 | mouse = Player:GetMouse() | |
| 162 | walking = false | |
| 163 | jumping = false | |
| 164 | attacking = false | |
| 165 | firsttime = false | |
| 166 | tauntdebounce = false | |
| 167 | position = nil | |
| 168 | MseGuide = true | |
| 169 | running = false | |
| 170 | settime = 0 | |
| 171 | sine = 0 | |
| 172 | t = 0 | |
| 173 | ws = 18 | |
| 174 | change = 1 | |
| 175 | combo1 = true | |
| 176 | equip = false | |
| 177 | dgs = 75 | |
| 178 | combo2 = false | |
| 179 | switch1 = true | |
| 180 | switch2 = false | |
| 181 | firsttime2 = false | |
| 182 | combo3 = false | |
| 183 | gunallowance = false | |
| 184 | shooting = false | |
| 185 | RunSrv = game:GetService("RunService")
| |
| 186 | RenderStepped = game:GetService("RunService").RenderStepped
| |
| 187 | removeuseless = game:GetService("Debris")
| |
| 188 | ||
| 189 | screenGui = Instance.new("ScreenGui")
| |
| 190 | screenGui.Parent = script.Parent | |
| 191 | ||
| 192 | local HEADLERP = Instance.new("ManualWeld")
| |
| 193 | HEADLERP.Parent = Head | |
| 194 | HEADLERP.Part0 = Head | |
| 195 | HEADLERP.Part1 = Head | |
| 196 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 197 | ||
| 198 | local TORSOLERP = Instance.new("ManualWeld")
| |
| 199 | TORSOLERP.Parent = Root | |
| 200 | TORSOLERP.Part0 = Torso | |
| 201 | TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 202 | ||
| 203 | local ROOTLERP = Instance.new("ManualWeld")
| |
| 204 | ROOTLERP.Parent = Root | |
| 205 | ROOTLERP.Part0 = Root | |
| 206 | ROOTLERP.Part1 = Torso | |
| 207 | ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 208 | ||
| 209 | local RIGHTARMLERP = Instance.new("ManualWeld")
| |
| 210 | RIGHTARMLERP.Parent = RightArm | |
| 211 | RIGHTARMLERP.Part0 = RightArm | |
| 212 | RIGHTARMLERP.Part1 = Torso | |
| 213 | RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 214 | ||
| 215 | local LEFTARMLERP = Instance.new("ManualWeld")
| |
| 216 | LEFTARMLERP.Parent = LeftArm | |
| 217 | LEFTARMLERP.Part0 = LeftArm | |
| 218 | LEFTARMLERP.Part1 = Torso | |
| 219 | LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 220 | ||
| 221 | local RIGHTLEGLERP = Instance.new("ManualWeld")
| |
| 222 | RIGHTLEGLERP.Parent = RightLeg | |
| 223 | RIGHTLEGLERP.Part0 = RightLeg | |
| 224 | RIGHTLEGLERP.Part1 = Torso | |
| 225 | RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 226 | ||
| 227 | local LEFTLEGLERP = Instance.new("ManualWeld")
| |
| 228 | LEFTLEGLERP.Parent = LeftLeg | |
| 229 | LEFTLEGLERP.Part0 = LeftLeg | |
| 230 | LEFTLEGLERP.Part1 = Torso | |
| 231 | LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 232 | ||
| 233 | local function weldBetween(a, b) | |
| 234 | local weld = Instance.new("ManualWeld", a)
| |
| 235 | weld.Part0 = a | |
| 236 | weld.Part1 = b | |
| 237 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 238 | return weld | |
| 239 | end | |
| 240 | ||
| 241 | function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR) | |
| 242 | A = Instance.new("Attachment", PARENT)
| |
| 243 | A.Position = POSITION1 | |
| 244 | A.Name = "A" | |
| 245 | B = Instance.new("Attachment", PARENT)
| |
| 246 | B.Position = POSITION2 | |
| 247 | B.Name = "B" | |
| 248 | tr1 = Instance.new("Trail", PARENT)
| |
| 249 | tr1.Attachment0 = A | |
| 250 | tr1.Attachment1 = B | |
| 251 | tr1.Enabled = true | |
| 252 | tr1.Lifetime = LIFETIME | |
| 253 | tr1.TextureMode = "Static" | |
| 254 | tr1.LightInfluence = 0 | |
| 255 | tr1.Color = COLOR | |
| 256 | tr1.Transparency = NumberSequence.new(0, 1) | |
| 257 | end | |
| 258 | ||
| 259 | shirt = Instance.new("Shirt", Character)
| |
| 260 | shirt.Name = "Shirt" | |
| 261 | pants = Instance.new("Pants", Character)
| |
| 262 | pants.Name = "Pants" | |
| 263 | Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=419891287" | |
| 264 | Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=80046728" | |
| 265 | ||
| 266 | LeftArm.BrickColor = BrickColor.new("Bright yellow")
| |
| 267 | RightArm.BrickColor = BrickColor.new("Bright yellow")
| |
| 268 | Head.BrickColor = BrickColor.new("Bright yellow")
| |
| 269 | ||
| 270 | local char = game.Players.LocalPlayer.Character | |
| 271 | local radio = Instance.new("Part", char)
| |
| 272 | radio.Name = "Radio" | |
| 273 | local mesh = Instance.new("FileMesh", radio)
| |
| 274 | mesh.MeshId = "http://www.roblox.com/asset/?id=192488915" | |
| 275 | mesh.TextureId = "http://www.roblox.com/asset/?id=192488947" | |
| 276 | mesh.Scale = Vector3.new(1, 1, 1) | |
| 277 | mesh.VertexColor = Vector3.new(1, 1, 1) | |
| 278 | mesh.Offset = Vector3.new(0, 0, 0) | |
| 279 | ||
| 280 | ||
| 281 | ||
| 282 | local function weldBetween(a, b) | |
| 283 | local weld = Instance.new("ManualWeld")
| |
| 284 | weld.Part0 = a | |
| 285 | weld.Part1 = b | |
| 286 | weld.C0 = CFrame.new() | |
| 287 | weld.C1 = b.CFrame:inverse() * a.CFrame | |
| 288 | weld.Parent = a | |
| 289 | return weld; | |
| 290 | end | |
| 291 | local hand = radio:clone() | |
| 292 | hand.Parent=char | |
| 293 | hand.CFrame=char:WaitForChild("Torso").CFrame*CFrame.new(Vector3.new(0,0,0.9))*CFrame.Angles(0,math.rad(180),math.rad(45))
| |
| 294 | weldBetween(char:WaitForChild("Torso"), hand)
| |
| 295 | hand.CanCollide=true | |
| 296 | hand.Anchored=false | |
| 297 | ||
| 298 | hat1 = Instance.new('Hat')
| |
| 299 | hat1.Parent = game.Players.LocalPlayer.Character | |
| 300 | ||
| 301 | handle = Instance.new('Part')
| |
| 302 | handle.Name = 'Handle' | |
| 303 | handle.Parent = hat1 | |
| 304 | ||
| 305 | handlemesh = Instance.new('SpecialMesh')
| |
| 306 | handlemesh.MeshType = 'FileMesh' | |
| 307 | handlemesh.MeshId = 'http://www.roblox.com/asset/?id=63688922' | |
| 308 | handlemesh.TextureId = 'rbxassetid://63688929' | |
| 309 | handlemesh.Parent = handle | |
| 310 | ||
| 311 | tommygun = Instance.new("Part",Character)
| |
| 312 | tommygun.Size = Vector3.new(0,0,0) | |
| 313 | tommygun.CFrame = RightArm.CFrame | |
| 314 | tommygun.CanCollide = false | |
| 315 | tommygunweld = Instance.new("Weld",tommygun)
| |
| 316 | tommygunweld.Part0 = tommygun | |
| 317 | tommygunweld.Part1 = RightArm | |
| 318 | tommygunweld.C0 = tommygun.CFrame:inverse() * RightArm.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),0) | |
| 319 | mtommygun = Instance.new("SpecialMesh", tommygun)
| |
| 320 | mtommygun.MeshType = "FileMesh" | |
| 321 | - | mtommygun.Scale = Vector3.new(.1,.1,.1) |
| 321 | + | mtommygun.Scale = Vector3.new(1000,1000,1000) |
| 322 | mtommygun.MeshId,mtommygun.TextureId = 'http://www.roblox.com/asset/?id=94219391','http://www.roblox.com/asset/?id=94219470' | |
| 323 | shootbox = Instance.new("Part",Character)
| |
| 324 | shootbox.Size = Vector3.new(.2,.2,.2) | |
| 325 | shootbox.CanCollide = false | |
| 326 | shootbox.Transparency = 1 | |
| 327 | shootbox.CFrame = tommygun.CFrame | |
| 328 | shootboxweld = weldBetween(shootbox,tommygun) | |
| 329 | shootboxweld.C0 = CFrame.new(0,-.05,2.62) | |
| 330 | light = Instance.new("PointLight", shootbox)
| |
| 331 | light.Color = BrickColor.new("Bright yellow").Color
| |
| 332 | light.Range = 5 | |
| 333 | light.Brightness = 11 | |
| 334 | light.Enabled = false | |
| 335 | particlemiter1 = Instance.new("ParticleEmitter", shootbox)
| |
| 336 | particlemiter1.Enabled = false | |
| 337 | particlemiter1.Texture = "rbxassetid://461242617" | |
| 338 | particlemiter1.Lifetime = NumberRange.new(.1) | |
| 339 | particlemiter1.Size = NumberSequence.new(1,0) | |
| 340 | particlemiter1.Rate = 60 | |
| 341 | particlemiter1.RotSpeed = NumberRange.new(0) | |
| 342 | particlemiter1.Speed = NumberRange.new(0) | |
| 343 | tommygunammo = Instance.new("Part",Character)
| |
| 344 | tommygunammo.Size = Vector3.new(2,2,2) | |
| 345 | tommygunammo.CFrame = tommygun.CFrame | |
| 346 | tommygunammo.CanCollide = false | |
| 347 | tommygunammoweld = Instance.new("Weld",tommygunammo)
| |
| 348 | tommygunammoweld.Part0 = tommygunammo | |
| 349 | tommygunammoweld.Part1 = tommygun | |
| 350 | tommygunammoweld.C0 = tommygun.CFrame:inverse() * tommygun.CFrame * CFrame.new(0,.4,.25) * CFrame.Angles(math.rad(0),math.rad(0),0) | |
| 351 | mtommygunammo = Instance.new("SpecialMesh", tommygunammo)
| |
| 352 | mtommygunammo.MeshType = "FileMesh" | |
| 353 | mtommygunammo.Scale = Vector3.new(1, 1, 1) | |
| 354 | mtommygunammo.MeshId,mtommygunammo.TextureId = 'http://www.roblox.com/asset/?id=0','http://www.roblox.com/asset/?id=0' | |
| 355 | ||
| 356 | ||
| 357 | ||
| 358 | ||
| 359 | coroutine.wrap(function() | |
| 360 | while wait() do | |
| 361 | hum.WalkSpeed = ws | |
| 362 | end | |
| 363 | end)() | |
| 364 | godmode = coroutine.wrap(function() | |
| 365 | for i,v in pairs(Character:GetChildren()) do | |
| 366 | if v:IsA("BasePart") and v ~= Root then
| |
| 367 | v.Anchored = false | |
| 368 | end | |
| 369 | end | |
| 370 | while true do | |
| 371 | hum.MaxHealth = math.huge | |
| 372 | wait(0.0000001) | |
| 373 | hum.Health = math.huge | |
| 374 | wait() | |
| 375 | end | |
| 376 | end) | |
| 377 | godmode() | |
| 378 | ff = Instance.new("ForceField", Character)
| |
| 379 | ff.Visible = false | |
| 380 | ||
| 381 | coroutine.wrap(function() | |
| 382 | for i,v in pairs(Character:GetChildren()) do | |
| 383 | if v.Name == "Animate" then v:Remove() | |
| 384 | end | |
| 385 | end | |
| 386 | end)() | |
| 387 | ||
| 388 | function damagealll(Radius,Position) | |
| 389 | local Returning = {}
| |
| 390 | for _,v in pairs(workspace:GetChildren()) do | |
| 391 | if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
| |
| 392 | if v:FindFirstChild("Torso") then
| |
| 393 | local Mag = (v.Torso.Position - Position).magnitude | |
| 394 | if Mag < Radius then | |
| 395 | table.insert(Returning,v) | |
| 396 | end | |
| 397 | elseif v:FindFirstChild("UpperTorso") then
| |
| 398 | local Mag = (v.UpperTorso.Position - Position).magnitude | |
| 399 | if Mag < Radius then | |
| 400 | table.insert(Returning,v) | |
| 401 | end | |
| 402 | end | |
| 403 | end | |
| 404 | end | |
| 405 | return Returning | |
| 406 | end | |
| 407 | ||
| 408 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 409 | ArtificialHB.Name = "Heartbeat" | |
| 410 | script:WaitForChild("Heartbeat")
| |
| 411 | ||
| 412 | frame = 1 / 60 | |
| 413 | tf = 0 | |
| 414 | allowframeloss = false | |
| 415 | tossremainder = false | |
| 416 | ||
| 417 | ||
| 418 | lastframe = tick() | |
| 419 | script.Heartbeat:Fire() | |
| 420 | ||
| 421 | ||
| 422 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 423 | tf = tf + s | |
| 424 | if tf >= frame then | |
| 425 | if allowframeloss then | |
| 426 | script.Heartbeat:Fire() | |
| 427 | lastframe = tick() | |
| 428 | else | |
| 429 | for i = 1, math.floor(tf / frame) do | |
| 430 | script.Heartbeat:Fire() | |
| 431 | end | |
| 432 | lastframe = tick() | |
| 433 | end | |
| 434 | if tossremainder then | |
| 435 | tf = 0 | |
| 436 | else | |
| 437 | tf = tf - frame * math.floor(tf / frame) | |
| 438 | end | |
| 439 | end | |
| 440 | end) | |
| 441 | ||
| 442 | function swait(num) | |
| 443 | if num == 0 or num == nil then | |
| 444 | game:service("RunService").Stepped:wait(0)
| |
| 445 | else | |
| 446 | for i = 0, num do | |
| 447 | game:service("RunService").Stepped:wait(0)
| |
| 448 | end | |
| 449 | end | |
| 450 | end | |
| 451 | ||
| 452 | doomtheme = Instance.new("Sound", Torso)
| |
| 453 | doomtheme.Volume = 1 | |
| 454 | doomtheme.Name = "doomtheme" | |
| 455 | doomtheme.Looped = true | |
| 456 | doomtheme.SoundId = "rbxassetid://2508725733" | |
| 457 | doomtheme:Play() | |
| 458 | ||
| 459 | Torso.ChildRemoved:connect(function(removed) | |
| 460 | if removed.Name == "doomtheme" then | |
| 461 | ||
| 462 | doomtheme = Instance.new("Sound", Torso)
| |
| 463 | doomtheme.Volume = 1 | |
| 464 | doomtheme.Name = "doomtheme" | |
| 465 | doomtheme.Looped = true | |
| 466 | doomtheme.SoundId = "rbxassetid://2508725733" | |
| 467 | doomtheme:Play() | |
| 468 | end | |
| 469 | end) | |
| 470 | ||
| 471 | for _,n in pairs(Character:GetChildren()) do | |
| 472 | if n:IsA("Accessory") then n:Remove() end
| |
| 473 | end | |
| 474 | for _,x in pairs(Character:GetChildren()) do | |
| 475 | if x:IsA("Decal") then x:Remove() end
| |
| 476 | end | |
| 477 | ||
| 478 | function SOUND(PARENT,ID,VOL,LOOP,REMOVE) | |
| 479 | so = Instance.new("Sound")
| |
| 480 | so.Parent = PARENT | |
| 481 | so.SoundId = "rbxassetid://"..ID | |
| 482 | so.Volume = VOL | |
| 483 | so.Looped = LOOP | |
| 484 | so:Play() | |
| 485 | removeuseless:AddItem(so,REMOVE) | |
| 486 | end | |
| 487 | ||
| 488 | mouse.KeyDown:connect(function(Press) | |
| 489 | Press=Press:lower() | |
| 490 | if Press=='t' then | |
| 491 | if tauntdebounce then return end | |
| 492 | tauntdebounce = true | |
| 493 | local b1 = Instance.new("BillboardGui",Head)
| |
| 494 | b1.Size = UDim2.new(0,4,0,1.6) | |
| 495 | b1.StudsOffset = Vector3.new(0,0,0) | |
| 496 | b1.Name = "laff" | |
| 497 | b1.AlwaysOnTop = true | |
| 498 | b1.StudsOffset = Vector3.new(0,2,0) | |
| 499 | b1.Adornee = Head | |
| 500 | removeuseless:AddItem(b1,3) | |
| 501 | local b2 = Instance.new("TextLabel",b1)
| |
| 502 | b2.BackgroundTransparency = 1 | |
| 503 | b2.Text = "Do squat everyday or SAY HELLO TO MY LITTLE FRIEND!" | |
| 504 | b2.Font = "Garamond" | |
| 505 | b2.TextSize = 30 | |
| 506 | b2.Name = "lafftext" | |
| 507 | b2.TextStrokeTransparency = 0 | |
| 508 | b2.TextColor3 = BrickColor.new("Bright red").Color
| |
| 509 | b2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 510 | b2.Size = UDim2.new(1,0,.5,0) | |
| 511 | laff = Instance.new("Sound",Head)
| |
| 512 | laff.SoundId = "rbxassetid://133763874" | |
| 513 | laff.Volume = 5 | |
| 514 | laff:Play() | |
| 515 | wait(5) | |
| 516 | laff:Remove() | |
| 517 | tauntdebounce = false | |
| 518 | end | |
| 519 | end) | |
| 520 | mouse.KeyDown:connect(function(Press) | |
| 521 | Press=Press:lower() | |
| 522 | if Press=='j' then | |
| 523 | if dancing then | |
| 524 | dancing = false | |
| 525 | else | |
| 526 | dancing = true | |
| 527 | ws = 0 | |
| 528 | change = .5 | |
| 529 | walkforward = 0 | |
| 530 | walkrotation = 0 | |
| 531 | attacking = true | |
| 532 | truelegend = Instance.new("Sound",Torso)
| |
| 533 | truelegend.SoundId = "rbxassetid://487872908" | |
| 534 | truelegend.TimePosition = 13.98 | |
| 535 | truelegend.Volume = 8 | |
| 536 | truelegend.Looped = true | |
| 537 | truelegend:Play() | |
| 538 | coroutine.wrap(function() | |
| 539 | while dancing do | |
| 540 | for i = 1, 100 do | |
| 541 | if not dancing then break end | |
| 542 | walkforward = walkforward + .1 | |
| 543 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3) | |
| 544 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3) | |
| 545 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
| 546 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) | |
| 547 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) | |
| 548 | swait() | |
| 549 | end | |
| 550 | for i = 1, 50 do | |
| 551 | if not dancing then break end | |
| 552 | walkrotation = walkrotation + 15 | |
| 553 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2) | |
| 554 | swait() | |
| 555 | end | |
| 556 | walkrotation = 0 | |
| 557 | for i = 1, 100 do | |
| 558 | if not dancing then break end | |
| 559 | walkforward = walkforward - .1 | |
| 560 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3) | |
| 561 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3) | |
| 562 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2) | |
| 563 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4) | |
| 564 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3) | |
| 565 | swait() | |
| 566 | end | |
| 567 | for i = 1, 50 do | |
| 568 | if not dancing then break end | |
| 569 | walkrotation = walkrotation + 15 | |
| 570 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1) | |
| 571 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2) | |
| 572 | swait() | |
| 573 | end | |
| 574 | walkrotation = 0 | |
| 575 | swait() | |
| 576 | end | |
| 577 | ws = 14 | |
| 578 | truelegend:Remove() | |
| 579 | attacking = false | |
| 580 | end)() | |
| 581 | end | |
| 582 | end | |
| 583 | end) | |
| 584 | mouse.KeyDown:connect(function(Press) | |
| 585 | Press=Press:lower() | |
| 586 | if Press=='y' then | |
| 587 | if tauntdebounce then return end | |
| 588 | tauntdebounce = true | |
| 589 | local b1 = Instance.new("BillboardGui",Head)
| |
| 590 | b1.Size = UDim2.new(0,4,0,1.6) | |
| 591 | b1.StudsOffset = Vector3.new(0,0,0) | |
| 592 | b1.Name = "laff" | |
| 593 | b1.AlwaysOnTop = true | |
| 594 | b1.StudsOffset = Vector3.new(0,2,0) | |
| 595 | b1.Adornee = Head | |
| 596 | removeuseless:AddItem(b1,3) | |
| 597 | local b2 = Instance.new("TextLabel",b1)
| |
| 598 | b2.BackgroundTransparency = 1 | |
| 599 | b2.Text = "REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE" | |
| 600 | b2.Font = "Garamond" | |
| 601 | b2.TextSize = 30 | |
| 602 | b2.Name = "lafftext" | |
| 603 | b2.TextStrokeTransparency = 0 | |
| 604 | b2.TextColor3 = BrickColor.new("Bright red").Color
| |
| 605 | b2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 606 | b2.Size = UDim2.new(1,0,.5,0) | |
| 607 | laff = Instance.new("Sound",Head)
| |
| 608 | laff.SoundId = "rbxassetid://1205457048" | |
| 609 | laff.Volume = 5 | |
| 610 | laff:Play() | |
| 611 | wait(5) | |
| 612 | laff:Remove() | |
| 613 | tauntdebounce = false | |
| 614 | end | |
| 615 | end) | |
| 616 | mouse.KeyDown:connect(function(Press) | |
| 617 | Press=Press:lower() | |
| 618 | if Press=='q' then | |
| 619 | if dancing then | |
| 620 | dancing = false | |
| 621 | else | |
| 622 | dancing = true | |
| 623 | ws = 0 | |
| 624 | change = .5 | |
| 625 | spinningmove = 0 | |
| 626 | dbwouldlovethis = Instance.new("Sound",Torso)
| |
| 627 | dbwouldlovethis.SoundId = "rbxassetid://764321476" | |
| 628 | dbwouldlovethis.Volume = 8 | |
| 629 | dbwouldlovethis.Looped = true | |
| 630 | dbwouldlovethis:Play() | |
| 631 | attacking = true | |
| 632 | coroutine.wrap(function() | |
| 633 | while dancing do | |
| 634 | spinningmove = spinningmove + 10 | |
| 635 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2) | |
| 636 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) | |
| 637 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.2 * math.sin(sine/3), -.52, .2 * math.sin(sine/4)) * CFrame.Angles(math.rad(180),math.rad(spinningmove),math.rad(15 * math.sin(sine/9))),.2) | |
| 638 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-1),math.rad(-3 * math.sin(sine/2))),0.3) | |
| 639 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(3 * math.sin(sine/2))), 0.3) | |
| 640 | swait() | |
| 641 | end | |
| 642 | ws = 14 | |
| 643 | dbwouldlovethis:Remove() | |
| 644 | attacking = false | |
| 645 | end)() | |
| 646 | end | |
| 647 | end | |
| 648 | end) | |
| 649 | mouse.KeyDown:connect(function(Press) | |
| 650 | Press=Press:lower() | |
| 651 | if Press=='u' then | |
| 652 | if tauntdebounce then return end | |
| 653 | tauntdebounce = true | |
| 654 | local b1 = Instance.new("BillboardGui",Head)
| |
| 655 | b1.Size = UDim2.new(0,4,0,1.6) | |
| 656 | b1.StudsOffset = Vector3.new(0,0,0) | |
| 657 | b1.Name = "laff" | |
| 658 | b1.AlwaysOnTop = true | |
| 659 | b1.StudsOffset = Vector3.new(0,2,0) | |
| 660 | b1.Adornee = Head | |
| 661 | removeuseless:AddItem(b1,3) | |
| 662 | local b2 = Instance.new("TextLabel",b1)
| |
| 663 | b2.BackgroundTransparency = 1 | |
| 664 | b2.Text = "*Peacefully drinking chug-jug*" | |
| 665 | b2.Font = "Garamond" | |
| 666 | b2.TextSize = 30 | |
| 667 | b2.Name = "lafftext" | |
| 668 | b2.TextStrokeTransparency = 0 | |
| 669 | b2.TextColor3 = BrickColor.new("Bright blue").Color
| |
| 670 | b2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 671 | b2.Size = UDim2.new(1,0,.5,0) | |
| 672 | laff = Instance.new("Sound",Head)
| |
| 673 | laff.SoundId = "rbxassetid://2506450841" | |
| 674 | laff.Volume = 5 | |
| 675 | laff:Play() | |
| 676 | wait(5) | |
| 677 | laff:Remove() | |
| 678 | tauntdebounce = false | |
| 679 | end | |
| 680 | end) | |
| 681 | mouse.KeyDown:connect(function(Press) | |
| 682 | Press=Press:lower() | |
| 683 | if Press=='p' then | |
| 684 | if tauntdebounce then return end | |
| 685 | tauntdebounce = true | |
| 686 | local b1 = Instance.new("BillboardGui",Head)
| |
| 687 | b1.Size = UDim2.new(0,4,0,1.6) | |
| 688 | b1.StudsOffset = Vector3.new(0,0,0) | |
| 689 | b1.Name = "laff" | |
| 690 | b1.AlwaysOnTop = true | |
| 691 | b1.StudsOffset = Vector3.new(0,2,0) | |
| 692 | b1.Adornee = Head | |
| 693 | removeuseless:AddItem(b1,3) | |
| 694 | local b2 = Instance.new("TextLabel",b1)
| |
| 695 | b2.BackgroundTransparency = 1 | |
| 696 | b2.Text = "IM just standing here, what about you?" | |
| 697 | b2.Font = "Garamond" | |
| 698 | b2.TextSize = 30 | |
| 699 | b2.Name = "lafftext" | |
| 700 | b2.TextStrokeTransparency = 0 | |
| 701 | b2.TextColor3 = BrickColor.new("Dark green").Color
| |
| 702 | b2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 703 | b2.Size = UDim2.new(1,0,.5,0) | |
| 704 | laff = Instance.new("Sound",Head)
| |
| 705 | laff.SoundId = "rbxassetid://0" | |
| 706 | laff.Volume = 5 | |
| 707 | laff:Play() | |
| 708 | wait(5) | |
| 709 | laff:Remove() | |
| 710 | tauntdebounce = false | |
| 711 | end | |
| 712 | end) | |
| 713 | mouse.KeyDown:connect(function(Press) | |
| 714 | Press=Press:lower() | |
| 715 | if Press=='g' then | |
| 716 | if dancing then | |
| 717 | dancing = false | |
| 718 | else | |
| 719 | ws = 6 | |
| 720 | recordbaby = 0 | |
| 721 | dancing = true | |
| 722 | change = .5 | |
| 723 | attacking = true | |
| 724 | spinme = Instance.new("Sound",Torso)
| |
| 725 | spinme.Volume = 8 | |
| 726 | spinme.SoundId = "rbxassetid://145799973" | |
| 727 | spinme.Looped = true | |
| 728 | spinme:Play() | |
| 729 | coroutine.wrap(function() | |
| 730 | while dancing do | |
| 731 | recordbaby = recordbaby + 10 | |
| 732 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.27, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3) | |
| 733 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.27, 2.0, -.1 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3) | |
| 734 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.5 * math.sin(sine/5), -.2, .5 * math.sin(sine/4)) * CFrame.Angles(math.rad(0),math.rad(recordbaby),math.rad(0)),.3) | |
| 735 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3) | |
| 736 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3) | |
| 737 | swait() | |
| 738 | end | |
| 739 | spinme:Remove() | |
| 740 | ws = 14 | |
| 741 | attacking = false | |
| 742 | end)() | |
| 743 | end | |
| 744 | end | |
| 745 | end) | |
| 746 | mouse.KeyDown:connect(function(Press) | |
| 747 | Press=Press:lower() | |
| 748 | if Press=='f' then | |
| 749 | if dancing then | |
| 750 | dancing = false | |
| 751 | else | |
| 752 | dancing = true | |
| 753 | ws = 6 | |
| 754 | change = .5 | |
| 755 | attacking = true | |
| 756 | slavdance = Instance.new("Sound",Torso)
| |
| 757 | slavdance.SoundId = "rbxassetid://2341226836" | |
| 758 | slavdance.Volume = 6 | |
| 759 | slavdance.Looped = true | |
| 760 | slavdance:Play() | |
| 761 | coroutine.wrap(function() | |
| 762 | while dancing do | |
| 763 | for i = 1, 17 do | |
| 764 | if not dancing then break end | |
| 765 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2) | |
| 766 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) | |
| 767 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2) | |
| 768 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3) | |
| 769 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3) | |
| 770 | swait() | |
| 771 | end | |
| 772 | for i = 1, 17 do | |
| 773 | if not dancing then break end | |
| 774 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2) | |
| 775 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2) | |
| 776 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2) | |
| 777 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3) | |
| 778 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3) | |
| 779 | swait() | |
| 780 | end | |
| 781 | swait() | |
| 782 | end | |
| 783 | ws = 14 | |
| 784 | slavdance:Remove() | |
| 785 | attacking = false | |
| 786 | end)() | |
| 787 | end | |
| 788 | end | |
| 789 | end) | |
| 790 | mouse.KeyDown:connect(function(Press) | |
| 791 | Press=Press:lower() | |
| 792 | if Press=='h' then | |
| 793 | if dancing then | |
| 794 | dancing = false | |
| 795 | else | |
| 796 | dancing = true | |
| 797 | ws = 6 | |
| 798 | change = .5 | |
| 799 | attacking = true | |
| 800 | bennyhill = Instance.new("Sound",Torso)
| |
| 801 | bennyhill.SoundId = "rbxassetid://800064337" | |
| 802 | bennyhill.Volume = 8 | |
| 803 | bennyhill.Looped = true | |
| 804 | bennyhill:Play() | |
| 805 | coroutine.wrap(function() | |
| 806 | while dancing do | |
| 807 | ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(math.rad(20 + 5 * math.sin(sine/2)),math.rad(10 * math.sin(sine/4)),0),.25) | |
| 808 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.89 - .4 * -math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * -math.sin(sine/2)),0,math.rad(0)),.25) | |
| 809 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.89 - .4 * math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * math.sin(sine/2)),0,math.rad(0)),.25) | |
| 810 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, -.2 + .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * -math.sin(sine/2)), math.rad(0), math.rad(-8)), 0.25) | |
| 811 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0,-.2 - .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * math.sin(sine/2)), math.rad(0), math.rad(8)), 0.25) | |
| 812 | swait() | |
| 813 | end | |
| 814 | ws = 14 | |
| 815 | bennyhill:Remove() | |
| 816 | attacking = false | |
| 817 | end)() | |
| 818 | end | |
| 819 | end | |
| 820 | end) | |
| 821 | mouse.KeyDown:connect(function(Press) | |
| 822 | Press=Press:lower() | |
| 823 | if Press=='e' then | |
| 824 | if debounce then return end | |
| 825 | if equip then | |
| 826 | g1:Remove() | |
| 827 | light.Enabled = false | |
| 828 | pcall(function() | |
| 829 | temmy:Remove() | |
| 830 | end) | |
| 831 | for i,v in pairs(tommygun:GetDescendants()) do | |
| 832 | if v.Name == "temmy" then v:Remove() | |
| 833 | end | |
| 834 | end | |
| 835 | light.Enabled = false | |
| 836 | particlemiter1.Enabled = false | |
| 837 | hum.CameraOffset = Vector3.new(0,0,0) | |
| 838 | attacking = false | |
| 839 | equip = false | |
| 840 | shooting = false | |
| 841 | gunallowance = false | |
| 842 | ws = 18 | |
| 843 | else | |
| 844 | g1 = Instance.new("BodyGyro", Root)
| |
| 845 | g1.D = 175 | |
| 846 | g1.P = 20000 | |
| 847 | g1.MaxTorque = Vector3.new(0,9000,0) | |
| 848 | g1.CFrame = CFrame.new(Root.Position,mouse.Hit.p) | |
| 849 | attacking = true | |
| 850 | debounce = true | |
| 851 | equip = true | |
| 852 | coroutine.wrap(function() | |
| 853 | while equip do | |
| 854 | g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.1) | |
| 855 | ws = 10 | |
| 856 | swait() | |
| 857 | if Root.Velocity.y > 1 then | |
| 858 | position = "Jump3" | |
| 859 | elseif Root.Velocity.y < -1 then | |
| 860 | position = "Falling3" | |
| 861 | elseif Root.Velocity.Magnitude > 2 and running == false and attacking == true then | |
| 862 | position = "Walk3" | |
| 863 | elseif Root.Velocity.Magnitude < 2 and running == false and attacking == true then | |
| 864 | position = "Idle4" | |
| 865 | end | |
| 866 | end | |
| 867 | end)() | |
| 868 | coroutine.wrap(function() | |
| 869 | while equip do | |
| 870 | swait() | |
| 871 | settime = 0.05 | |
| 872 | sine = sine + change | |
| 873 | if position == "Jump3" and attacking and not running then | |
| 874 | change = .65 | |
| 875 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 876 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
| 877 | elseif position == "Falling3" and attacking and not running then | |
| 878 | change = .65 | |
| 879 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.4) | |
| 880 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.4) | |
| 881 | elseif position == "Walk3" and attacking == true and running == false then | |
| 882 | change = .65 | |
| 883 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.2) | |
| 884 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.1) | |
| 885 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.1) | |
| 886 | elseif position == "Idle4" and attacking == true and running == false then | |
| 887 | change = .65 | |
| 888 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)),.1) | |
| 889 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 890 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
| 891 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 892 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/25), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
| 893 | end | |
| 894 | end | |
| 895 | end)() | |
| 896 | SOUND(RightArm,133763874,6,false,2) | |
| 897 | for i = 1, 30 do | |
| 898 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.68,1.25) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(-12)),.25) | |
| 899 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1, 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25) | |
| 900 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0)), 0.25) | |
| 901 | swait() | |
| 902 | end | |
| 903 | gunallowance = true | |
| 904 | mouse.Button1Down:connect(function() | |
| 905 | if gunallowance then | |
| 906 | particlemiter1.Enabled = true | |
| 907 | temmy = Instance.new("Sound",tommygun)
| |
| 908 | temmy.SoundId = "rbxassetid://2553218868" | |
| 909 | temmy.Volume = 6 | |
| 910 | temmy.Name = "temmy" | |
| 911 | temmy.Looped = true | |
| 912 | temmy:Play() | |
| 913 | shooting = true | |
| 914 | end | |
| 915 | end) | |
| 916 | mouse.Button1Up:connect(function() | |
| 917 | if gunallowance then | |
| 918 | hum.CameraOffset = Vector3.new(0,0,0) | |
| 919 | light.Enabled = false | |
| 920 | particlemiter1.Enabled = false | |
| 921 | pcall(function() | |
| 922 | temmy:Remove() | |
| 923 | end) | |
| 924 | for i,v in pairs(tommygun:GetDescendants()) do | |
| 925 | if v.Name == "temmy" then v:Remove() | |
| 926 | end | |
| 927 | end | |
| 928 | shooting = false | |
| 929 | end | |
| 930 | end) | |
| 931 | coroutine.wrap(function() | |
| 932 | if firsttime2 then return end | |
| 933 | firsttime2 = true | |
| 934 | while true do | |
| 935 | swait(3) | |
| 936 | if shooting then | |
| 937 | if switch1 then | |
| 938 | switch1 = false | |
| 939 | switch2 = true | |
| 940 | light.Enabled = true | |
| 941 | elseif switch2 then | |
| 942 | switch1 = true | |
| 943 | switch2 = false | |
| 944 | light.Enabled = false | |
| 945 | end | |
| 946 | pcall(function() | |
| 947 | if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 948 | mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(3,7))
| |
| 949 | end | |
| 950 | end) | |
| 951 | end | |
| 952 | end | |
| 953 | end)() | |
| 954 | coroutine.wrap(function() | |
| 955 | if firsttime then return end | |
| 956 | firsttime = true | |
| 957 | while true do | |
| 958 | if shooting then | |
| 959 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1, 1.35, 0.4) * CFrame.Angles(math.rad(-90), math.rad(0 - 10 * math.sin(sine)), math.rad(0)), 0.25) | |
| 960 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1, 0.1 + .4 * math.sin(sine), 0.4) * CFrame.Angles(math.rad(-90), math.rad(-60), math.rad(0)), 0.25) | |
| 961 | pcall(function() | |
| 962 | if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 963 | mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(30)
| |
| 964 | end | |
| 965 | end) | |
| 966 | elseif not shooting then | |
| 967 | end | |
| 968 | swait() | |
| 969 | end | |
| 970 | end)() | |
| 971 | debounce = false | |
| 972 | end | |
| 973 | end | |
| 974 | end) | |
| 975 | ||
| 976 | mouse.KeyDown:connect(function(Press) | |
| 977 | Press=Press:lower() | |
| 978 | if Press=='z' then | |
| 979 | print("Music switched to 1")
| |
| 980 | id = 2199374985 | |
| 981 | doomtheme.SoundId = "rbxassetid://"..id | |
| 982 | doomtheme:Play() | |
| 983 | end | |
| 984 | end) | |
| 985 | ||
| 986 | mouse.KeyDown:connect(function(Press) | |
| 987 | Press=Press:lower() | |
| 988 | if Press=='v' then | |
| 989 | print("Music switched to 4")
| |
| 990 | id = 2111948183 | |
| 991 | doomtheme.SoundId = "rbxassetid://"..id | |
| 992 | doomtheme:Play() | |
| 993 | end | |
| 994 | end) | |
| 995 | ||
| 996 | mouse.KeyDown:connect(function(Press) | |
| 997 | Press=Press:lower() | |
| 998 | if Press=='x' then | |
| 999 | print("Music switched to 2")
| |
| 1000 | id = 318812395 | |
| 1001 | doomtheme.SoundId = "rbxassetid://"..id | |
| 1002 | doomtheme:Play() | |
| 1003 | end | |
| 1004 | end) | |
| 1005 | ||
| 1006 | mouse.KeyDown:connect(function(Press) | |
| 1007 | Press=Press:lower() | |
| 1008 | if Press=='c' then | |
| 1009 | print("Music switched to 3")
| |
| 1010 | id = 2508725733 | |
| 1011 | doomtheme.SoundId = "rbxassetid://"..id | |
| 1012 | doomtheme:Play() | |
| 1013 | end | |
| 1014 | end) | |
| 1015 | ||
| 1016 | mouse.KeyDown:connect(function(Press) | |
| 1017 | Press=Press:lower() | |
| 1018 | if Press=='b' then | |
| 1019 | print("Music switched to 5")
| |
| 1020 | - | id = 649148458 |
| 1020 | + | id = 185740716 |
| 1021 | doomtheme.SoundId = "rbxassetid://"..id | |
| 1022 | doomtheme:Play() | |
| 1023 | end | |
| 1024 | end) | |
| 1025 | ||
| 1026 | ||
| 1027 | checks1 = coroutine.wrap(function() -------Checks | |
| 1028 | while true do | |
| 1029 | if Root.Velocity.y > 1 then | |
| 1030 | position = "Jump" | |
| 1031 | elseif Root.Velocity.y < -1 then | |
| 1032 | position = "Falling" | |
| 1033 | elseif Root.Velocity.Magnitude < 2 then | |
| 1034 | position = "Idle" | |
| 1035 | elseif Root.Velocity.Magnitude < 20 then | |
| 1036 | position = "Walking" | |
| 1037 | elseif Root.Velocity.Magnitude > 20 then | |
| 1038 | position = "Running" | |
| 1039 | else | |
| 1040 | end | |
| 1041 | wait() | |
| 1042 | end | |
| 1043 | end) | |
| 1044 | checks1() | |
| 1045 | ||
| 1046 | function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 1047 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 1048 | end | |
| 1049 | ||
| 1050 | function ray2(StartPos, EndPos, Distance, Ignore) | |
| 1051 | local DIRECTION = CFrame.new(StartPos,EndPos).lookVector | |
| 1052 | return ray(StartPos, DIRECTION, Distance, Ignore) | |
| 1053 | end | |
| 1054 | ||
| 1055 | OrgnC0 = Neck.C0 | |
| 1056 | local movelimbs = coroutine.wrap(function() | |
| 1057 | while RunSrv.RenderStepped:wait() do | |
| 1058 | TrsoLV = Torso.CFrame.lookVector | |
| 1059 | Dist = nil | |
| 1060 | Diff = nil | |
| 1061 | if not MseGuide then | |
| 1062 | print("Failed to recognize")
| |
| 1063 | else | |
| 1064 | local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
| 1065 | Dist = (Head.CFrame.p-Point).magnitude | |
| 1066 | Diff = Head.CFrame.Y-Point.Y | |
| 1067 | local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true) | |
| 1068 | Dist2 = (LeftArm.CFrame.p-Point).magnitude | |
| 1069 | Diff2 = LeftArm.CFrame.Y-Point.Y | |
| 1070 | HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) | |
| 1071 | Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1) | |
| 1072 | end | |
| 1073 | end | |
| 1074 | end) | |
| 1075 | movelimbs() | |
| 1076 | immortal = {}
| |
| 1077 | for i,v in pairs(Character:GetDescendants()) do | |
| 1078 | if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
| |
| 1079 | if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then | |
| 1080 | v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 1081 | end | |
| 1082 | table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
| |
| 1083 | elseif v:IsA("JointInstance") then
| |
| 1084 | table.insert(immortal,{v,v.Parent,nil,nil,nil})
| |
| 1085 | end | |
| 1086 | end | |
| 1087 | for e = 1, #immortal do | |
| 1088 | if immortal[e] ~= nil then | |
| 1089 | local STUFF = immortal[e] | |
| 1090 | local PART = STUFF[1] | |
| 1091 | local PARENT = STUFF[2] | |
| 1092 | local MATERIAL = STUFF[3] | |
| 1093 | local COLOR = STUFF[4] | |
| 1094 | local TRANSPARENCY = STUFF[5] | |
| 1095 | if levitate then | |
| 1096 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
| 1097 | PART.Material = MATERIAL | |
| 1098 | PART.Color = COLOR | |
| 1099 | PART.Transparency = TRANSPARENCY | |
| 1100 | end | |
| 1101 | PART.AncestryChanged:connect(function() | |
| 1102 | PART.Parent = PARENT | |
| 1103 | end) | |
| 1104 | else | |
| 1105 | if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then | |
| 1106 | PART.Material = MATERIAL | |
| 1107 | PART.Color = COLOR | |
| 1108 | PART.Transparency = TRANSPARENCY | |
| 1109 | end | |
| 1110 | PART.AncestryChanged:connect(function() | |
| 1111 | PART.Parent = PARENT | |
| 1112 | end) | |
| 1113 | end | |
| 1114 | end | |
| 1115 | end | |
| 1116 | function immortality() | |
| 1117 | for e = 1, #immortal do | |
| 1118 | if immortal[e] ~= nil then | |
| 1119 | local STUFF = immortal[e] | |
| 1120 | local PART = STUFF[1] | |
| 1121 | local PARENT = STUFF[2] | |
| 1122 | local MATERIAL = STUFF[3] | |
| 1123 | local COLOR = STUFF[4] | |
| 1124 | local TRANSPARENCY = STUFF[5] | |
| 1125 | if PART.ClassName == "Part" and PART == Root then | |
| 1126 | PART.Material = MATERIAL | |
| 1127 | PART.Color = COLOR | |
| 1128 | PART.Transparency = TRANSPARENCY | |
| 1129 | end | |
| 1130 | if PART.Parent ~= PARENT then | |
| 1131 | hum:Remove() | |
| 1132 | PART.Parent = PARENT | |
| 1133 | hum = Instance.new("Humanoid",Character)
| |
| 1134 | hum.Name = "noneofurbusiness" | |
| 1135 | end | |
| 1136 | end | |
| 1137 | end | |
| 1138 | end | |
| 1139 | coroutine.wrap(function() | |
| 1140 | while true do | |
| 1141 | if hum.Health < .1 then | |
| 1142 | deadsound = Instance.new("Sound", Torso)
| |
| 1143 | deadsound.Volume = 6 | |
| 1144 | deadsound.SoundId = "rbxassetid://1411352723" | |
| 1145 | deadsound:Play() | |
| 1146 | immortality() | |
| 1147 | end | |
| 1148 | wait() | |
| 1149 | end | |
| 1150 | end)() | |
| 1151 | ||
| 1152 | local anims = coroutine.wrap(function() | |
| 1153 | while true do | |
| 1154 | settime = 0.05 | |
| 1155 | sine = sine + change | |
| 1156 | if position == "Jump" and attacking == false then | |
| 1157 | change = 1 | |
| 1158 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
| 1159 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 1160 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 1161 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
| 1162 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
| 1163 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.4) | |
| 1164 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 1165 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4) | |
| 1166 | elseif position == "Jump2" and attacking == false then | |
| 1167 | change = 1 | |
| 1168 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
| 1169 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
| 1170 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
| 1171 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
| 1172 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
| 1173 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
| 1174 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
| 1175 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
| 1176 | elseif position == "Falling" and attacking == false then | |
| 1177 | change = 1 | |
| 1178 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
| 1179 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 1180 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 1181 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4) | |
| 1182 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2) | |
| 1183 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(14), math.rad(-4), math.rad(0)), 0.2) | |
| 1184 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 1185 | elseif position == "Falling2" and attacking == false then | |
| 1186 | change = 1 | |
| 1187 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
| 1188 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
| 1189 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
| 1190 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
| 1191 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
| 1192 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
| 1193 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
| 1194 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
| 1195 | elseif position == "Walking" and attacking == false and running == false then | |
| 1196 | change = 1.2 | |
| 1197 | walking = true | |
| 1198 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
| 1199 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,1,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(10)), 0.1) | |
| 1200 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 1201 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 1202 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.35,.5*math.sin(sine/8)) * CFrame.Angles(math.rad(-35*math.sin(sine/8)),math.rad(0*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3) | |
| 1203 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0.05*math.sin(sine/4), 0) * CFrame.Angles(math.rad(-10), math.rad(5 * math.cos(sine/7)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.1) | |
| 1204 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/8)/2.8, 0.2 - math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) + -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(25 * math.cos(sine/8))), 0.3) | |
| 1205 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/8)/2.8, 0.2 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(10) - -math.sin(sine/8)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(25 * math.cos(sine/8))), 0.3) | |
| 1206 | elseif position == "Idle" and attacking == false and running == false then | |
| 1207 | change = .5 | |
| 1208 | tommygunweld.C0 = tommygunweld.C0:lerp(CFrame.new(0,-.80,1.25) * CFrame.Angles(math.rad(98),math.rad(0),0),.25) | |
| 1209 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),.1) | |
| 1210 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .1 * math.sin(sine/12),1 + .1 * math.sin(sine/12),0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(8 + 5 * math.sin(sine/12))), 0.1) | |
| 1211 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.59 - .05 * math.sin(sine/12), 0.1 -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(-2), math.rad(2), math.rad(8 - 6 * math.sin(sine/12))), .2) | |
| 1212 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 1213 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
| 1214 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1) | |
| 1215 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
| 1216 | elseif position == "Idle2" and attacking == false and running == false then | |
| 1217 | change = .75 | |
| 1218 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0 - 3 * math.sin(sine/9)),0,0),.1) | |
| 1219 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1) | |
| 1220 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(-.2,.2,0) * CFrame.Angles(0,0,0),.1) | |
| 1221 | LEFTARMLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0) | |
| 1222 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 + 3 * math.sin(sine/9)), math.rad(35 - 5 * math.sin(sine/9))), 0.4) | |
| 1223 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.6, 0.8 - .1 * math.sin(sine/9), 0) * CFrame.Angles(math.rad(0), math.rad(0 - 3 * math.sin(sine/9)), math.rad(-35 + 5 * math.sin(sine/9))), 0.4) | |
| 1224 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.4) | |
| 1225 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2.0,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10 + 2 * math.sin(sine/9))), 0.4) | |
| 1226 | elseif position == "Walking2" and attacking == false and running == false then | |
| 1227 | ws = 50 | |
| 1228 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20 - 1 * math.sin(sine/9)), math.rad(0 + 0 * math.cos(sine/8)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(10 * math.cos(sine/10))), 0.3) | |
| 1229 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.3) | |
| 1230 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.3) | |
| 1231 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.6,-.5) * CFrame.Angles(math.rad(32),math.rad(5 - .1 * math.sin(sine/12)),math.rad(40 - .5 * math.sin(sine/12))), 0.3) | |
| 1232 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.6,-.5) * CFrame.Angles(math.rad(30),math.rad(-5 + .1 * math.sin(sine/12)),math.rad(-40 + .5 * math.sin(sine/12))), 0.3) | |
| 1233 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(.2,1.2,-.3),.3) | |
| 1234 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.54, 1.4 + .1 * math.sin(sine/9), .4) * CFrame.Angles(math.rad(9 + 2 * math.cos(sine/9)), math.rad(0), math.rad(0)), 0.3) | |
| 1235 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.54, 2.0 + .02 * math.sin(sine/9), 0.2 + .1 * math.sin(sine/9)) * CFrame.Angles(math.rad(25 + 5 * math.sin(sine/9)), math.rad(20), math.rad(0)), 0.3) | |
| 1236 | elseif position == "Running" and attacking == false then | |
| 1237 | change = 1 | |
| 1238 | RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3) | |
| 1239 | LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3) | |
| 1240 | LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 1241 | ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3) | |
| 1242 | RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3) | |
| 1243 | RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3) | |
| 1244 | LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3) | |
| 1245 | LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3) | |
| 1246 | end | |
| 1247 | swait() | |
| 1248 | end | |
| 1249 | end) | |
| 1250 | anims() | |
| 1251 | warn("Risen from Russia, ready to prove his memeous. Made by Supr14 and edited by Reset5017577") |