SHARE
TWEET

Squatting simulator yes cooldown

Kermiter Jul 22nd, 2019 (edited) 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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 = {}
  2. do
  3.     script.Parent = owner.Character
  4.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5.     local function NewFakeEvent()
  6.         local Bind = Instance.new("BindableEvent")
  7.         local Fake;Fake = {Connections = {},
  8.         fakeEvent=true;
  9.         Connect=function(self,Func)
  10.             Bind.Event:connect(Func)
  11.             self.Connections[Bind] = true
  12.             return setmetatable({Connected = true},{
  13.             __index = function (self,Index)
  14.                 if Index:lower() == "disconnect" then
  15.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  16.                 end
  17.                 return Fake[Index]
  18.             end;
  19.             __tostring = function() return "Connection" end;
  20.         })
  21.         end}
  22.         Fake.connect = Fake.Connect;return Fake;
  23.     end
  24.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29.     local function TriggerEvent(self,Event,...)
  30.         local Trigger = Mouse[Event]
  31.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33.         end
  34.     end
  35.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  37.         if FiredBy.Name ~= owner.Name then return end
  38.         if Input.MouseEvent then
  39.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40.         else
  41.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43.             for _,Action in pairs(ContextActionService.Actions) do
  44.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45.             end
  46.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48.         end
  49.     end)
  50.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51.     Event.Parent = NLS([[
  52.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53.         local Input = function(Input,gameProcessedEvent)
  54.             if gameProcessedEvent then return end
  55.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56.         end
  57.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58.         local Hit,Target
  59.         while wait(1/30) do
  60.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62.             end
  63.         end
  64.     ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67.     __index = function (self,Index)
  68.         local Sandbox = function (Thing)
  69.             if Thing:IsA("Player") then
  70.                 local RealPlayer = Thing
  71.                 return setmetatable({},{
  72.                     __index = function (self,Index)
  73.                         local Type = type(RealPlayer[Index])
  74.                         if Type == "function" then
  75.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76.                                 return function (self)return InternalData["Mouse"] end
  77.                             end
  78.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79.                         end
  80.                         return RealPlayer[Index]
  81.                     end;
  82.                     __tostring = function(self) return RealPlayer.Name end
  83.                 })
  84.             end
  85.         end
  86.         if RealGame[Index] then
  87.             local Type = type(RealGame[Index])
  88.             if Type == "function" then
  89.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  90.                     return function (self,Service)
  91.                         local FakeServices = {
  92.                             ["players"] = function()
  93.                                 return setmetatable({},{
  94.                                     __index = function (self2,Index2)
  95.                                         local RealService = RealGame:GetService(Service)
  96.                                         local Type2 = type(Index2)
  97.                                         if Type2 == "function" then
  98.                                             return function (self,...) return RealService[Index2](RealService,...)end
  99.                                         else
  100.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101.                                             return RealService[Index2]
  102.                                         end
  103.                                     end;
  104.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  105.                                 })
  106.                             end;
  107.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109.                             ["runservice"] = function()
  110.                                 return setmetatable({},{
  111.                                     __index = function(self2,Index2)
  112.                                         local RealService = RealGame:GetService(Service)
  113.                                         local Type2 = type(Index2)
  114.                                         if Type2 == "function" then
  115.                                             return function (self,...) return RealService[Index2](RealService,...) end
  116.                                         else
  117.                                             local RunServices = {
  118.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  120.                                             }
  121.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122.                                             return RealService[Index2]
  123.                                         end
  124.                                     end
  125.                                 })
  126.                             end
  127.                         }
  128.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129.                         return RealGame:GetService(Service)
  130.                     end
  131.                 end
  132.                 return function (self,...) return RealGame[Index](RealGame,...) end
  133.             else
  134.                 if game:GetService(Index) then return game:GetService(Index) end
  135.                 return RealGame[Index]
  136.             end
  137.         end
  138.         return nil
  139.     end
  140.         });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142. print("script by youngmacka123")
  143. plr = owner
  144. mouse = plr:GetMouse()
  145. char = plr.Character
  146. hum = char.HumanoidRootPart
  147. root = char.Torso
  148. left = char["Left Arm"]
  149. right = char["Right Arm"]
  150. rightl = char["Right Leg"]
  151. leftl = char["Left Leg"]
  152. squat = false
  153.  
  154. local Music = Instance.new("Sound")
  155.  
  156. Music.Name = "Sound"
  157. Music.SoundId = "http://roblox.com/asset/?id=195689102"
  158. Music.Volume = 4
  159. Music.Looped = true
  160. Music.Pitch = 1
  161. Music.Parent = root
  162. Music:play()
  163.  
  164. local torso
  165. local arm1
  166. local arm2
  167. local leg1
  168. local leg2
  169.  
  170. local sur = Instance.new("BillboardGui", char.Head)
  171. sur.Name = "Billboard"
  172. sur.Adornee = char.Head
  173. sur.Size = UDim2.new(10, 0, 5, 0)
  174. sur.StudsOffset = Vector3.new(0, 5, 0)
  175. local text = Instance.new("TextLabel", sur)
  176. text.Text = "Squatting simulator remastered"
  177. text.Size = UDim2.new(1, 0, 1, 0)
  178. text.TextScaled = true
  179. text.BackgroundTransparency = 1
  180. text.Font = Enum.Font.Cartoon
  181. text.TextColor3 = Color3.new(0, 255, 0)
  182. text.TextStrokeTransparency = 0
  183.  
  184. level = Instance.new("NumberValue",char)
  185. level.Name = "SquattingLevel"
  186. level.Value = 0
  187.  
  188. stat = level.Value
  189.  
  190. function SQUAT()
  191. squat = true
  192. stat = stat + 1
  193.  
  194. torso = Instance.new("Weld")
  195. torso.Parent = root
  196. torso.Part0 = root
  197. torso.Part1 = hum
  198.    
  199. arm1 = Instance.new("Weld")
  200. arm1.Parent = left
  201. arm1.Part0 = left
  202. arm1.Part1 = root
  203. arm1.C0 = CFrame.new(-1.5, 1, 0.6)
  204.    
  205. arm2 = Instance.new("Weld")
  206. arm2.Parent = right
  207. arm2.Part0 = right
  208. arm2.Part1 = root
  209. arm2.C0 = CFrame.new(1.5, 1, 0.6)
  210.    
  211. leg1 = Instance.new("Weld")
  212. leg1.Parent = leftl
  213. leg1.Part0 = leftl
  214. leg1.Part1 = hum
  215. leg1.C0 = CFrame.new(-0.5, 2, 0)
  216.    
  217. leg2 = Instance.new("Weld")
  218. leg2.Parent = rightl
  219. leg2.Part0 = rightl
  220. leg2.Part1 = hum
  221. leg2.C0 = CFrame.new(0.5, 2, 0)
  222.  
  223. torso.C0 = CFrame.new(0, 0.5, 0)
  224. arm1.C1 = CFrame.Angles(-80, 0, 0)
  225. arm2.C1 = CFrame.Angles(-80, 0, 0)
  226. leg1.C0 = CFrame.new(-1.5, 2, 0)
  227. leg2.C0 = CFrame.new(1.5, 2, 0)
  228. wait(0.3)
  229. squat = false
  230. torso:Destroy()
  231. arm1:Destroy()
  232. arm2:Destroy()
  233. leg1:Destroy()
  234. leg2:Destroy()
  235. end
  236.  
  237. mouse.Button1Down:Connect(function()
  238.     if squat == false then
  239.         SQUAT()
  240.     end
  241. end)
  242.  
  243. --WRAPPING UP--
  244.  
  245. while true do
  246. wait(0.000000000001)
  247. if stat == 10 then
  248. Music.Pitch = 1.2
  249.     text.Text = "rookie"
  250. end
  251.  
  252. if stat == 20 then
  253. Music.Pitch = 1.3
  254.     text.Text = "noice"
  255. end
  256.  
  257. if stat == 30 then
  258. Music.Pitch = 1.4
  259.     text.Text = "chill"
  260. end
  261.  
  262. if stat == 40 then
  263. Music.Pitch = 1.5
  264.     text.Text = "sweet"
  265. end
  266.  
  267. if stat == 50 then
  268. Music.Pitch = 1.6
  269.     text.Text = "smug"
  270. end
  271.  
  272. if stat == 100 then
  273. Music.Pitch = 1.7
  274.     text.Text = "mlg"
  275. end
  276.  
  277. if stat == 150 then
  278. Music.Pitch = 1.8
  279.     text.Text = "sick"
  280. end
  281.  
  282. if stat == 200 then
  283. Music.Pitch = 1.9
  284.     text.Text = "master"
  285. end
  286.  
  287. if stat == 250 then
  288. Music.Pitch = 2
  289.     text.Text = "the king"
  290. end
  291.  
  292. if stat == 520 then
  293.     text.Text = "chill lord"
  294. end
  295.  
  296. if stat == 580 then
  297.     text.Text = "smug god"
  298. end
  299.  
  300. if stat == 620 then
  301.     text.Text = "rock hard slav"
  302. end
  303.  
  304. if stat == 700 then
  305.     text.Text = "mafia boss"
  306. end
  307.  
  308. if stat == 750 then
  309.     text.Text = "godfather"
  310. end
  311.  
  312. if stat == 800 then
  313.     text.Text = "king Dededelet this"
  314. end
  315.  
  316. if stat == 900 then
  317.     text.Text = "minecraft steve"
  318. end
  319.  
  320. if stat == 950 then
  321.     text.Text = "naruto"
  322. end
  323.  
  324. if stat == 1000 then
  325.     text.Text = "sanic hedge"
  326. end
  327.  
  328. if stat == 1200 then
  329.     text.Text = ":thonk:"
  330. end
  331.  
  332. if stat == 1500 then
  333.     text.Text = "ok"
  334. end
  335.  
  336. if stat == 1700 then
  337.     text.Text = "noti's son"
  338. end
  339.  
  340. if stat == 2000 then
  341.     text.Text = "toast"
  342. end
  343.  
  344. if stat == 2500 then
  345.     text.Text = "dio"
  346. end
  347. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top