You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
Hello! This is my first post, apologies if I break any rules… So basically, I have written a script that tries to make the UI visible through a proximity prompt. It fires an event from replicated storage that makes the UI visible in the server script with the proximity prompt as the parent. -
What is the issue? Include screenshots / videos if possible!
The UI refuses to become visible despite having no errors in the code. I believe everything is declared as a local variable correctly. (if not apologies please help fix thanks!) -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have looked through multiple developer forums and searched with many keywords. However I was unable to find a useful forum. I have also used the Roblox Creator Hub assistance pages but to no avail.
Here is my code
-- In server script under proximity prompt
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SoundService = game:GetService("SoundService")
local sound = workspace.HelpingKo.ProximityPrompt.Script.CallBell
local speak = game.StarterGui.DarkPlayer.SpeakingKo
script.Parent.Triggered:Connect(function(plr)
wait(.2)
sound:Play()
wait(0.2)
game.ReplicatedStorage.Events.OpenShop:FireClient(plr, "SpeakingKo")
speak.Visible = true
wait(3)
end)
if speak.Visible == true then
print("Yes")
end
-- Yes does not print, indicating the UI is not visible
