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.
COMMUNITY QUESTION
How do I create a click to give & drink script?
1 answer
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

28 comments
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Hey! This is not a request site! Your question will be removed if you don't attempt it fist!
Ummm, it happened againz
Ummm, it happened againz
Ummm, it happened againz
Ummm, it happened againz
Ummm, it happened againz
Ummm, it happened againz
Ummm, it happened againz
Ummm, it happened againz
Calm down
Let's see your code and we can debug it together
what makes it worse is how you misspelled a word
yeah, i noticed that lol. it would have been fine if it didn't have the z
do you still want this answered?