Yooo wsg dev forum peeps, still seem to be having this little issue (its basically the exact same thing that was troubling me yeserday) and i still havent found a fix yet so help would be appreciated
So the quick gist is that im trying to make serverscript fire a remote event but only if the player has a value that is set to true.
My current script looks like:
local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Wait() if player:WaitForChild('Booleans').Actions.bruh.Value == true then game.ReplicatedStorage.theamong:FireClient(player) print("WOOOO") end end)
and the local script that the remote event is trying to fire looks like this.
local RemoteEvent = game.ReplicatedStorage.theamong RemoteEvent.OnClientEvent:Connect(function() wait(2) game.Workspace.Infantry:Destroy() end)
It seems like the remote event isnt firing at all when the player joins even if the value is to true and ive got no clue why. have i put something wrong here?
Thanks in advanced.