I have a game easter egg basically where you put in a hidden code, and it reveals a donut. I haven’t moved the position of the donut outside the area, so you can touch it at any point, and access the ending. When I wrote a local script, I was able to reference the “Donut” part, and I was able to print a word after every “Wait” time in the code, to make sure the code works. Everything works except the GUI change. (Printing, Waiting, and Kicking from the server.) Here is a code sample of what I wrote, and the object in the workspace.
local endinggui = game.StarterGui.Ending
local donut = game.Workspace.Donut
local player = game.Players.LocalPlayer
local debouce = falsedonut.Touched:Connect(function()
if debouce == false then
debouce = truewait(0.3) print("gaming!!!!") endinggui.Frame.Visible = true wait(0.5) print("gaming1!!!!") endinggui.Frame.Ending.Visible = true wait(0.5) print("gaming2!!!!") endinggui.Frame.EndText.Text = "Donut" endinggui.Frame.Ending.Visible = true wait(5) print("gaming3!!!!") player:Kick("yummy donut") debouce = false
end
end)
StarterGUI Ending Frame
Workspace Object
The Badge and Code are separate pieces, and not related to the GUI issue. The Local Script from above is in StarterGUI.