Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local Character = Player.Character
- local Block = Instance.new("Part")
- Block.BrickColor = BrickColor.new("Dark green")
- Block.Parent = game.Workspace
- Block.Anchored = true
- Block.CanCollide = true
- Block.Size = Vector3.new(4, 0, 4)
- local m = Player:GetMouse()
- m.KeyDown:Connect(function(k)
- k = k:lower()
- if k == "q" then
- Block.Size = Block.Size + Vector3.new(1, 0, 1)
- else
- if k == "e" then
- Block.Size = Block.Size - Vector3.new(1, 0, 1)
- else
- if k == "f" then
- Block:Destroy()
- end
- end
- end
- end)
- while true do
- Block.Position = Character.Torso.Position - Vector3.new(0, 2, 0)
- wait(1)
- Block.Position = Character.Torso.Position - Vector3.new(0, 3, 0)
- wait(-0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement