Make Plane Spawn at Spawner

I have a GUI Button which spawns a plane in, this GUI Button appears after clicking a physical brick in game. Currently the plane spawns at where it is in server storage, but I want it to spawn where the brick is, this is my script so far.

script.Parent.MouseButton1Click:connect(function(GetCar)
	Mod = game.ServerStorage.FBO1.A380FBO1
	script.Parent.Parent.Parent:Destroy()
		clone = Mod:clone()
		clone.Parent = workspace
	    clone:MakeJoints()
end)

Change the plane position to where the brick located

I have multiple spawners, and to make multiple planes in server storage is a nightmare, copying 50+ planes and moving them just to add one spawner.

If the plane is a model and have a primarypart selected just use
script.Parent.MouseButton1Click:connect(function(GetCar)
Mod = game.ServerStorage.FBO1.A380FBO1
script.Parent.Parent.Parent:Destroy()
clone = Mod:clone()
clone.Parent = workspace
clone:MakeJoints()

clone:SetPrimaryPartCFrame(script.Parent.Parent.SpawnLocation.CFrame)
end)

create an part called SpawnLocation with cancollide false and anchored and make it size 1,1,1 and put on the position you want and the parent in the script.Parent.Parent
PS.Sorry i don’t are good for explain i’m italian…
EDIT: Just see now that is that script on an UI Button so change this clone:SetPrimaryPartCFrame(script.Parent.Parent.SpawnLocation.CFrame)
to this:
clone:SetPrimaryPartCFrame(workspace.SpawnLocation.CFrame)

2 Likes

Tried it myself and this doesn’t work. Could you explain this in a bit more detail?