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

The local script makes it visible but you cant see it?

When this script functions it doesn't make the gui visible?

script.Parent.Equipped:Connect(function()
	game.StarterGui.EatFruit.Frame.Visible = true
	game.StarterGui.EatFruit.TextButton.Visible = true
	game.StarterGui.EatFruit.TextButton2.Visible = true
end)

1 answer

✓ Accepted answer

Instead of changing the one in StarterGui, change it in the LocalPlayer's Gui.

script.Parent.Equipped:Connect(function()
    game.Players.LocalPlayer.PlayerGui.EatFruit.Frame.Visible = true
    game.Players.LocalPlayer.PlayerGui.EatFruit.TextButton.Visible = true
    game.Players.LocalPlayer.PlayerGui.EatFruit.TextButton2.Visible = true
end)

1 comment

0

Thank you!

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