Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return m:TrigEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return rawget(self,s) or _rg:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- FakeService(g,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- --LUDWIG VON BALLENCRUSHER TELLS YOU TO GET OFF YOUR DESK, AND BEGIN SQUAT!!!--
- --MAKE YOUR HOME COUNTRY PROUD!!!--
- --ROOOOOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHHHH!!!!!!!!!!!!!!!!!!!!!!!!--
- Player = game.Players.LocalPlayer
- local mouse = Player:GetMouse()
- Character=Player.Character
- Character.Humanoid.Name = "noneofurbusiness"
- hum = Character.noneofurbusiness
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- Root=Character["HumanoidRootPart"]
- Head=Character["Head"]
- Torso=Character["Torso"]
- Neck=Torso["Neck"]
- walking = false
- attacking = false
- running = false
- up = true
- down = false
- position = nil
- MseGuide = true
- squadid = 1947759284
- settime = 0.05
- sine = 0
- n = 0
- change = 1
- t = 0
- dgs = 75
- RunSrv = game:GetService("RunService")
- RenderStepped = game:GetService("RunService").Heartbeat
- jurgenhurs = Instance.new("Sound",Torso)
- jurgenhurs.Volume = 4
- jurgenhurs.SoundId = "rbxassetid://1956230717"
- mouse.KeyDown:Connect(function(Press)
- Press=Press:lower()
- if Press=='t' then
- jurgenhurs:Play()
- end
- end)
- godmode = coroutine.wrap(function()
- while true do
- hum.MaxHealth = math.huge
- wait(0.0000001)
- hum.Health = math.huge
- wait()
- end
- end)
- godmode()
- ff = Instance.new("ForceField", Character)
- ff.Visible = false
- squats = Instance.new("NumberValue")
- squats.Value = 0
- squatmusic = Instance.new("Sound",Torso)
- squatmusic.Volume = 5
- squatmusic.SoundId = "rbxassetid://"..squadid
- squatmusic.Looped = true
- squatmusic:Play()
- upp = Instance.new("Sound",Torso)
- upp.Volume = 5
- upp.Pitch = 1.1
- upp.SoundId = "rbxassetid://1948055056"
- downn = Instance.new("Sound",Torso)
- downn.Volume = 5
- downn.Pitch = 1.1
- downn.SoundId = "rbxassetid://1948024901"
- local function weldBetween(a, b)
- local weld = Instance.new("ManualWeld", a)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- return weld
- end
- coroutine.wrap(function()
- while wait() do
- squatmusic.SoundId = "rbxassetid://"..squadid
- squatmusic.Looped = true
- squatmusic.Pitch = 1
- squatmusic.Volume = 5
- squatmusic.Parent = Torso
- squatmusic:Resume()
- upp.Volume = 5
- upp.Pitch = 1.1
- upp.SoundId = "rbxassetid://1948055056"
- downn.Volume = 5
- downn.Pitch = 1.1
- downn.SoundId = "rbxassetid://1948024901"
- if squats.Value < 10 then
- squadid = 1947759284
- squatmusic.SoundId = "rbxassetid://1947759284"
- elseif squats.Value < 25 then
- squadid = 1947760455
- squatmusic.SoundId = "rbxassetid://1947760455"
- elseif squats.Value < 50 then
- squadid = 1947762276
- squatmusic.SoundId = "rbxassetid://1947762276"
- elseif squats.Value < 100 then
- squadid = 1947763068
- squatmusic.SoundId = "rbxassetid://1947763068"
- elseif squats.Value < 150 then
- squadid = 1947763686
- squatmusic.SoundId = "rbxassetid://1947763686"
- elseif squats.Value < 199 then
- squadid = 1956489244
- squatmusic.SoundId = "rbxassetid://1956489244"
- elseif squats.Value > 199 then
- squadid = 1947764477
- squatmusic.Volume = 10
- squatmusic.SoundId = "rbxassetid://1947764477"
- end
- end
- end)()
- coroutine.wrap(function()
- while true do
- if squats.Value > 199 then
- for i = 1, 20 do
- game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView - 2
- wait()
- end
- for i = 1, 20 do
- game.Workspace.CurrentCamera.FieldOfView = game.Workspace.CurrentCamera.FieldOfView + 2
- wait()
- end
- end
- wait()
- end
- end)()
- DOYOUEVENLIFT = Instance.new("Part",Character)
- DOYOUEVENLIFT.Size = Vector3.new(1.01,1.01,1.01)
- DOYOUEVENLIFT.CanCollide = false
- DOYOUEVENLIFT.Transparency = 0
- DOYOUEVENLIFT.BrickColor = BrickColor.new("White")
- DOYOUEVENLIFT.Material = "Neon"
- DOYOUEVENLIFT.CFrame = Torso.CFrame
- DOYOUEVENLIFTmesh = Instance.new("SpecialMesh",DOYOUEVENLIFT)
- DOYOUEVENLIFTmesh.MeshId = "rbxassetid://122333663"
- DOYOUEVENLIFTmesh.TextureId = "rbxassetid://122333759"
- DOYOUEVENLIFTmesh.Scale = Vector3.new(1.9,2,2)
- DOYOUEVENLIFTweld = weldBetween(DOYOUEVENLIFT,Torso)
- DOYOUEVENLIFTweld.C0 = CFrame.new(0,-2.55,0)
- local HEADLERP = Instance.new("ManualWeld")
- HEADLERP.Parent = Head
- HEADLERP.Part0 = Head
- HEADLERP.Part1 = Head
- HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local TORSOLERP = Instance.new("ManualWeld")
- TORSOLERP.Parent = Root
- TORSOLERP.Part0 = Torso
- TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local ROOTLERP = Instance.new("ManualWeld")
- ROOTLERP.Parent = Root
- ROOTLERP.Part0 = Root
- ROOTLERP.Part1 = Torso
- ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local RIGHTARMLERP = Instance.new("ManualWeld")
- RIGHTARMLERP.Parent = RightArm
- RIGHTARMLERP.Part0 = RightArm
- RIGHTARMLERP.Part1 = Torso
- RIGHTARMLERP.C0 = CFrame.new(-1.3,1.7,0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(10))
- local LEFTARMLERP = Instance.new("ManualWeld")
- LEFTARMLERP.Parent = LeftArm
- LEFTARMLERP.Part0 = LeftArm
- LEFTARMLERP.Part1 = Torso
- LEFTARMLERP.C0 = CFrame.new(1.3,1.7,0) * CFrame.Angles(math.rad(180),math.rad(0),math.rad(-10))
- local RIGHTLEGLERP = Instance.new("ManualWeld")
- RIGHTLEGLERP.Parent = RightLeg
- RIGHTLEGLERP.Part0 = RightLeg
- RIGHTLEGLERP.Part1 = Torso
- RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local LEFTLEGLERP = Instance.new("ManualWeld")
- LEFTLEGLERP.Parent = LeftLeg
- LEFTLEGLERP.Part0 = LeftLeg
- LEFTLEGLERP.Part1 = Torso
- LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- thetext = "Noob"
- coroutine.wrap(function()
- while wait() do
- if squats.Value < 10 then
- thetext = "Noob"
- elseif squats.Value < 25 then
- thetext = "Rookie"
- elseif squats.Value < 50 then
- thetext = "Amateur"
- elseif squats.Value < 100 then
- thetext = "Pro"
- elseif squats.Value < 150 then
- thetext = "Master"
- elseif squats.Value < 199 then
- thetext = "Legendary"
- elseif squats.Value > 199 then
- thetext = "OUT OF THIS WORLD!"
- end
- end
- end)()
- b1 = Instance.new("BillboardGui",Head)
- b1.Size = UDim2.new(0,100,0,40)
- b1.StudsOffset = Vector3.new(0,3,0)
- b1.Adornee = Head
- b2 = Instance.new("TextLabel",b1)
- b2.BackgroundTransparency = 1
- coroutine.wrap(function()
- while wait() do
- b2.Text = "Squatting level: "..thetext
- end
- end)()
- b2.Font = "Arcade"
- b2.TextSize = 30
- b2.TextStrokeTransparency = 0
- b2.TextColor3 = BrickColor.new("Lime green").Color
- b2.TextStrokeColor3 = Color3.new(0,0,0)
- b2.Size = UDim2.new(1,0,0.5,0)
- screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- fastmodee = Instance.new("TextButton")
- fastmodee.Parent = screenGui
- fastmodee.TextScaled = true
- fastmodee.Font = "Arcade"
- fastmodee.BackgroundTransparency = 1
- fastmodee.Position = UDim2.new(0, 1200, 0, 530)
- fastmodee.Size = UDim2.new(0, 150, 0, 50)
- fastmodee.BackgroundColor3 = BrickColor.White().Color
- fastmodee.Text = "Fast mode"
- fastmodee.TextColor = BrickColor.new("Really red")
- fastmode = false
- fastmodee.MouseButton1Down:connect(function()
- if not fastmode then
- fastmode = true
- fastmodee.TextColor = BrickColor.new("Lime green")
- elseif fastmode then
- fastmodee.TextColor = BrickColor.new("Really red")
- fastmode = false
- end
- end)
- squatw = Instance.new("TextLabel")
- squatw.Parent = screenGui
- squatw.TextScaled = true
- squatw.Font = "Arcade"
- squatw.BackgroundTransparency = 1
- squatw.Position = UDim2.new(0, 620, 0, 530)
- squatw.Size = UDim2.new(0, 150, 0, 50)
- squatw.BackgroundColor3 = BrickColor.White().Color
- squatw.Text = "Squats"
- squatcounter = Instance.new("TextLabel")
- squatcounter.Parent = screenGui
- squatcounter.TextScaled = true
- squatcounter.Font = "Arcade"
- squatcounter.BackgroundTransparency = 1
- squatcounter.Position = UDim2.new(0, 544, 0, 555)
- squatcounter.Size = UDim2.new(0, 300, 0, 100)
- squatcounter.BackgroundColor3 = BrickColor.White().Color
- squatcounter.Text = "0"
- light = Instance.new("PointLight", Torso)
- light.Color = Color3.new(0,0,0)
- light.Range = 0
- light.Brightness = 0
- coroutine.wrap(function()
- c = 0
- while wait(.15) do
- c = c + 5
- squatcounter.Text = squats.Value
- if squats.Value > 199 then
- light.Range = 40
- light.Brightness = 40
- light.Color = BrickColor.Random().Color
- b2.TextColor3 = BrickColor.Random().Color
- squatcounter.TextColor3 = b2.TextColor3
- squatw.TextColor3 = b2.TextColor3
- end
- end
- end)()
- coroutine.wrap(function()
- while wait() do
- if squats.Value > 199 then break end
- end
- sound = Instance.new("Sound",Torso)
- sound.Volume = 1
- sound.SoundId = "rbxassetid://157709133"
- sound:Play()
- particlemiter1 = Instance.new("ParticleEmitter", Torso)
- particlemiter1.Enabled = true
- particlemiter1.Texture = "rbxassetid://1955503112"
- particlemiter1.Lifetime = NumberRange.new(2.5)
- particlemiter1.Size = NumberSequence.new(1,0)
- particlemiter1.Rate = 50
- particlemiter1.VelocitySpread = 2000
- particlemiter1.RotSpeed = NumberRange.new(70)
- particlemiter1.Speed = NumberRange.new(50)
- particlemiter2 = Instance.new("ParticleEmitter", Torso)
- particlemiter2.Enabled = true
- particlemiter2.Texture = "rbxassetid://1956041489"
- particlemiter2.Lifetime = NumberRange.new(2.5)
- particlemiter2.Size = NumberSequence.new(1,0)
- particlemiter2.Rate = 50
- particlemiter2.VelocitySpread = 2000
- particlemiter2.RotSpeed = NumberRange.new(150)
- particlemiter2.Speed = NumberRange.new(50)
- particlemiter3 = Instance.new("ParticleEmitter", Torso)
- particlemiter3.Enabled = true
- particlemiter3.Texture = "rbxassetid://1956041141"
- particlemiter3.Lifetime = NumberRange.new(2.5)
- particlemiter3.Size = NumberSequence.new(1,0)
- particlemiter3.Rate = 50
- particlemiter3.VelocitySpread = 2000
- particlemiter3.RotSpeed = NumberRange.new(150)
- particlemiter3.Speed = NumberRange.new(50)
- coroutine.wrap(function()
- wait(1)
- bb1 = Instance.new("BillboardGui",Head)
- bb1.Size = UDim2.new(2.4,0,.9,0)
- bb1.StudsOffset = Vector3.new(0,6,0)
- bb1.AlwaysOnTop = true
- bb1.Adornee = Head
- smokeweed = Instance.new("ImageLabel",bb1)
- smokeweed.BackgroundTransparency = 1
- smokeweed.Image = "rbxassetid://293105733"
- smokeweed.Size = UDim2.new(1,0,1.5,0)
- for i = 1, 20 do
- bb1.StudsOffset = bb1.StudsOffset - Vector3.new(0,.28,0)
- wait()
- end
- end)()
- frame = Instance.new("Frame")
- frame.Parent = screenGui
- frame.Position = UDim2.new(0, 8, 0, -500)
- frame.Size = UDim2.new(100000000,10000000,10000000,10000000)
- frame.BackgroundColor3 = BrickColor.new("White").Color
- frame.BackgroundTransparency = 0
- ball = Instance.new("Part",Torso)
- ball.Shape = "Ball"
- ball.Size = Vector3.new(0,0,0)
- ball.BrickColor = BrickColor.new("White")
- ball.Anchored = true
- ball.CanCollide = false
- ball.Material = "Neon"
- ball.CFrame = Torso.CFrame
- coroutine.wrap(function()
- for i = 1, 20 do
- ball.Transparency = ball.Transparency + 0.05
- ball.Size = ball.Size + Vector3.new(2,2,2)
- wait()
- end
- end)()
- wait(.5)
- for i = 1, 20 do
- frame.BackgroundTransparency = frame.BackgroundTransparency + 0.05
- wait()
- end
- end)()
- coroutine.wrap(function()
- settime = 0.05
- while wait() do
- if squats.Value > 199 then
- hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-0,0))
- squatw.Rotation = squatw.Rotation + 10
- squatcounter.Position = UDim2.new(0, math.random(530,550), 0, math.random(550,570))
- sine = sine + change
- ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.Angles(math.rad(0), math.rad(0), math.rad(0 + 15 * math.sin(sine/12))),.3)
- end
- end
- end)()
- mouse.Button1Down:Connect(function()
- if up then
- up = false
- down = true
- downn:Play()
- ROOTLERP.C0 = CFrame.new(0, -.8, 0)
- RIGHTLEGLERP.C0 = CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0))
- LEFTLEGLERP.C0 = CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0))
- elseif down then
- down = false
- up = true
- upp:Play()
- if fastmode then
- squats.Value = squats.Value + 5
- elseif not fastmode then
- squats.Value = squats.Value + 1
- end
- ROOTLERP.C0 = CFrame.new(0, 0, 0)
- RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- end
- end)
Add Comment
Please, Sign In to add comment