Making placeable cups

I have a drinkable glass as a tool, and basicly I want to leave the option to place it down onto surfaces wherever the mouse is at and pick it back up if you click it, but I cant seem to figure out how to preview and place it down correctly with raycasting.

This is sort of what i am aiming to do, Just be able to place the tool from my inventory onto a surface with a preview, but then also pick it back up. Is there a simple straight forward way to make the game show a preview and place it on the mouse button?

![2023-09-17 19-55-17)

not sure how to embedd but the video shows this

1 Like

You don’t need to use raycasting. You could use something like this:

local RunService = game:GetService("RunService");
local Players = game:GetService("Players");

local Player = Players.LocalPlayer;

local Mouse = Player:GetMouse();


(Assume this as a local script.)

1 Like