#I don't understand why the "true" remained nil

1 messages · Page 1 of 1 (latest)

onyx flame
#
    
    if ScreenGUI.SpectateFrame then
        
        
        if ScreenGUI.SettingOptions.Visible == true then
            ScreenGUI.SettingOptions.Visible = false
        end
        
        if ScreenGUI.SpectateFrame.Visible == false then
            SpectateEvent:FireClient(player, true)
            ScreenGUI.SpectateFrame.Visible = true
        else
            ScreenGUI.SpectateFrame.Visible = false
            SpectateEvent:FireClient(player, false)
        end
    else
        warn("Spectate frame not found.")
    end
end)```
#

SpectateEvent:FireClient is what I'm referring to

#

spectate.OnClientEvent:Connect(function(Player, Boolean)
print(player, Boolean)
end)

here's what the onclientevent is like

spice quiver
#

Player is only the first with FireClient because it’s using it to tell which one it’s firing an event for

onyx flame
#

ooh gotcha, thanks

rustic roverBOT
#

studio** You are now Level 6! **studio

spice quiver
#

Every parameter after that is what’s being read so you would do

spectate.OnClientEvent:Connect(function(Boolean, …)