-- Variables
local Startgame = game.ReplicatedStorage.EventHandler.StartGame
-- { Functions }
function TestSubject1()
print("Hello Emily.")
end
-- Value Maker
game.Players.PlayerAdded:Connect(function(plr)
local Bool = Instance.new("BoolValue")
Bool.Value = false
Bool.Name = "Playing"
Bool.Parent = plr
end)
-- Check Playing
local trigger = false
for i, v in pairs(game.Players:GetPlayers()) do
if v.ValueName.Value == true then
trigger = true
end
end
if not trigger then
Startgame:FireClient()
end
The part hte error takes place is where it says Startgame:FireClient()

3 comments
How would i get the player though? its underlined red
What is your goal? What script does something with the fire? As it is named StartGame I would think that it's something to do with telling the players or teleporting them
If you intend to send a signal to another script, not localscript, you need to use a BindableEvent instead.