So, I’ve been playing around with my code to get my cars driving, and when trying to do Xbox Support I received help from @CloneTrooper1019 with some of my code to make it more efficiently work for Xbox/PC/Mobile.
Originally My Code looked like this:
Clone had me change it to now be this:
My code is a local script being run inside the player’s backpack that finds the car in workspace because the car gets named “PlayerNameCar” in Workspace.
Ever since this change though I’ve run into some strange problems involving players unable to drive the car. I made this change on November 17th, 2018. So, I’m unsure if a more recent Roblox update is the cause of my issues, or not. From what I can gather using prints and asking people to check their ClientSided DevConsole when they run into issues, and asking them all sorts of questions:
A. The vehicleseat is getting input. My prints output 1s & -1s for Throttle and Steering.
B. This happens more frequently to laptops than desktops.
C. Happens more often to Windows users than Mac users.
D. Re-joining the game doesn’t fix the problem. (Neither does signing onto a new account)
E. Changing which car you’re driving doesn’t fix the issue. (When a player leaves the car and gets in a new one, the old car is un-named and the new car is re-named)
F. Sometimes a player will have this issue for a half hour. They’ll re-join the game, change cars, jump in and out of the same car repeatedly, all of this non-sense for a whole half-hour, and then suddenly the car magically works on the 100,000th try.
G. Users seem to have this issue more readily when getting into a car for the 2nd time in a server, after previously having a perfectly working car.
Notably, the biggest oddity to it, is this problem has never happened to me, or my 3 closest friends.
Everyone else I’ve talked to, says it’s happened at-least once.