I’m trying to open the Gui via local script using ProximityPrompt and nothing happens. I’m assuming since it’s only for the client that I should use local script to save me the trouble of checking the player who triggered it and then using some game service to connect the server with the player etc etc. but nothing happens. Below are some images to show whether I made mistake somewhere.


---- Open Gui ----
local proximityPrompt = script.Parent
local buyGui = game.Players.LocalPlayer.PlayerGui:FindFirstChild("BuyNextAreaGui")
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://9041161094" -- a short acknowledgement sound for player
proximityPrompt.Triggered:Connect(function()
buyGui.Enabled = true
sound:Play()
end)
proximityPrompt.TriggerEnded:Connect(function()
proximityPrompt.Enabled = false
print("Prompt is now off!")
wait(3)
proximityPrompt.Enabled = true -- For testing only (remove when done)
print("Prompt is back on now!")
end)

