#how do i fix this?

2 messages · Page 1 of 1 (latest)

tardy sorrel
#

how do i fix that? the wingate is spawning in the middle of the race and now at the end of a color.
script:
`local replicatedStorage = game:GetService("ReplicatedStorage")
local gate = replicatedStorage:WaitForChild("winGate")

local map = workspace:WaitForChild("map")
local winGates = map:WaitForChild("winGates")

local oldZValue = 0
local gatesGenerated = 0

while gatesGenerated < 15 do
gatesGenerated = gatesGenerated + 1
local newGate = gate:Clone()
newGate.Parent = winGates
newGate.SurfaceGui.TextLabel.Text = tostring(gatesGenerated)
newGate.CFrame = CFrame.new(0, 0, oldZValue)
oldZValue = oldZValue + 1000
end `

steel lagoon
#

maybe try fixing the cframe?