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

How would I make a ScreenGUI pop up when a player enters a specific area? [closed]

Asked by 4 years ago

This isn't like a GUI button, but an area that if a player enters, a ScreenGUI comes up

Closed as Not Constructive by imKirda and RazzyPlayz

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

I think the best way is indeed to make an area, set the area part to cancollide false and transparency to 1 so it is invisble.

You then right this code in a local script inside that part:

local area = script.Parent

local players = game:GetService("Players")

area.Touced:Connect(function()

players.LocalPlayer.PlayerGui.YourGui.Enabled = true

-- players.LocalPlayer.PlayerGui.YourGui.Visible = true -- when using Visible

end)
Ad