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

How to get the script to find the player's gui?

So I have a gui which starts up dialogue, however, when you get a certain badge, the dialogue will change. This has worked in the past but because of filtering enabled, it has stopped working. Here is the script -

badge = game:GetService("BadgeService")
if badge:UserHasBadge(script.Parent.Parent.Parent.Parent.Parent.userId,910407501) then
script.Parent.Text = "Thanks a ton! <3"
script.Parent.Parent.Button1.Visible = false
script.Parent.Parent.Button2.Text = "Close Dialog"
end

So the script basically detects whether the dialogue should change depending if the user has the badge, but like stated, it does not work. The gui is located in the ReplicatedStorage and the script itself is found in a button in the gui. It works in studio as it is going through the player's stats, but does not work in an actual server. Thanks =^)

1 answer

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