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

Why the proxymity prompt wont open the gui?

Asked by
wwedffy 17
2 years ago
local proximityprompt = game.Workspace.Block.ProximityPrompt

proximityprompt.Triggered:Connect(function()
script.Parent.Visible = true
end)

it does not open the gui

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

Hey, if I helped, be sure to approve this answer!~

Try using

game.Players.LocalPlayer.PlayerGui:WaitForChild("GuiName")

"WaitForChild" might fix your issue. Needs to be a local script for this to work, which it already should be.

Ad

Answer this question