local Event = game.ReplicatedStorage.NotifFolder["Server-Local Notifs"]
game.Players.PlayerAdded:Connect(function(a)
a.Chatted:Connect(function(b)
if b == "fart" then
Event:FireClient(a, "Head", "Body", "no")
print("sdffsdfdfs")
end
end)
end)
I have prints on the other script, and they dont fire.
I have a print here and that fires fine.
Also yes, i did wait for the event to exist, this is a diffrent version of the script without that.
yeah i named it “server-local notifs” so i knew its a remote event.
If i was doing :FireClient and it was a bindable event, it would throw an error
But like i said there are no errors
sometimes roblox doesnt catch the event for PlayerAdded so sometimes you need to loop through all the players afterwards to catch them in studio.
local Players = game:GetService("Players")
local Event = game.ReplicatedStorage.NotifFolder["Server-Local Notifs"]
local function playerJoined(a)
a.Chatted:Connect(function(b)
if b == "fart" then
Event:FireClient(a, "Head", "Body", "no")
print("sdffsdfdfs")
end
end)
end
Players.PlayerAdded:Connect( playerJoined )
for _, player in Players:GetPlayers() do
playerJoined(player)
end