Cant place string value on bricks CFrame.new

local placer = plot:FindFirstChild("Placer"..placeval.Value)
		
		local model = models:FindFirstChild(who.Value)
		
		local pos = placer.pos
		
		
		local have = placer.have
		
		local clone = model:Clone()
		
		clone.Parent = placer
		clone.main.CFrame = CFrame.new(pos.Value) -- here is the problem
		
		have.Value = true
		
		how.Value=how.Value-1

tried to make xyz values individual with int values it seems int value doesnt accepts fractional numbers?

1 Like

With that amount of information you have given us, no one would be willing to help you. Include a bit more about the issue.

1 Like

placer.pos is string value stores cordinates and it errors out invalid argument #1 to β€˜new’ (Vector3 expected, got string)

1 Like

Oh I see. Well obviously you cant put string values. Just do

local cord = string.split(pos.Value,",")
local vector = Vector3.new(tonumber(cord[1]),tonumber(cord[2]),tonumber(cord[3]))

it worked just fine thank you so much

No problem. Here to assist you in any of your issues.

1 Like

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