Advertisement
Justmyusername

mr russian krabs

May 10th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.73 KB | None | 0 0
  1. --By Rufus14 (im not Russian)
  2. wubwub = Instance.new("Sound", game.Players.LocalPlayer.Character)
  3. wubwub.Volume = 1000
  4. mouse = game.Players.LocalPlayer:GetMouse()
  5. squating = false
  6. function squat(key)
  7.     if key == "q" then
  8.         if not squating then
  9.             squating = true
  10.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
  11.             game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
  12.             local rus = math.random(1,2)
  13.             if rus == 1 then
  14.             wubwub.SoundId = "rbxassetid://427265119"
  15.             wubwub.Looped = true
  16.             end
  17.             if rus == 2 then
  18.             wubwub.SoundId = "rbxassetid://464157070"
  19.             wubwub.Looped = true
  20.             end
  21.             for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  22.                 if v.ClassName == "Pants" then
  23.                     v.PantsTemplate = "http://www.roblox.com/asset/?id=696645555"
  24.                 end
  25.                 if v.ClassName == "Shirt" then
  26.                     v.ShirtTemplate = "rbxassetid://555435623"
  27.                 end
  28.             end
  29.             pants = Instance.new("Pants", game.Players.LocalPlayer.Character)
  30.             pants.PantsTemplate = "rbxassetid://174588722"
  31.             shirt = Instance.new("Shirt", game.Players.LocalPlayer.Character)
  32.             shirt.ShirtTemplate = "rbxassetid://555435623"
  33.             sky = Instance.new("Sky", game.Lighting)
  34.             sky.SkyboxBk = "http://www.roblox.com/asset/?id=99633013"
  35.             sky.SkyboxFt = "http://www.roblox.com/asset/?id=99633013"
  36.             sky.SkyboxDn = "http://www.roblox.com/asset/?id=99633013"
  37.             sky.SkyboxUp = "http://www.roblox.com/asset/?id=99633013"
  38.             sky.SkyboxRt = "http://www.roblox.com/asset/?id=99633013"
  39.             sky.SkyboxLf = "http://www.roblox.com/asset/?id=99633013"
  40.             wubwub:Play()
  41.             for i = 0,1 , 0.1 do
  42.                 wait()
  43.                 game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(-0.01,0,0)
  44.                 game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0.05,0.1) * CFrame.new(0,-0.03,0)
  45.                 game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,-0.05,-0.1) * CFrame.new(0,-0.03,0)
  46.                 game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.new(0.07,0.1,0) * CFrame.Angles(0,0,-0.03)
  47.                 game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.new(-0.07,0.1,0) * CFrame.Angles(0,0,0.03)
  48.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new(0,0,-0.1)
  49.             end
  50.         end
  51.     end
  52. end
  53. function notsquat(key)
  54.     if key == "e" then
  55.         if squating then
  56.             wubwub:Stop()
  57.             sky:destroy()
  58.             shirt:destroy()
  59.             pants:destroy()
  60.             game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  61.             game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  62.             for i = 0,1 , 0.1 do
  63.                 wait()
  64.                 game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0 * CFrame.Angles(0.01,0,0)
  65.                 game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,-0.05,-0.1) * CFrame.new(0,0.03,0)
  66.                 game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 * CFrame.Angles(0,0.05,0.1) * CFrame.new(0,0.03,0)
  67.                 game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.new(-0.07,-0.1,0) * CFrame.Angles(0,0,0.03)
  68.                 game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.new(0.07,-0.1,0) * CFrame.Angles(0,0,-0.03)
  69.                 game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.new(0,0,0.1)
  70.             end
  71.             game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  72.             game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  73.             game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  74.             game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  75.             game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  76.             game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  77.             game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
  78.             squating = false
  79.         end
  80.     end
  81. end
  82. mouse.KeyDown:connect(squat)
  83. mouse.KeyDown:connect(notsquat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement