Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
- local function NewFakeEvent()
- local Bind = Instance.new("BindableEvent")
- local Fake;Fake = {Connections = {},
- fakeEvent=true;
- Connect=function(self,Func)
- Bind.Event:connect(Func)
- self.Connections[Bind] = true
- return setmetatable({Connected = true},{
- __index = function (self,Index)
- if Index:lower() == "disconnect" then
- return function() Fake.Connections[Bind] = false;self.Connected = false end
- end
- return Fake[Index]
- end;
- __tostring = function() return "Connection" end;
- })
- end}
- Fake.connect = Fake.Connect;return Fake;
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Connections then
- for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
- end
- end
- Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return RealPlayer[Index](RealPlayer,...) end
- end
- return RealPlayer[Index]
- end;
- __tostring = function(self) return RealPlayer.Name end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return Sandbox(owner) end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return RealGame:GetService(Service).Name end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return RealGame:GetService(Service)
- end
- end
- return function (self,...) return RealGame[Index](RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return RealGame[Index]
- end
- end
- return nil
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
- print("script by youngmacka123")
- plr = owner
- mouse = plr:GetMouse()
- char = plr.Character
- hum = char.HumanoidRootPart
- root = char.Torso
- left = char["Left Arm"]
- right = char["Right Arm"]
- rightl = char["Right Leg"]
- leftl = char["Left Leg"]
- squat = false
- local torso
- local arm1
- local arm2
- local leg1
- local leg2
- local sur = Instance.new("BillboardGui", char.Head)
- sur.Name = "Billboard"
- sur.Adornee = char.Head
- sur.Size = UDim2.new(10, 0, 5, 0)
- sur.StudsOffset = Vector3.new(0, 5, 0)
- local text = Instance.new("TextLabel", sur)
- text.Text = "squatting dude"
- text.Size = UDim2.new(1, 0, 1, 0)
- text.TextScaled = true
- text.BackgroundTransparency = 1
- text.Font = Enum.Font.Cartoon
- text.TextColor3 = Color3.new(0, 255, 0)
- text.TextStrokeTransparency = 0
- txt = text.Text
- level = Instance.new("NumberValue",char)
- level.Name = "SquattingLevel"
- level.Value = 0
- stat = level.Value
- function SQUAT()
- squat = true
- stat = stat + 1
- torso = Instance.new("Weld")
- torso.Parent = root
- torso.Part0 = root
- torso.Part1 = hum
- arm1 = Instance.new("Weld")
- arm1.Parent = left
- arm1.Part0 = left
- arm1.Part1 = root
- arm1.C0 = CFrame.new(-1.5, 0, 0)
- arm2 = Instance.new("Weld")
- arm2.Parent = right
- arm2.Part0 = right
- arm2.Part1 = root
- arm2.C0 = CFrame.new(1.5, 0, 0)
- leg1 = Instance.new("Weld")
- leg1.Parent = leftl
- leg1.Part0 = leftl
- leg1.Part1 = hum
- leg1.C0 = CFrame.new(-0.5, 2, 0)
- leg2 = Instance.new("Weld")
- leg2.Parent = rightl
- leg2.Part0 = rightl
- leg2.Part1 = hum
- leg2.C0 = CFrame.new(0.5, 2, 0)
- torso.C0 = CFrame.new(0, 0.5, 0)
- arm1.C1 = CFrame.Angles(-80, 0, 0)
- arm2.C1 = CFrame.Angles(-80, 0, 0)
- leg1.C0 = CFrame.new(-1.5, 2, 0)
- leg2.C0 = CFrame.new(1.5, 2, 0)
- wait(0.3)
- squat = false
- torso:Destroy()
- arm1:Destroy()
- arm2:Destroy()
- leg1:Destroy()
- leg2:Destroy()
- end
- mouse.Button1Down:Connect(function()
- if squat == false then
- SQUAT()
- end
- end)
- --WRAPPING UP--
- while true do
- wait(0.000000000001)
- if stat == 35 then
- txt = "rookie"
- end
- if stat == 70 then
- txt = "noice"
- end
- if stat == 120 then
- txt = "chill"
- end
- if stat == 175 then
- txt = "sweet"
- end
- if stat == 250 then
- txt = "smug"
- end
- if stat == 320 then
- txt = "mlg"
- end
- if stat == 353 then
- txt = "sick"
- end
- if stat == 400 then
- txt = "master"
- end
- if stat == 470 then
- txt = "the king"
- end
- if stat == 520 then
- txt = "chill lord"
- end
- if stat == 580 then
- txt = "smug god"
- end
- if stat == 620 then
- txt = "thanos"
- end
- if stat == 700 then
- txt = "thanos truck"
- end
- if stat == 750 then
- txt = "godfather"
- end
- if stat == 800 then
- txt = "seahorse"
- end
- if stat == 900 then
- txt = "minecraft steve"
- end
- if stat == 950 then
- txt = "naruto"
- end
- if stat == 1000 then
- txt = "sanic hedge"
- end
- if stat == 1200 then
- txt = ":thonk:"
- end
- if stat == 1500 then
- txt = ":ok:"
- end
- if stat == 1700 then
- txt = "not-ve"
- end
- if stat == 2000 then
- txt = "toast"
- end
- if stat == 2500 then
- txt = "dio"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement