#i need help with my racer click simulator game

1 messages · Page 1 of 1 (latest)

sterile beacon
#

instead of the track spawning in front infinitley it spawns to the side of it and i need to fix this issue

#

please help

#

..

#

.

#

i need help with my racer click simulator game
instead of the track spawning in front infinitley it spawns to the side of it and i need to fix this issue

merry herald
#

So... Can you provide ANY context instead of just the issue? There is literalyl a note about it in the beginning.

#

DO ✅ :-
Ask for specific help with your work.
Use relevant screenshots to describe the help you need.
Bump your original post instead of making a new one.
Explain briefly the help you need instead of just typing "Can someone help me?"

merry herald
sterile beacon
#

why you in here if you aint gonna help?

merry herald
#

"Yeah. My soup tastes off. Idk what I'm doing wrong."
Instead what about giving screenshots or code snipets...

merry herald
#

Btw mb for being mean.

#

So...

#

Can you please provide more information for me to be able to go off? I know its an axis issue but I need more info.

sterile beacon
#

im looking at it

#

and

#

ye

merry herald
remote flickerBOT
#

studio** You are now Level 14! **studio

remote flickerBOT
#

studio** You are now Level 1! **studio

sterile beacon
#

local replicatedStorage = game:GetService("ReplicatedStorage")
local raceSection = replicatedStorage:WaitForChild("raceSection")
local map = workspace:WaitForChild("map")
local race = map:WaitForChild("race")

local stages = 0
local oldXPosition = 0

while stages < 1000 do
wait()
local newSection = raceSection:Clone()
newSection.Parent = race
newSection.base.BrickColor = BrickColor.random()
local newXPosition = oldXPosition
for i, child in pairs(newSection:GetChildren()) do
child.Position = child.Position + Vector3.new(0, 0,newXPosition)
end
oldXPosition = oldXPosition + 1000
stages = stages + 1
end

merry herald
#

Can you send s screenshot of your world where the road is in the wrong direction?

#

Cuz if you have issues with the x position the actual forward position is probably the z position.
And you are setting the X position in the Z position's place.

#

child.Position = child.Position + Vector3.new(0, 0,newXPosition)
In vector its X, Y, Z
So you put the X_Cord in the Z_Cord's place.

#

Just replace it with:

child.Position = child.Position + Vector3.new(newXPosition, 0, 0)

This will probably fix your issue.

#

So...

#

Did it work or nah?