Trying to make a range limit on how far something can be placed. This returns 'CFrame expected, got Vector3.' - 12
local part = game.ReplicatedStorage.Part local uis = game:GetService("UserInputService") local char = script.Parent local m = game.Players.LocalPlayer:GetMouse() uis.InputBegan:Connect(function(input,process) if not process and input.UserInputType == Enum.UserInputType.MouseButton1 then local ray = Ray.new(char.HumanoidRootPart.Position,(char.HumanoidRootPart.CFrame.p - m.hit.p).unit * -200) local clone = part:Clone() clone.Parent = workspace clone.CFrame = ray.Direction.unit *200 end end)