local Mouse = game.Players.LocalPlayer:GetMouse()
local button1 = script.Parent:WaitForChild('Model1')
button1.Activated:Connect(function()
local clone = button1:FindFirstChild('Model'):Clone()
while wait() do
if Mouse.Target then
if Mouse.Target.Name == "Base" then
clone:MoveTo(Vector3.new(Mouse.Hit))
clone.Parent = workspace.CurrentCamera
end
end
end
end)
I’m trying to make a placement system, so that when the player clicks a button, it sets a model into their camera and is suppose to follow the players mouse until they click (to place it down) however atm when I click the button it just spawns ontop of my characters head and it doesn’t move positions.
Erk - I feel like I’m repeating myself now, but just to be sure, please don’t use SetPrimaryPartCFrame for repeated uses like mouse movements or animating.