I’m making a pretty simple game and am using a few NPCs. I’m not the greatest scripter, but I was attempting to make text pop up when you hit a button to speak to the NPC. When I test the game, the text GUI does not appear when I see no reason why it shouldn’t. ( No errors ever pop up in the output either ). Here’s the script, is there anything preventing it from outputting the GUI? ( first bits of scripts are just to move the npc and prevent player from clicking button twice )
You’re making the UI in StarterGui visible, which doesn’t affect current players in-game, as they have their own PlayerGui. In your event parameter, define the player, and enable the UI in their PlayerGui:
local part = script.Parent
part.ProximityPrompt.Triggered:Connect(function(plr)
part.Humanoid.WalkToPoint = Vector3.new(-154.5, 0.5, -109.5)
part.ProximityPrompt.Enabled = false
plr.PlayerGui.Text1.Enabled = true
end)
Ah, okay I see. So for things within starterGUI, they will be on the players screen from the start if enabled ( such as title screen ) and you have to access playerGUI if you want to enable a GUI within the gameplay?