I anm trying to make a script where when you click and drag a model with your mouse it moves and when you click it spawns the place you clicked. Please fix it and please dont make a local script in starterplayer just make it in the model please. There is a script in the block covering the whole object that you click and move with a click detector. please help I stink at scripting!
local mouse = mouse:GetMouse()
local p = script.Parent.ClickDetector
script.Parent.ClickDetector.MouseClick:Connect(function(onClick)
script.Parent.Parent:MoveTo(mouse.Hit.p)
if p == true then
model:Clone().Parent = game.Workspace.Tycoon
end
end)

2 comments
Keeping the shape of the model while dragging it would be really tough. Consider turning the model into either a union or a mesh. If you're not willing to do that, I really don't know how to answer your question. Good luck.
use http://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame and remember to set http://wiki.roblox.com/index.php?title=API:Class/Model/PrimaryPart as the block covering your model