#Firing an event when player joins

1 messages · Page 1 of 1 (latest)

chrome turtle
#

how do i fire a remote event when the player joins

#
local Players = game:GetService("Players")
local Player = game.Players.LocalPlayer

Players.PlayerAdded:Connect(function(player)
    print("hi")
    game.ReplicatedStorage.Anchor.FireServer(Player)

end) 
#

this is my code rn it doesnt print anything

#

or anchor

stray plume
#

You gotta use :FireServer not .FireServer

chrome turtle
#

yea i realized

#

mb forgot to say

hushed pike
#

cause its a local script