I am making a plugin called "City Maker" and I made the plugin in the ServerStorage as well as the Apartment model that I made, I have made a GUI buttun that is supposed to place down a model (the Apartment) but it does not. If somebody tells me the code I have to insert into the button it would solve all my problems.
Here is the code I have so far:
Instance.new("ClickDetector", script.Parent) function onClick(player) local model = game.ServerStorage.Apartment local backup = model:clone() while true do wait(5) model = backup:clone() model.Parent = game.Workspace model:makeJoints() end end
Take a look at the MoveTo function of Model.
local backup = game.ServerStorage:WaitForChild("Apartment") model = backup:Clone() model.Parent = game.Workspace model.MoveTo(Vector3.new(x,y,z))