Ad
Log in to vote
0

Why the proxymity prompt wont open the gui?

Asked by 14 days 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 14 days ago
Edited 14 days 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