I have tried multiple youtube tutorials on how to create a click to give script and a drink script for a cup I created on Roblox studio, but none work! I'm hoping someone here can help me.
So I really hope this helps, I am really new to scripting help.
So to start off you wanna have some sort of part in workspace. Inside that part, you wanna insert a click detector. Also, insert a script. script Content:
local cup = workspace.Cup --put location of cup here local toolcup = game.Lighting.CUpp --put the actual tool here cup.ClickDetector.MouseClick:Connect(function(player) local itemclone = toolcup:Clone() itemclone.Parent = player.Backpack end)
Also, Insert the actual tool inside Lighting, or wherever that is not workspace. If it isn't lighting, then change "Lighting" to whatever you changed the tool's parent to. it should put it in the players backpack, if it doesn't work message me via discord: http_shawn#7389