Hello! What I am trying to do is, if you click on any location with your mouse (whilst holding a tool), it will spawn a model, what I tried doing is setting the models CFrame with the mouse position using “CFrame.new”, but for some reason, it is not setting the CFrame.
local tool = script.Parent
tool.Equipped:Connect(function(mouse)
mouse.Button1Down:Connect(function()
local mine = game.ServerStorage:FindFirstChild("LandMine")
local cloned = mine:Clone().Parent == game.Workspace
cloned.CFrame = CFrame.new(mouse.Hit.Position.X,mouse.Hit.Position.Y,mouse.Hit.Position.Z)
end)
end)
Any Ideas?