#How do I make this remote event fire individually for each client?? Using FireClient() breaks it.

1 messages · Page 1 of 1 (latest)

vapid creek
#
    if not playing then
        game.ReplicatedStorage.neutralTeam:FireAllClients()
        for cdown=cd, 0 ,-1 do
            timer.Text = "starting in: " .. cdown
            colorsLabel.Visible=false
            task.wait(1)
        end```
#

I'm pretty sure the only way is using FireClient() so uhh why would it be breaking?sad

#

also basically the whole script does not matter much here just the part for the remote event so it must be a minor issue but idk

#

probably does not matter but this is the remote event that would be fired game.ReplicatedStorage.neutralTeam.OnClientEvent:Connect(function() local player=game.Players.LocalPlayer local neutral=game:GetService('Teams').Neutral player.Team=neutral end)

#

also not the part i need the remote event to fire to client, just that whichever remote event i have tried FireClient() in just broke the script

upper willow
#

where are you using FireClient?

vapid creek
#

i didnt cus it wouldnt work, i just used fireallclients to test the game in the mean time so the first script i sent

#

where it says FireAllClients()

upper willow
#

show me why it wouldn't wwork

#

like what did u have

#

that did not work

vapid creek
#

the remote event just wouldnt fire

vapid creek
#

but it did not work for any of my rmeote events that i tried it in so im assuming im just doing something wrong??

#

Wait am I supposed to put player inside the parameter cus if so then my script also breaks when I define sad coolguy

upper willow
#

yes you have to put the player you're firing to when doing FireClient

#

wdym breaks? u get errors?

vapid creek
#

i mean it doesnt run, not even giving me errors

upper willow
#

how can you tell

vapid creek
#

wait one min

#

also idk tf happened to the game area at the end but doenst matter does it

#

wait this is not how u define playernotcoolguy

upper willow
#

why on earth do you not use monospaced font

vapid creek
#

i tried doing it with the :Connect funciton thingy first which also broke it so..

vapid creek