Hello, I am trying to make a gui script, here is the code I imposed:
local vehicleSeat = script.Parent.Parent.Parent.Parent.Parent.Parent
local velocity = vehicleSeat.AssemblyLinearVelocity.Magnitude
while true do
warn(velocity)
wait(.2)
end
The problem with the code is that it gives me an error when I see it in the console:
21:22:05.032 Stack Begin - Studio
21:22:05.032 Script 'Players.dylanykenia3.PlayerGui.VehicleGui.MainControls.MainFrame.VMax.LocalScript', Line 2 - Studio - LocalScript:2
21:22:05.032 Stack End - Studio
21:22:05.032 Vehiculo is not a valid member of PlayerGui "Players.dylanykenia3.PlayerGui" - Cliente - Horn:3
Is there any solution for this problem? I’m trying to link the speed of the train to the terminal by printing every 0.2 seconds, but I’m unable to get it to work.