Proximity Prompt Gui

You can write your topic however you want, but you need to answer these questions:

I want to achieve a proximity prompt to be pressed and when it is pressed It will play a sound, Bring up a gui on the users screens, and disable a loop for a different sound.

I have tried but I never seem to get the gui to work and the sound doesn’t seem to want to work in it if I have the gui component in it too

I searched the forum for help but everything I tried didn’t work for me.
(one of the things I tried; image

1 Like

You cant access Players.LocalPlayer from a Server Script. Instead of enabling it you should Clone the GUI to game.Players:FindFirstChild(plr.Name).PlayerGui, because you cant enable a GUI (clientside) on the server.

1 Like

You already have found the Player instance, why are you using LocalPlayer in a presumably ServerSideScript?

local Sound = workspace.Dramatic
script.Parent.Triggered:Connect(function(player)
     Sound:Play()
     player.PlayerGui.GameScreen.Enabled = true
     workspace.Alarm.Looped = false
end)
2 Likes

Apologies, My mistake Im not very good at scripting just yet.

1 Like

Plus side you fixed my thing and it works perfectly now, Thanks for clearing my mistake :smiley:

1 Like