Hey everyone! I am having an issue. So I am creating a building system that requires all the numbers from the datastore to be rounded. However, when I use ToWorldSpace, the numbers fail to round to the nearest whole number. Anyone can help with that? Thank you!
Note that the splits are my way of retrieving CFrames from a datastore!
local Split = string.split(data[i+1], ",")
local function round(n)
return math.floor(n + 0.5)
end
Clone.CFrame = game.Workspace.HomeArea.Plots[player.PlotOwner.Value].CFrame:ToWorldSpace(CFrame.new(round(Split[1]),1.44143748,round(Split[3]),Split[4],Split[5],Split[6],Split[7],Split[8],Split[9],Split[10],Split[11],Split[12]))