Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I am trying to make a quest system with a dialog where a gui pops up how do I fix this code?

I am trying to make the gui go visible on the client but it only works on server, and I want it on the client


local dialog = game.Workspace["Homeless Quest"].HomelessMan.Head.Dialog

dialog.DialogChoiceSelected:Connect(function(player, choice)
	if choice == dialog.DialogChoice2 then
		game.StarterGui.QuestGUI.Frame.QuestDesc.Text = "Find homeless man's lost son! He was last seen at the castle."
        game.StarterGui.QuestGUI.Frame.Visible = true --wont go visible for some reason
	end
end)

4 comments

1

When you set something in startergui you are just changing what the player's playergui will start with. So if you want to make changes to what the player sees you will have to work on player.PlayerGui instead.

1

its not allowing me to put answered on question can you move that answer down to the answer section so i can say answered?

0

yep sorry lol

1

thanks it works

1 answer

✓ Accepted answer

When you set something in startergui you are just changing what the player's playergui will start with. So if you want to make changes to what the player sees you will have to work on player.PlayerGui instead.

This discussion is preserved as it was. New answers, comments, and votes are closed.