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

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

Asked by 10 years ago

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

Log in to vote
0
Answered by
Xianon 105
10 years ago
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)
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. SchonATL 15 — 10y
Ad

Answer this question