i want to make it so that when i click on a candle on a table i get that candle
Make a "Click Detector" and put it under the candle. Then put this Script under the candle:
local clickDetector = script.Parent:FindFirstChild("ClickDetector") local Clone = game.Workspace.Candle:Clone() local LocalPlayer = game.Players.LocalPlayer function onMouseClick() Clone.Parent = game.Players.LocalPlayer.Backpack end clickDetector.MouseClick:connect(onMouseClick)
(this script will only work if the candle is a Tool, if it's not a tool I don't think it's possible to put it in the player's inventory.)