Ok, so I was making an error frame in ScreenGui number 1 in case that the car = nil and the localscript in ScreenGui number 2. Here is the code:
if not workspace.Car then if game:GetService("UserInputService").TouchEnabled then script.Parent.Parent.Parent.screen.Frame:TweenPosition(UDim2.new(0.216, 0,0.162, 0)) elseif game:GetService("UserInputService").KeyboardEnabled then script.Parent.Parent.Parent.screen.Frame:TweenPosition(UDim2.new(0.344, 0,0.3, 0)) end end
For some reason the output is Car is not a valid member of Workspace . Any help will be appreciated, thank you.
if workspace:FindFirstChild("Car") == nil then end
Try that and make sure the part or model or whatever is named Car.