It keeps on saying that cframe is not a valid member of mouse
local stud = Vector3.new(1,1,1)
local big_stud = stud * 2
local one_area = big_stud + Vector3.new(2,0,2)
print(one_area)
local part = Instance.new("Part", game.Workspace)
part.Anchored = true
part.Size = one_area
-- getting the mouse
local mouse = game:GetService("Players").LocalPlayer:GetMouse()
-- part touched
part.Touched:connect(function(hit)
if mouse ~= nil then
part.CFrame = mouse.CFrame + CFrame.new(0,0,0)
end
end)

2 comments
You don't do any ray casting
ok then how do i do it can you please just tell me how to fix it