Script wont add 3 To Num

  1. What do I want to achieve? I want my script to add 3 to my variable

  2. What is the issue? Its not adding it

  3. What solutions have I tried so far? I have tried making the variable add it self like Num = Num + Num

for i = 1, Size do
	local Num = 3
	local NewDistance = Part.Size.Z+SpaceBWP-math.ceil(Part.Size.Z/2) + Num
	for i,v in pairs(Partable) do
		local PC = v:Clone()
		PC.Parent = game.Workspace
		PC.Position = PC.Position + Vector3.new(0,0,NewDistance+math.ceil(Part.Size.Z/2))
	end
	Num = Num + 3
	print(NewDistance)
	wait(0.1)
end

Here is my script

1 Like

I fixed it lol just had to put the variable some where else