This LocalScript is supposed to change some values in PlayerGui when a ClickDetector is clicked.
function questComplete(player)
if player.PlayerGui.PlayerQuests.InceptionTime.InProgress.Value == true then
player.PlayerGui.PlayerQuests.InceptionTime.InProgress.Value = false
player.PlayerGui.PlayerQuests.InceptionTime.Complete = true
player.PlayerGui.Quests.QuestList.List.InceptionTime.InProgress.Visible = false
player.PlayerGui.Quests.QuestList.List.InceptionTime.Complete.Visible = true
elseif player.PlayerGui.PlayerQuests.InceptionTime.Complete.Value == true then
player.PlayerGui.Quests.AlreadyComplete.Visible = true
wait(5)
player.PlayerGui.Quests.AlreadyComplete.Visible = false
end
end
script.Parent.MouseClick:connect(questComplete)
Thank you in advance for any help you may provide :)

1 comment
Since its a localscript, you could just use game.Players.LocalPlayer [If you have FE on that is]. If you dont have FE on, just replace player with game.Players.LocalPlayer but instead add "if player ~= game.Players.LocalPlayer then return end" to the beginning.