Ad
Log in to vote
2

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

Asked by
CMB1048 23
2 months ago
Edited 2 months ago

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)
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. ultrabug 306 — 2mo
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? CMB1048 23 — 2mo
0
yep sorry lol ultrabug 306 — 2mo
1
thanks it works CMB1048 23 — 2mo

1 answer

Log in to vote
1
Answered by
ultrabug 306 Moderation Voter
2 months ago

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.

Ad

Answer this question