Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 3 years ago

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

Log in to vote
0
Answered by 3 years ago

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)

0
Thank you! robot7866 36 — 3y
Ad

Answer this question