Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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.

0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
View all comments (24 more)
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Hey! This is not a request site! Your question will be removed if you don't attempt it fist! BashGuy10 384 — 4y
0
Ummm, it happened againz BashGuy10 384 — 4y
0
Ummm, it happened againz BashGuy10 384 — 4y
0
Ummm, it happened againz BashGuy10 384 — 4y
0
Ummm, it happened againz BashGuy10 384 — 4y
0
Ummm, it happened againz BashGuy10 384 — 4y
0
Ummm, it happened againz BashGuy10 384 — 4y
0
Ummm, it happened againz BashGuy10 384 — 4y
0
Ummm, it happened againz BashGuy10 384 — 4y
0
Calm down royaltoe 5144 — 4y
0
Let's see your code and we can debug it together royaltoe 5144 — 4y
0
what makes it worse is how you misspelled a word GGRBXLuaGG 417 — 4y
0
yeah, i noticed that lol. it would have been fine if it didn't have the z BashGuy10 384 — 4y
0
do you still want this answered? http_shawn 1 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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

Ad

Answer this question