Context

-- Test.lua

local function onJoin(player)
    if Environment.IsServer() then
        player:SetWorldPosition(Vector3.New())
    end

end


Game.playerJoinedEvent:Connect(onJoin)

Error running Lua task: [3C13CBE2476850BA] Test:3: Local context script attempted to access a server-only field on an object. Field: Player.SetWorldPosition

Question:
Core Documents tell me script running on server and client as below:


But why did engine throw this error when I run 'Test.lua' on server