Error with a event

Im getting this error : Connect is not valid member of ReplicatedStorage.Tp2

1 Like

What is the “Tp2” (remote event, or script, or what)?

If it’s a remote event, try using
tps2.OnServerEvent:Connect(function(Donde)

2 Likes

Remote Events need events to be able to connect to an event, for example:
I have a notification system and the server sent a notifier
That event is on the client, so a .OnClientEvent would need to be implemented.
So, it would look like this:

-- Fired from the server, not from the client!
RemoteEvent.OnClientEvent:Connect(function(a, b)
	--Do things here.
end)

Tp2 its a RemoteEvent in the replicatedstorage