Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Trying to print a player account age using a remote event not working?

Local script

local rp = game:GetService("ReplicatedStorage")
local event = rp.RemoteEvent

game:GetService("Players").PlayerAdded:connect(function(player)
	event:Fireserver(player)
end)

Server script

local rs = game:GetService("ReplicatedStorage")
local event = rs:WaitForChild("RemoteEvent")



event.OnServerEvent:Connect(function(player)
	
		print(player.AccountAge)

end)

I have the remote event in replicated storage and i have it named "RemoteEvent".

Please help

3 comments

0

Try changing ''Fireserver'' to ''FireServer''

0

doesn't work

0

is there an error?

1 answer

✓ Accepted answer

put the damn playeradded event on the server instead and print the age from there, absolutely no point in catching the playeradded event locally

This discussion is preserved as it was. New answers, comments, and votes are closed.