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

How do you make a Gui appear when a player touches a block?

I've been needing a code for a while for this. Here's the link to the place that I'm about to reference to. Okay, so just join the game so you can understand. See translucent green cylinder going into the sky? I need it to show a new mission in the top left corner of your screen.

1 answer

local Gui = -- Put Variable here--
local brick = --Put Variable Here--
local humanoid = game.WorkSpace.Players.FindFirstChild("Humanoid")
function onTouched(brick)
if Humanoid true then
Gui.Visible = true
wait()
end

brick.Touched:connect(OnTouched)

1 comment

0

Could you get more descriptive as to where to put the script, and what I would put in as the variables? Sorry, I'm terrible at this kind of stuff.

This discussion is preserved as it was. New answers, comments, and votes are closed.