Brick stacking script issue

Hey, so pretty much I have a script that im trying to use to stack parts on top of each other for the amount of letters a player says. The issue is, for some reason it wont change depending on which spawn the player is at. Here is the part of code im looking at atm:

local Clone = Template:Clone()
local CurrentPos1 = {449.737, 74.161, -434.042}
local CurrentPos2 = {449.737, 74.161, -397.974}

if player.SpawnData.Value == 1 then
	Clone.Platform.Position = Vector3.new(CurrentPos1[1], CurrentPos1[2] + 1, CurrentPos1[3])
	Clone.Parent = workspace.ClonedParts.Spot1
end
				
if player.SpawnData.Value == 2 then
	Clone.Platform.Position = Vector3.new(CurrentPos2[1], CurrentPos2[2] + 1, CurrentPos2[3])
	Clone.Parent = workspace.ClonedParts.Spot2
end

This part of code has no issues. If you add a print statement to both of your "If"s, you will surely see, that only one of them prints all the time, no matter what spawn player is at.

Something is wrong with setting your player.SpawnData, check that part of your script.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.