Jump to content

Recommended Posts

The ms_playerspawn event gets setup in line 1523 of player_common:

TheWorld:PushEvent("ms_playerspawn", inst)

Try with:

local function OnPlayerSpawn(world, player)    world:DoTaskInTime(0, function()        print("Hello", player.prefab, " is in ", world.prefab)    end)endAddPrefabPostInit("world", function(inst)    inst:ListenForEvent("ms_playerspawn", OnPlayerSpawn)end)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...