Yo dev forum peeps, got a quick little question here and its about firing a remote event only if a boolean is set to true in the player,
Heres how i got my script set up
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
if player:WaitForChild('Booleans').Actions.bruh.Value == true then
game.ReplicatedStorage.theamong:FireClient(player)
end
end)
--Fire a remote event when player joins the game but only if bruh's value is set to true
local RemoteEvent = game.ReplicatedStorage.theamong
RemoteEvent.OnClientEvent:Connect(function()
wait(2)
game.Workspace.Infantry:Destroy()
end)
-- The local script that the remote event is trying run in the first place
Now my problem here is that it seems that for some reason, my bool value though being set to true, isnt causing the remote event to fire. so i dont have a clue whats going on
Thanks in advanced