How do I make a GUI stickers collector? Like when you see an item such as Sonic the hedgehog sticker laying on the ground and you touch it and then the picture show up in the GUI. How can I do that? Or it is impossible to make one?
How Do I Make A GUI Stickers Collector?
1 answer
You put the image id in a value in a folder in Workspace, and you give the sticker on the ground the same name as the number value in the folder. Then, create an onTouch() function. Make it look for the value with the name of the part that got touched. Once it's found it, look for the player of object that touched it. Then if it returns true, it simply makes the image on the gui visible. Like this:
game > Workspace > ImageHolder > SanicSticker
' game > Workspace > SanicSticker > Script V '
local p = script.Parent
p.Touched:connect(function(hit)
local h = hit.Parent;FindFirstChild("Humanoid")
if h then
local name = p.Name
local find = game.Workspace.ImageHolder:FindFirstChild(name)
if find then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
local gui = player.PlayerGui:FindFirstChild("StickerGui")
if gui then
local f = gui:FindFirstchild(p.Name,true)
if f then
f.Visible = true
end
end
end
end
end
end)
5 comments
So, where do I put this script?
This script goes into the part that you touch to get the sticker. The part has to be named exactly the same as the one in the folder, and the one in the gui.
If you need help, PM EmeraldSlash (he is my main, but he got kicked from SH) and I will make a model of it.
Alright, thank you bro!
No problem.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
This isn't very clear. Just run a Touched listening event to check for touching a certain brick with a certain decal, and then when it's touched, make some pre-made Imagelabel in a ScreenGui visible, or Instance.new() one in with the correct properties.