Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I create a click to give & drink script?

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.

28 comments

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Hey! This is not a request site! Your question will be removed if you don't attempt it fist!

0

Ummm, it happened againz

0

Ummm, it happened againz

0

Ummm, it happened againz

0

Ummm, it happened againz

0

Ummm, it happened againz

0

Ummm, it happened againz

0

Ummm, it happened againz

0

Ummm, it happened againz

0

Calm down

0

Let's see your code and we can debug it together

0

what makes it worse is how you misspelled a word

0

yeah, i noticed that lol. it would have been fine if it didn't have the z

0

do you still want this answered?

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.