Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mouse = game.Players.LocalPlayer:GetMouse()
- local torso = game.Players.LocalPlayer.Character.Torso
- local container = Workspace:FindFirstChild("LocalBin")
- if not container then
- container = Instance.new("Camera")
- container.Name = "LocalBin"
- container.Parent = Workspace
- end
- container:ClearAllChildren()
- local blockBase = Instance.new("Part")
- blockBase.Name = "feet"
- blockBase.TopSurface = "Smooth"
- blockBase.BottomSurface = "Smooth"
- blockBase.FormFactor = "Custom"
- blockBase.Size = Vector3.new(4, 0.1, 4)
- blockBase.BrickColor = BrickColor.new(Color3.new(0, 0, 0))
- blockBase.Anchored = true
- blockBase.Transparency = 1
- local block = blockBase:Clone()
- block.Parent = container
- local py = 0
- local lx, ly, lz
- local isDownE = false
- local isDownQ = false
- local streaming = false
- local follow = false
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- isDownE = true
- elseif key == "q" then
- isDownQ = true
- elseif key == "0" then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 64
- elseif key == "f" then
- streaming = not streaming
- elseif key == "r" then
- follow = not follow
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key == "e" then
- isDownE = false
- elseif key == "q" then
- isDownQ = false
- elseif key == "0" then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- end
- end)
- Game:GetService("RunService").RenderStepped:connect(function()
- if isDownE then
- py = py + 0.3
- block.CFrame = CFrame.new(torso.Position.X, py, torso.Position.Z)
- game.Players.LocalPlayer.Character:TranslateBy(Vector3.new(0, 0.3, 0))
- elseif isDownQ then
- py = py - 0.3
- block.CFrame = CFrame.new(torso.Position.X, py, torso.Position.Z)
- game.Players.LocalPlayer.Character:TranslateBy(Vector3.new(0, -0.3, 0))
- end
- if torso.Position.X ~= lx or torso.Position.Y ~= ly or torso.Position.Z ~= lz then
- block.CFrame = CFrame.new(torso.Position.X, py, torso.Position.Z)
- lx, ly, lz = torso.Position.X, torso.Position.Y, torso.Position.Z
- end
- if streaming then
- coroutine.wrap(function()
- local nBlock = block:Clone()
- nBlock.Transparency = 0
- nBlock.Parent = workspace
- nBlock.CanCollide = false
- if follow then
- nBlock.BrickColor = BrickColor.new(Color3.new(1, 1, 1))
- end
- for i = 1, 20 do
- wait(0.05)
- nBlock.Transparency = i/20
- end
- nBlock:Destroy()
- end)()
- end
- end)
- --- http://www.altenius.ml:8080/Feet.lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement