PlatformPart is not a valid member of "Workspace"?

Hello, I’m trying to rotate a part.
And I get this error: PlatformPart is not a valid member of “Workspace”
How can I fix that error?

local part = game.Workspace.PlatformPart
a = 0
local pressingleft = false
local pressingright = false
function onKeyPressLeft(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.Left then 
	pressingleft = true
	repeat
		part.Orientation = Vector3.new(0,a,90)
		wait(.01)
		a = a +3
	until pressingleft == false
end
end
function onKeyPressFinishLeft(inputObject, gameProcessedEvent)
pressingleft = false
end
function onKeyPressRight(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.Right then 
	pressingright = true
	repeat
		part.Orientation = Vector3.new(0,a,90)
		wait(.01)
		a = a -3
until pressingright == false
end
end
function onKeyPressFinishRight(inputObject, gameProcessedEvent)
pressingright = false
end

game:GetService("UserInputService").InputBegan:connect(onKeyPressLeft) 
game:GetService("UserInputService").InputBegan:connect(onKeyPressRight)
game:GetService("UserInputService").InputEnded:connect(onKeyPressFinishLeft)
game:GetService("UserInputService").InputEnded:connect(onKeyPressFinishRight)

Can you please show me your workspace in the game hierarchy? It likely means the name is incorrect, or it hasn’t loaded in. Try using a :WaitForChild(‘PlatformPart’) on workspace