Write a piece of code in roblox lua scripting that creates a door and a shift to sprint script

-- Create a door

local door = Instance.new("Part")
door.Name = "Door"
door.Size = Vector3.new(2, 4, 0.2)
door.BrickColor = BrickColor.new("Bright blue")
door.Anchored = true
door.Position = Vector3.new(0, 0, 0)
door.Parent = workspace

-- Create a shift to sprint script
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

mouse.KeyDown:Connect(function(key)
if key == "lshift" then
player.Character.Humanoid.WalkSpeed = 20
end
end)

mouse.KeyUp:Connect(function(key)
if key == "lshift" then
player.Character.Humanoid.WalkSpeed = 16
end
end)