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

More problems with remote events?

So i made a script witch should fire this remote event but the remote event dosent do anything no errors no output nothing

local menu3 = game.StarterGui.StartMenu.menu3
game.ReplicatedStorage.Win.OnClientEvent:Connect(function(player)
	print("My dad is back with the milk")
	menu3.Visible = true
end)

1 answer

✓ Accepted answer

This script is editing the StarterGui's gui, not the player's. To fix this, make sure that this is a local script. Edit your code:

game.ReplicatedStorage.Win.OnClientEvent:Connect(function(player)
    print("My dad is back with the milk")
    player.PlayerGui:FindFirstChild("menu3").Visible = true
end)

What this does is look for the player sent via RemoteEvent. Them it looks for "menu3" inside the player's PlayerGui before setting it's visibility to false.

I hipe this answers your question.

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