I am trying position this part at the player's mouse when they lift the left mouse button.
player = game.Players.LocalPlayer
mouse = player:GetMouse()
mouse.Button1Up:connect(function()
Position = mouse.Hit
if game.Workspace:FindFirstChild(player.Name .."'s Point")~= nil then
game.Workspace[player.Name .."'s Point"]:remove()
end
a = game.Lighting.Location:clone()
a.Parent = workspace
a.Name = player.Name .."'s Point"
a.Position = Vector3.new(Position)
end)
It is currently being positioned at 0,0,0 when not being clicked at 0,0,0

1 comment
a.CFrame = Position Also works to anyone looking at this question in the future.