So I have a balloon that's a model and I'm attempting to randomly spawn balloons all over my map. You can't get the position of a model itself so I've used mainPart. This script is not working and at this point I'm pretty much lost. Any help would be appreciated.
local balloon = game.ServerStorage.TEST
local startPosition = -30
local function createBalloonCopy ()
local balloonCopy = balloon:Clone()
balloonCopy.Parent = game.Workspace
local xPosition = math.random(-64, 64)
local yPosition = math.random(-64, 64)
balloon.PrimaryPart = balloon:FindFirstChild("Head")--gets primary part of model
local Offset = balloon:GetPrimaryPartCFrame()--gets position of primary part i think?
balloonCopy.Offset = Vector3.new(xPosition, startPosition, yPosition)
end
while true do
createBalloonCopy()
wait(5)
end

2 comments
looking at line 11, Model objects do not have a property called "Offset"
i think he set the offset as a cframe value so it's like a property replaced by a varibale, but it doesn't work that way, idk what he is trying to do