Trying to replicate background of awkward car ride but only problem is I don’t know how will it work when I’ll be using tweenservice or cframing when moving the place infinitely.
You will have to do a while true cycle and every time the background passes the car you need to clone the background so it is next to the current background.
I don’t know how will this work because if the backgrounds passes then it will be able to let them see the void.
Just move the things like cars around it.
I don’t want them to see the void, that’s the only problem.
fog effect, solves it instantly, like flex tape
If you’re telling me to move it, I don’t know how moving it infinitely will work.
Like a conveyor belt, going from the back, end, down, backwards, up, forward.
I think that texture
instances have the option to animate the textures, which could be a simple method of making an animated background. I’m not completely sure tho, I’ve never worked with textures.
It’s actually not a texture, it’s a part.
I’m a bit confused with what you’re trying to achieve. Are you trying to make a moving vertical background, like the sky, or like a repeating road?
Well you have 2 options:
-
When the car reaches a certain point, clone the road and put the clone in front of the car, then when the previous road is out of frame, delete it.
-
When the car starts to get into a frame where the void is visible, teleport the car to the back of the road.
repeating moving vertical road, yes.
Do what games like Milkman Karlson do in unity, have multiple pieces of road like 3 and keep on cframing them in front of each other so they player can not see the background
I’m doing option 1 but I’m only going to move the background, the car stays at the same point.
That’s also a valid option - all three options have been used extensively outside of Roblox - especially in games that had tight restrictions on memory. As long as your road is seemless and plain, it should look infinite
This is harder than I think, How can I do that option I was mentioning?
Continuously have a loop that moves the background 1 unit (however big you feel) back at a constant rate. When it gets to a point in which you can see the void (you’ll have to figure this out yourself through testing - you can keep track of the background’s position and check if it gets passed a certain threshold), then just set the position back to what it was originally.