So I’ve found a problem in my Bumper Cars game and need to figure out what’s causing it. This problem happens for some players and doesn’t for others, so I’ll need a few different people to help.
When joining a game, some players have spawned over the map (the top boarder). I’ve made a few attempts to fix it, but nothing seems to be working.
My first assumption was that the boarder was too low and taller avatars were causing the MoveTo() function to spawn them above the map, but after moving the boarder higher and switching to SetPrimaryPartCFrame(), it still hasn’t stopped. My second idea was that my Premium map selection feature was causing Premium players (who have access to the map selection GUI) to spawn incorrectly.
Yet it continues to be a problem.
If anyone would like to help test, please list the following:
Did you spawn above the map
Which map did you choose
Does it let you spawn on/above other maps
After respawning a few times [Esc, R, Enter], does the spawn fix?
After leaving and rejoining, does the spawn fix?
Do you have ROBLOX Premium
What is your avatar type (R6, R15, Rtho)
Check the Developer Console on your client [F9] and list any errors
If anyone has any ideas of what might be causing the problem with the limited amount of information I’ve provided, please let me know!
Yes, every time. I didn’t see an option to choose a map; was the city map every time. Resetting didn’t fix the issue.
No
R15
No errors
Well, spawn location definitely needs to be fixed. Also, I noticed that your mechanism uses something similar to the Wall-Stick gravity thing by EgoMoose. The controls are pretty smooth, so it’s probably something to do with spawn location. You should check your map positions and spawn players according to it; obviously I don’t know what the issue is without seeing the scripts but surely the positioning has to be taken into account if you are looking to solve this.
The car engine was created by myself; the spawn points are parts set in the center of each map, and have no problems for most players. I think it’s something with the script, since the car is supposed to spawn randomly if they don’t have premium.
Then you might need to randomly position only the x and z coordinates. If you are randomizing y then that would explain it. If you aren’t randomizing y then it’s probably a typo in a script for the position. It noticed that I tend to spawn around the same height, but that could just be a coincidence (unlikely, though).
Oh, I meant members without premium spawn on a random map. The coordinates relative to the spawn point are not random.
I believe the point your car is spawning at is the place where the player spawns when there is no spawn point, meaning something’s stopping the car from teleporting to its set position.
I don’t know how to fix this though because it has never happened to me nor any of the members of my discord server, meaning I can’t find the source of the problem.
Just tried it, they said they couldn’t do anything about it because there are no errors. Same reason I can’t fix it and have been looking for what’s causing it. It only happens to certain players, meaning it’s something about that player or their character that is causing the problem. I’ll still need more replies on this post before I can figure out how to fix it.
Ok, thanks. I’m working on rescripting everything today, and this issue will be fixed in the new code. Might need it tested again when it’s done, if you can