Dirt Bike Teleporting after 2 seconds of spawn and going INSANE

Hey Everyone, I’m Nervousmrmonkey24 and I’m testing Dirt-Bike physics in one of my games and I’m having trouble with the bike regeneration. You can see further in this clip; Something - Roblox Studio 2021-08-21 17-34-04.mp4 - Google Drive

It goes bonkers for some reason!

I have tried to solve this by publishing the model and then loading the published model into the game from a script, but then the bike stopped working?

I have a script the duplicates the model into the workspace, and that script is a server script. It goes from a local script getting the mouse click to sending a client to server event where the server clones the bike.

2 Likes

I have a feeling, it could be something related to the physics you are using. Would you be able to explain what physics you are using? (Like what constraints)

I’m using Quenty’s Weld script (The wheels used to fall of when it cloned so this stopped it from doing so), and my own body welder. Quenty’s weld script helps with the wheels and body not un-attaching. It works fine without being cloned. There all basic welds.

Is there any springs or something like that? Or is it all welds? Cause if there is a spring or something like that, sometimes that could be causing it to bug ot

It only contains welds, I dont really understand why the welds are going crazy. But it could be due to parts being pulled in different directions from the welds, and instead of stabilizing, it creates a chain reaction to every other part.

Right now I just made 5000 copy’s of the bike and put them into replicated storage so instead of cloning the bike, it can just teleport and set a new parent to the bike. I know this is a horrible solution but until I can figure out why its doing this I’m moving onto another part of my game.

yes, this is a HORRIBLE solution (Use clone!)

look into the script that makes your bike actually work
find things like “wait(time)” and see whats after it.

try debugging with print so you can see where in the script is making it fling when it prints (assuming you scripted the bike)

I may know why. The different parts of your bike, have CanCollide on correct? Because since there are a lot of parts, with canCollide enabled the parts would be fighting with collisions plus the welds. Try turning off CanCollide, besides the wheels, and to ANCHOR the bike so it doesn’t turn to soup.

Good Thinking I’m going to try that. I dont understand why the welds would mess up the collisions though, but it most likely is the problem.

Yeah there is no issue in the script its just when the bike turns on and my weld starts welding when I try to move the bike, it goes crazy.

Then manually weld the bike, it’s your best option
or you could script your own weld script, they’re pretty simple

It turns out the bike only works and doesnt break is if the bike is cloned as soon as the player joins. So I didnt manually weld, but I made it so the bike regen would just teleport the bike that cloned as you joined.

But I would still like to know why the bike flips out, It would probally help me and other people who want to solve this issue

So it turns out that the weld scripts that held the bike together were overlapping and glitching out. Manually welding using a plugin I have solved it. Thanks to everyone’s help! - Nervousmrmonkey24